]>
Commit | Line | Data |
---|---|---|
6d88e192 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
32fe5131 | 3 | * Version 1.3.27 |
6d88e192 RD |
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 | |
7e08d4ef | 12 | #define SWIG_VERSION 0x010327 |
6d88e192 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
32fe5131 RD |
30 | /*********************************************************************** |
31 | * | |
32 | * This section contains generic SWIG labels for method/variable | |
33 | * declarations/attributes, and other compiler dependent labels. | |
34 | * | |
35 | ************************************************************************/ | |
6d88e192 | 36 | |
32fe5131 RD |
37 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
38 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
39 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
40 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
6d88e192 | 41 | # else |
32fe5131 | 42 | # define SWIGTEMPLATEDISAMBIGUATOR |
6d88e192 RD |
43 | # endif |
44 | #endif | |
45 | ||
32fe5131 RD |
46 | /* inline attribute */ |
47 | #ifndef SWIGINLINE | |
48 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
49 | # define SWIGINLINE inline | |
50 | # else | |
51 | # define SWIGINLINE | |
52 | # endif | |
53 | #endif | |
54 | ||
55 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
56 | #ifndef SWIGUNUSED | |
57 | # if defined(__GNUC__) || defined(__ICC) | |
58 | # define SWIGUNUSED __attribute__ ((unused)) | |
59 | # else | |
60 | # define SWIGUNUSED | |
61 | # endif | |
62 | #endif | |
63 | ||
64 | /* internal SWIG method */ | |
65 | #ifndef SWIGINTERN | |
66 | # define SWIGINTERN static SWIGUNUSED | |
67 | #endif | |
68 | ||
69 | /* internal inline SWIG method */ | |
70 | #ifndef SWIGINTERNINLINE | |
71 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
72 | #endif | |
73 | ||
74 | /* exporting methods for Windows DLLs */ | |
75 | #ifndef SWIGEXPORT | |
76 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
77 | # if defined(STATIC_LINKED) | |
78 | # define SWIGEXPORT | |
79 | # else | |
80 | # define SWIGEXPORT __declspec(dllexport) | |
81 | # endif | |
82 | # else | |
83 | # define SWIGEXPORT | |
84 | # endif | |
85 | #endif | |
86 | ||
87 | /* calling conventions for Windows */ | |
88 | #ifndef SWIGSTDCALL | |
89 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
90 | # define SWIGSTDCALL __stdcall | |
91 | # else | |
92 | # define SWIGSTDCALL | |
93 | # endif | |
94 | #endif | |
95 | ||
96 | ||
6d88e192 RD |
97 | |
98 | #include <Python.h> | |
99 | ||
100 | /*********************************************************************** | |
101 | * swigrun.swg | |
102 | * | |
103 | * This file contains generic CAPI SWIG runtime support for pointer | |
104 | * type checking. | |
105 | * | |
106 | ************************************************************************/ | |
107 | ||
108 | /* This should only be incremented when either the layout of swig_type_info changes, | |
109 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 110 | #define SWIG_RUNTIME_VERSION "2" |
6d88e192 RD |
111 | |
112 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ | |
113 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
114 | # define SWIG_QUOTE_STRING(x) #x |
115 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
116 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
6d88e192 | 117 | #else |
32fe5131 | 118 | # define SWIG_TYPE_TABLE_NAME |
6d88e192 RD |
119 | #endif |
120 | ||
121 | /* | |
122 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
123 | creating a static or dynamic library from the swig runtime code. | |
124 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
125 | ||
126 | But only do this if is strictly necessary, ie, if you have problems | |
127 | with your compiler or so. | |
128 | */ | |
32fe5131 | 129 | |
6d88e192 | 130 | #ifndef SWIGRUNTIME |
32fe5131 | 131 | # define SWIGRUNTIME SWIGINTERN |
6d88e192 | 132 | #endif |
32fe5131 | 133 | |
6d88e192 | 134 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 135 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
6d88e192 RD |
136 | #endif |
137 | ||
32fe5131 RD |
138 | #include <string.h> |
139 | ||
6d88e192 RD |
140 | #ifdef __cplusplus |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | typedef void *(*swig_converter_func)(void *); | |
145 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
146 | ||
32fe5131 | 147 | /* Structure to store inforomation on one type */ |
6d88e192 | 148 | typedef struct swig_type_info { |
32fe5131 RD |
149 | const char *name; /* mangled name of this type */ |
150 | const char *str; /* human readable name of this type */ | |
151 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
152 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
153 | void *clientdata; /* language specific type data */ | |
6d88e192 RD |
154 | } swig_type_info; |
155 | ||
32fe5131 RD |
156 | /* Structure to store a type and conversion function used for casting */ |
157 | typedef struct swig_cast_info { | |
158 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
159 | swig_converter_func converter; /* function to cast the void pointers */ | |
160 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
161 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
162 | } swig_cast_info; | |
163 | ||
164 | /* Structure used to store module information | |
165 | * Each module generates one structure like this, and the runtime collects | |
166 | * all of these structures and stores them in a circularly linked list.*/ | |
167 | typedef struct swig_module_info { | |
168 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
169 | size_t size; /* Number of types in this module */ | |
170 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
171 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
172 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
173 | void *clientdata; /* Language specific module data */ | |
174 | } swig_module_info; | |
175 | ||
176 | ||
6d88e192 RD |
177 | /* |
178 | Compare two type names skipping the space characters, therefore | |
179 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
180 | ||
181 | Return 0 when the two name types are equivalent, as in | |
182 | strncmp, but skipping ' '. | |
183 | */ | |
184 | SWIGRUNTIME int | |
185 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
186 | const char *f2, const char *l2) { | |
187 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
188 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
189 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
32fe5131 | 190 | if (*f1 != *f2) return (int)(*f1 - *f2); |
6d88e192 RD |
191 | } |
192 | return (l1 - f1) - (l2 - f2); | |
193 | } | |
194 | ||
195 | /* | |
196 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 197 | Return 0 if not equal, 1 if equal |
6d88e192 RD |
198 | */ |
199 | SWIGRUNTIME int | |
200 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
201 | int equiv = 0; | |
202 | const char* te = tb + strlen(tb); | |
203 | const char* ne = nb; | |
204 | while (!equiv && *ne) { | |
205 | for (nb = ne; *ne; ++ne) { | |
206 | if (*ne == '|') break; | |
207 | } | |
32fe5131 | 208 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
6d88e192 RD |
209 | if (*ne) ++ne; |
210 | } | |
211 | return equiv; | |
212 | } | |
213 | ||
214 | /* | |
32fe5131 RD |
215 | Check type equivalence in a name list like <name1>|<name2>|... |
216 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
6d88e192 | 217 | */ |
32fe5131 RD |
218 | SWIGRUNTIME int |
219 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
220 | int equiv = 0; | |
221 | const char* te = tb + strlen(tb); | |
222 | const char* ne = nb; | |
223 | while (!equiv && *ne) { | |
224 | for (nb = ne; *ne; ++ne) { | |
225 | if (*ne == '|') break; | |
6d88e192 | 226 | } |
32fe5131 RD |
227 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
228 | if (*ne) ++ne; | |
6d88e192 | 229 | } |
32fe5131 | 230 | return equiv; |
6d88e192 RD |
231 | } |
232 | ||
32fe5131 RD |
233 | |
234 | /* think of this as a c++ template<> or a scheme macro */ | |
235 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
236 | if (ty) { \ | |
237 | swig_cast_info *iter = ty->cast; \ | |
238 | while (iter) { \ | |
239 | if (comparison) { \ | |
240 | if (iter == ty->cast) return iter; \ | |
241 | /* Move iter to the top of the linked list */ \ | |
242 | iter->prev->next = iter->next; \ | |
243 | if (iter->next) \ | |
244 | iter->next->prev = iter->prev; \ | |
245 | iter->next = ty->cast; \ | |
246 | iter->prev = 0; \ | |
247 | if (ty->cast) ty->cast->prev = iter; \ | |
248 | ty->cast = iter; \ | |
249 | return iter; \ | |
250 | } \ | |
251 | iter = iter->next; \ | |
252 | } \ | |
253 | } \ | |
254 | return 0 | |
255 | ||
6d88e192 RD |
256 | /* |
257 | Check the typename | |
258 | */ | |
32fe5131 | 259 | SWIGRUNTIME swig_cast_info * |
6d88e192 | 260 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
261 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
262 | } | |
263 | ||
264 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
265 | SWIGRUNTIME swig_cast_info * | |
266 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
267 | SWIG_TypeCheck_Template(iter->type == from, into); | |
6d88e192 RD |
268 | } |
269 | ||
270 | /* | |
271 | Cast a pointer up an inheritance hierarchy | |
272 | */ | |
273 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 274 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
6d88e192 RD |
275 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
276 | } | |
277 | ||
278 | /* | |
279 | Dynamic pointer casting. Down an inheritance hierarchy | |
280 | */ | |
281 | SWIGRUNTIME swig_type_info * | |
282 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
283 | swig_type_info *lastty = ty; | |
284 | if (!ty || !ty->dcast) return ty; | |
285 | while (ty && (ty->dcast)) { | |
286 | ty = (*ty->dcast)(ptr); | |
287 | if (ty) lastty = ty; | |
288 | } | |
289 | return lastty; | |
290 | } | |
291 | ||
292 | /* | |
293 | Return the name associated with this type | |
294 | */ | |
295 | SWIGRUNTIMEINLINE const char * | |
296 | SWIG_TypeName(const swig_type_info *ty) { | |
297 | return ty->name; | |
298 | } | |
299 | ||
300 | /* | |
301 | Return the pretty name associated with this type, | |
302 | that is an unmangled type name in a form presentable to the user. | |
303 | */ | |
304 | SWIGRUNTIME const char * | |
305 | SWIG_TypePrettyName(const swig_type_info *type) { | |
306 | /* The "str" field contains the equivalent pretty names of the | |
307 | type, separated by vertical-bar characters. We choose | |
308 | to print the last name, as it is often (?) the most | |
309 | specific. */ | |
310 | if (type->str != NULL) { | |
311 | const char *last_name = type->str; | |
312 | const char *s; | |
313 | for (s = type->str; *s; s++) | |
314 | if (*s == '|') last_name = s+1; | |
315 | return last_name; | |
316 | } | |
317 | else | |
318 | return type->name; | |
319 | } | |
320 | ||
6d88e192 RD |
321 | /* |
322 | Set the clientdata field for a type | |
323 | */ | |
324 | SWIGRUNTIME void | |
32fe5131 RD |
325 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
326 | swig_cast_info *cast = ti->cast; | |
6d88e192 RD |
327 | /* if (ti->clientdata == clientdata) return; */ |
328 | ti->clientdata = clientdata; | |
32fe5131 RD |
329 | |
330 | while (cast) { | |
331 | if (!cast->converter) { | |
332 | swig_type_info *tc = cast->type; | |
333 | if (!tc->clientdata) { | |
334 | SWIG_TypeClientData(tc, clientdata); | |
6d88e192 | 335 | } |
32fe5131 RD |
336 | } |
337 | cast = cast->next; | |
338 | } | |
339 | } | |
340 | ||
341 | /* | |
342 | Search for a swig_type_info structure only by mangled name | |
343 | Search is a O(log #types) | |
344 | ||
345 | We start searching at module start, and finish searching when start == end. | |
346 | Note: if start == end at the beginning of the function, we go all the way around | |
347 | the circular list. | |
348 | */ | |
349 | SWIGRUNTIME swig_type_info * | |
350 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
351 | swig_module_info *end, | |
352 | const char *name) { | |
353 | swig_module_info *iter = start; | |
354 | do { | |
355 | if (iter->size) { | |
356 | register size_t l = 0; | |
357 | register size_t r = iter->size - 1; | |
358 | do { | |
359 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
360 | register size_t i = (l + r) >> 1; | |
361 | const char *iname = iter->types[i]->name; | |
362 | if (iname) { | |
363 | register int compare = strcmp(name, iname); | |
364 | if (compare == 0) { | |
365 | return iter->types[i]; | |
366 | } else if (compare < 0) { | |
367 | if (i) { | |
368 | r = i - 1; | |
369 | } else { | |
370 | break; | |
371 | } | |
372 | } else if (compare > 0) { | |
373 | l = i + 1; | |
374 | } | |
375 | } else { | |
376 | break; /* should never happen */ | |
377 | } | |
378 | } while (l <= r); | |
6d88e192 | 379 | } |
32fe5131 RD |
380 | iter = iter->next; |
381 | } while (iter != end); | |
382 | return 0; | |
383 | } | |
384 | ||
385 | /* | |
386 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
387 | It first searches the mangled names of the types, which is a O(log #types) | |
388 | If a type is not found it then searches the human readable names, which is O(#types). | |
389 | ||
390 | We start searching at module start, and finish searching when start == end. | |
391 | Note: if start == end at the beginning of the function, we go all the way around | |
392 | the circular list. | |
393 | */ | |
394 | SWIGRUNTIME swig_type_info * | |
395 | SWIG_TypeQueryModule(swig_module_info *start, | |
396 | swig_module_info *end, | |
397 | const char *name) { | |
398 | /* STEP 1: Search the name field using binary search */ | |
399 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
400 | if (ret) { | |
401 | return ret; | |
402 | } else { | |
403 | /* STEP 2: If the type hasn't been found, do a complete search | |
404 | of the str field (the human readable name) */ | |
405 | swig_module_info *iter = start; | |
406 | do { | |
407 | register size_t i = 0; | |
408 | for (; i < iter->size; ++i) { | |
409 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
410 | return iter->types[i]; | |
411 | } | |
412 | iter = iter->next; | |
413 | } while (iter != end); | |
6d88e192 | 414 | } |
32fe5131 RD |
415 | |
416 | /* neither found a match */ | |
417 | return 0; | |
6d88e192 RD |
418 | } |
419 | ||
32fe5131 | 420 | |
6d88e192 RD |
421 | /* |
422 | Pack binary data into a string | |
423 | */ | |
424 | SWIGRUNTIME char * | |
425 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
426 | static const char hex[17] = "0123456789abcdef"; |
427 | register const unsigned char *u = (unsigned char *) ptr; | |
428 | register const unsigned char *eu = u + sz; | |
6d88e192 | 429 | for (; u != eu; ++u) { |
32fe5131 | 430 | register unsigned char uu = *u; |
6d88e192 RD |
431 | *(c++) = hex[(uu & 0xf0) >> 4]; |
432 | *(c++) = hex[uu & 0xf]; | |
433 | } | |
434 | return c; | |
435 | } | |
436 | ||
437 | /* | |
438 | Unpack binary data from a string | |
439 | */ | |
440 | SWIGRUNTIME const char * | |
441 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
442 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 443 | register const unsigned char *eu = u + sz; |
6d88e192 | 444 | for (; u != eu; ++u) { |
32fe5131 | 445 | register char d = *(c++); |
6d88e192 RD |
446 | register unsigned char uu = 0; |
447 | if ((d >= '0') && (d <= '9')) | |
448 | uu = ((d - '0') << 4); | |
449 | else if ((d >= 'a') && (d <= 'f')) | |
450 | uu = ((d - ('a'-10)) << 4); | |
451 | else | |
452 | return (char *) 0; | |
453 | d = *(c++); | |
454 | if ((d >= '0') && (d <= '9')) | |
455 | uu |= (d - '0'); | |
456 | else if ((d >= 'a') && (d <= 'f')) | |
457 | uu |= (d - ('a'-10)); | |
458 | else | |
459 | return (char *) 0; | |
460 | *u = uu; | |
461 | } | |
462 | return c; | |
463 | } | |
464 | ||
6d88e192 RD |
465 | /* |
466 | Pack 'void *' into a string buffer. | |
467 | */ | |
468 | SWIGRUNTIME char * | |
469 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
470 | char *r = buff; | |
471 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
472 | *(r++) = '_'; | |
473 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
474 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
475 | strcpy(r,name); | |
476 | return buff; | |
477 | } | |
478 | ||
479 | SWIGRUNTIME const char * | |
480 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
481 | if (*c != '_') { | |
482 | if (strcmp(c,"NULL") == 0) { | |
483 | *ptr = (void *) 0; | |
484 | return name; | |
485 | } else { | |
486 | return 0; | |
487 | } | |
488 | } | |
489 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
490 | } | |
491 | ||
492 | SWIGRUNTIME char * | |
493 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
494 | char *r = buff; | |
495 | size_t lname = (name ? strlen(name) : 0); | |
496 | if ((2*sz + 2 + lname) > bsz) return 0; | |
497 | *(r++) = '_'; | |
498 | r = SWIG_PackData(r,ptr,sz); | |
499 | if (lname) { | |
500 | strncpy(r,name,lname+1); | |
501 | } else { | |
502 | *r = 0; | |
503 | } | |
504 | return buff; | |
505 | } | |
506 | ||
507 | SWIGRUNTIME const char * | |
508 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
509 | if (*c != '_') { | |
510 | if (strcmp(c,"NULL") == 0) { | |
511 | memset(ptr,0,sz); | |
512 | return name; | |
513 | } else { | |
514 | return 0; | |
515 | } | |
516 | } | |
517 | return SWIG_UnpackData(++c,ptr,sz); | |
518 | } | |
519 | ||
520 | #ifdef __cplusplus | |
521 | } | |
522 | #endif | |
523 | ||
6d88e192 RD |
524 | /* ----------------------------------------------------------------------------- |
525 | * SWIG API. Portion that goes into the runtime | |
526 | * ----------------------------------------------------------------------------- */ | |
527 | ||
528 | #ifdef __cplusplus | |
529 | extern "C" { | |
530 | #endif | |
531 | ||
532 | /* ----------------------------------------------------------------------------- | |
533 | * for internal method declarations | |
534 | * ----------------------------------------------------------------------------- */ | |
535 | ||
536 | #ifndef SWIGINTERN | |
32fe5131 | 537 | # define SWIGINTERN static SWIGUNUSED |
6d88e192 RD |
538 | #endif |
539 | ||
32fe5131 RD |
540 | #ifndef SWIGINTERNINLINE |
541 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
6d88e192 RD |
542 | #endif |
543 | ||
6d88e192 RD |
544 | /* |
545 | Exception handling in wrappers | |
546 | */ | |
547 | #define SWIG_fail goto fail | |
548 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
549 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
550 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
551 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
552 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
553 | ||
554 | /* | |
555 | Contract support | |
556 | */ | |
557 | #define SWIG_contract_assert(expr, msg) \ | |
558 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
559 | ||
560 | /* ----------------------------------------------------------------------------- | |
561 | * Constant declarations | |
562 | * ----------------------------------------------------------------------------- */ | |
563 | ||
564 | /* Constant Types */ | |
565 | #define SWIG_PY_INT 1 | |
566 | #define SWIG_PY_FLOAT 2 | |
567 | #define SWIG_PY_STRING 3 | |
568 | #define SWIG_PY_POINTER 4 | |
569 | #define SWIG_PY_BINARY 5 | |
570 | ||
571 | /* Constant information structure */ | |
572 | typedef struct swig_const_info { | |
573 | int type; | |
574 | char *name; | |
575 | long lvalue; | |
576 | double dvalue; | |
577 | void *pvalue; | |
578 | swig_type_info **ptype; | |
579 | } swig_const_info; | |
580 | ||
581 | ||
582 | /* ----------------------------------------------------------------------------- | |
583 | * Alloc. memory flags | |
584 | * ----------------------------------------------------------------------------- */ | |
585 | #define SWIG_OLDOBJ 1 | |
586 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
587 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
588 | ||
589 | #ifdef __cplusplus | |
590 | } | |
591 | #endif | |
592 | ||
593 | ||
594 | /*********************************************************************** | |
595 | * pyrun.swg | |
596 | * | |
597 | * This file contains the runtime support for Python modules | |
598 | * and includes code for managing global variables and pointer | |
599 | * type checking. | |
600 | * | |
601 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
602 | ************************************************************************/ | |
603 | ||
604 | /* Common SWIG API */ | |
605 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
606 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
607 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
608 | ||
609 | ||
610 | /* Python-specific SWIG API */ | |
611 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
612 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
613 | ||
32fe5131 RD |
614 | /* Runtime API */ |
615 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
616 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
6d88e192 RD |
617 | |
618 | /* ----------------------------------------------------------------------------- | |
619 | * Pointer declarations | |
620 | * ----------------------------------------------------------------------------- */ | |
621 | /* | |
622 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
623 | C/C++ pointers in the python side. Very useful for debugging, but | |
624 | not always safe. | |
625 | */ | |
626 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
627 | # define SWIG_COBJECT_TYPES | |
628 | #endif | |
629 | ||
630 | /* Flags for pointer conversion */ | |
631 | #define SWIG_POINTER_EXCEPTION 0x1 | |
632 | #define SWIG_POINTER_DISOWN 0x2 | |
633 | ||
634 | ||
32fe5131 RD |
635 | /* Add PyOS_snprintf for old Pythons */ |
636 | #if PY_VERSION_HEX < 0x02020000 | |
637 | #define PyOS_snprintf snprintf | |
638 | #endif | |
639 | ||
6d88e192 RD |
640 | #ifdef __cplusplus |
641 | extern "C" { | |
642 | #endif | |
643 | ||
644 | /* ----------------------------------------------------------------------------- | |
645 | * Create a new pointer string | |
646 | * ----------------------------------------------------------------------------- */ | |
6d88e192 RD |
647 | #ifndef SWIG_BUFFER_SIZE |
648 | #define SWIG_BUFFER_SIZE 1024 | |
649 | #endif | |
650 | ||
32fe5131 RD |
651 | /* A crude PyString_FromFormat implementation for old Pythons */ |
652 | #if PY_VERSION_HEX < 0x02020000 | |
653 | static PyObject * | |
654 | PyString_FromFormat(const char *fmt, ...) { | |
655 | va_list ap; | |
656 | char buf[SWIG_BUFFER_SIZE * 2]; | |
657 | int res; | |
658 | va_start(ap, fmt); | |
659 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
660 | va_end(ap); | |
661 | return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf); | |
662 | } | |
663 | #endif | |
664 | ||
665 | #if PY_VERSION_HEX < 0x01060000 | |
666 | #define PyObject_Del(op) PyMem_DEL((op)) | |
667 | #endif | |
668 | ||
6d88e192 RD |
669 | #if defined(SWIG_COBJECT_TYPES) |
670 | #if !defined(SWIG_COBJECT_PYTHON) | |
671 | /* ----------------------------------------------------------------------------- | |
672 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
673 | * ----------------------------------------------------------------------------- */ | |
674 | ||
675 | typedef struct { | |
676 | PyObject_HEAD | |
677 | void *ptr; | |
678 | const char *desc; | |
679 | } PySwigObject; | |
680 | ||
681 | /* Declarations for objects of type PySwigObject */ | |
682 | ||
683 | SWIGRUNTIME int | |
684 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
685 | { | |
686 | char result[SWIG_BUFFER_SIZE]; | |
32fe5131 | 687 | flags = flags; |
6d88e192 RD |
688 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { |
689 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
690 | return 0; | |
691 | } else { | |
692 | return 1; | |
693 | } | |
694 | } | |
695 | ||
696 | SWIGRUNTIME PyObject * | |
697 | PySwigObject_repr(PySwigObject *v) | |
698 | { | |
699 | char result[SWIG_BUFFER_SIZE]; | |
700 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
701 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
702 | } | |
703 | ||
704 | SWIGRUNTIME PyObject * | |
705 | PySwigObject_str(PySwigObject *v) | |
706 | { | |
707 | char result[SWIG_BUFFER_SIZE]; | |
708 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
709 | PyString_FromString(result) : 0; | |
710 | } | |
711 | ||
712 | SWIGRUNTIME PyObject * | |
713 | PySwigObject_long(PySwigObject *v) | |
714 | { | |
32fe5131 RD |
715 | return PyLong_FromVoidPtr(v->ptr); |
716 | } | |
717 | ||
718 | SWIGRUNTIME PyObject * | |
719 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
720 | { | |
721 | PyObject *res = NULL; | |
722 | PyObject *args = PyTuple_New(1); | |
723 | if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) { | |
724 | PyObject *ofmt = PyString_FromString(fmt); | |
725 | if (ofmt) { | |
726 | res = PyString_Format(ofmt,args); | |
727 | Py_DECREF(ofmt); | |
728 | } | |
729 | Py_DECREF(args); | |
730 | } | |
731 | return res; | |
6d88e192 RD |
732 | } |
733 | ||
734 | SWIGRUNTIME PyObject * | |
735 | PySwigObject_oct(PySwigObject *v) | |
736 | { | |
32fe5131 | 737 | return PySwigObject_format("%o",v); |
6d88e192 RD |
738 | } |
739 | ||
740 | SWIGRUNTIME PyObject * | |
741 | PySwigObject_hex(PySwigObject *v) | |
742 | { | |
32fe5131 | 743 | return PySwigObject_format("%x",v); |
6d88e192 RD |
744 | } |
745 | ||
746 | SWIGRUNTIME int | |
747 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
748 | { | |
749 | int c = strcmp(v->desc, w->desc); | |
750 | if (c) { | |
32fe5131 | 751 | return (c > 0) ? 1 : -1; |
6d88e192 RD |
752 | } else { |
753 | void *i = v->ptr; | |
754 | void *j = w->ptr; | |
32fe5131 | 755 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
6d88e192 RD |
756 | } |
757 | } | |
758 | ||
759 | SWIGRUNTIME void | |
760 | PySwigObject_dealloc(PySwigObject *self) | |
761 | { | |
32fe5131 | 762 | PyObject_Del(self); |
6d88e192 RD |
763 | } |
764 | ||
765 | SWIGRUNTIME PyTypeObject* | |
32fe5131 RD |
766 | PySwigObject_type(void) { |
767 | static char pyswigobject_type__doc__[] = | |
6d88e192 RD |
768 | "Swig object carries a C/C++ instance pointer"; |
769 | ||
770 | static PyNumberMethods PySwigObject_as_number = { | |
771 | (binaryfunc)0, /*nb_add*/ | |
772 | (binaryfunc)0, /*nb_subtract*/ | |
773 | (binaryfunc)0, /*nb_multiply*/ | |
774 | (binaryfunc)0, /*nb_divide*/ | |
775 | (binaryfunc)0, /*nb_remainder*/ | |
776 | (binaryfunc)0, /*nb_divmod*/ | |
777 | (ternaryfunc)0,/*nb_power*/ | |
778 | (unaryfunc)0, /*nb_negative*/ | |
779 | (unaryfunc)0, /*nb_positive*/ | |
780 | (unaryfunc)0, /*nb_absolute*/ | |
781 | (inquiry)0, /*nb_nonzero*/ | |
782 | 0, /*nb_invert*/ | |
783 | 0, /*nb_lshift*/ | |
784 | 0, /*nb_rshift*/ | |
785 | 0, /*nb_and*/ | |
786 | 0, /*nb_xor*/ | |
787 | 0, /*nb_or*/ | |
788 | (coercion)0, /*nb_coerce*/ | |
789 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
790 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
791 | (unaryfunc)0, /*nb_float*/ | |
792 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
793 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 794 | #if PY_VERSION_HEX >= 0x02020000 |
6d88e192 | 795 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
796 | #elif PY_VERSION_HEX >= 0x02000000 |
797 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
6d88e192 RD |
798 | #endif |
799 | }; | |
800 | ||
32fe5131 RD |
801 | static PyTypeObject pyswigobject_type |
802 | #if !defined(__cplusplus) | |
803 | ; | |
804 | static int type_init = 0; | |
6d88e192 | 805 | if (!type_init) { |
32fe5131 RD |
806 | PyTypeObject tmp |
807 | #endif | |
808 | = { | |
6d88e192 RD |
809 | PyObject_HEAD_INIT(&PyType_Type) |
810 | 0, /*ob_size*/ | |
32fe5131 | 811 | (char *)"PySwigObject", /*tp_name*/ |
6d88e192 RD |
812 | sizeof(PySwigObject), /*tp_basicsize*/ |
813 | 0, /*tp_itemsize*/ | |
814 | /* methods */ | |
815 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
816 | (printfunc)PySwigObject_print, /*tp_print*/ | |
817 | (getattrfunc)0, /*tp_getattr*/ | |
818 | (setattrfunc)0, /*tp_setattr*/ | |
819 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
820 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
821 | &PySwigObject_as_number, /*tp_as_number*/ | |
822 | 0, /*tp_as_sequence*/ | |
823 | 0, /*tp_as_mapping*/ | |
824 | (hashfunc)0, /*tp_hash*/ | |
825 | (ternaryfunc)0, /*tp_call*/ | |
826 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
827 | /* Space for future expansion */ | |
32fe5131 RD |
828 | 0,0,0,0, |
829 | pyswigobject_type__doc__, /* Documentation string */ | |
6d88e192 RD |
830 | #if PY_VERSION_HEX >= 0x02000000 |
831 | 0, /* tp_traverse */ | |
832 | 0, /* tp_clear */ | |
833 | #endif | |
834 | #if PY_VERSION_HEX >= 0x02010000 | |
835 | 0, /* tp_richcompare */ | |
836 | 0, /* tp_weaklistoffset */ | |
837 | #endif | |
838 | #if PY_VERSION_HEX >= 0x02020000 | |
839 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
840 | #endif | |
841 | #if PY_VERSION_HEX >= 0x02030000 | |
842 | 0, /* tp_del */ | |
843 | #endif | |
844 | #ifdef COUNT_ALLOCS | |
845 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
846 | #endif | |
847 | }; | |
32fe5131 RD |
848 | #if !defined(__cplusplus) |
849 | pyswigobject_type = tmp; | |
6d88e192 RD |
850 | type_init = 1; |
851 | } | |
32fe5131 RD |
852 | #endif |
853 | return &pyswigobject_type; | |
6d88e192 RD |
854 | } |
855 | ||
856 | SWIGRUNTIME PyObject * | |
857 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
858 | { | |
32fe5131 RD |
859 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); |
860 | if (self) { | |
861 | self->ptr = ptr; | |
862 | self->desc = desc; | |
863 | } | |
6d88e192 RD |
864 | return (PyObject *)self; |
865 | } | |
866 | ||
867 | SWIGRUNTIMEINLINE void * | |
868 | PySwigObject_AsVoidPtr(PyObject *self) | |
869 | { | |
870 | return ((PySwigObject *)self)->ptr; | |
871 | } | |
872 | ||
873 | SWIGRUNTIMEINLINE const char * | |
874 | PySwigObject_GetDesc(PyObject *self) | |
875 | { | |
876 | return ((PySwigObject *)self)->desc; | |
877 | } | |
878 | ||
879 | SWIGRUNTIMEINLINE int | |
880 | PySwigObject_Check(PyObject *op) { | |
32fe5131 | 881 | return ((op)->ob_type == PySwigObject_type()) |
6d88e192 RD |
882 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
883 | } | |
884 | ||
885 | /* ----------------------------------------------------------------------------- | |
886 | * Implements a simple Swig Packed type, and use it instead of string | |
887 | * ----------------------------------------------------------------------------- */ | |
888 | ||
889 | typedef struct { | |
890 | PyObject_HEAD | |
891 | void *pack; | |
892 | const char *desc; | |
893 | size_t size; | |
894 | } PySwigPacked; | |
895 | ||
896 | SWIGRUNTIME int | |
897 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
898 | { | |
899 | char result[SWIG_BUFFER_SIZE]; | |
32fe5131 | 900 | flags = flags; |
6d88e192 RD |
901 | fputs("<Swig Packed ", fp); |
902 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
903 | fputs("at ", fp); | |
904 | fputs(result, fp); | |
905 | } | |
906 | fputs(v->desc,fp); | |
907 | fputs(">", fp); | |
908 | return 0; | |
909 | } | |
910 | ||
911 | SWIGRUNTIME PyObject * | |
912 | PySwigPacked_repr(PySwigPacked *v) | |
913 | { | |
914 | char result[SWIG_BUFFER_SIZE]; | |
915 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
916 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
917 | } else { | |
918 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
919 | } | |
920 | } | |
921 | ||
922 | SWIGRUNTIME PyObject * | |
923 | PySwigPacked_str(PySwigPacked *v) | |
924 | { | |
925 | char result[SWIG_BUFFER_SIZE]; | |
926 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
927 | return PyString_FromFormat("%s%s", result, v->desc); | |
928 | } else { | |
32fe5131 | 929 | return PyString_FromString(v->desc); |
6d88e192 RD |
930 | } |
931 | } | |
932 | ||
933 | SWIGRUNTIME int | |
934 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
935 | { | |
936 | int c = strcmp(v->desc, w->desc); | |
937 | if (c) { | |
32fe5131 | 938 | return (c > 0) ? 1 : -1; |
6d88e192 RD |
939 | } else { |
940 | size_t i = v->size; | |
941 | size_t j = w->size; | |
32fe5131 | 942 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
6d88e192 RD |
943 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
944 | } | |
945 | } | |
946 | ||
947 | SWIGRUNTIME void | |
948 | PySwigPacked_dealloc(PySwigPacked *self) | |
949 | { | |
950 | free(self->pack); | |
32fe5131 | 951 | PyObject_Del(self); |
6d88e192 RD |
952 | } |
953 | ||
954 | SWIGRUNTIME PyTypeObject* | |
32fe5131 RD |
955 | PySwigPacked_type(void) { |
956 | static char pyswigpacked_type__doc__[] = | |
6d88e192 | 957 | "Swig object carries a C/C++ instance pointer"; |
32fe5131 RD |
958 | static PyTypeObject pyswigpacked_type |
959 | #if !defined(__cplusplus) | |
960 | ; | |
961 | static int type_init = 0; | |
6d88e192 | 962 | if (!type_init) { |
32fe5131 RD |
963 | PyTypeObject tmp |
964 | #endif | |
965 | = { | |
6d88e192 RD |
966 | PyObject_HEAD_INIT(&PyType_Type) |
967 | 0, /*ob_size*/ | |
32fe5131 | 968 | (char *)"PySwigPacked", /*tp_name*/ |
6d88e192 RD |
969 | sizeof(PySwigPacked), /*tp_basicsize*/ |
970 | 0, /*tp_itemsize*/ | |
971 | /* methods */ | |
972 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
973 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
974 | (getattrfunc)0, /*tp_getattr*/ | |
975 | (setattrfunc)0, /*tp_setattr*/ | |
976 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
977 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
978 | 0, /*tp_as_number*/ | |
979 | 0, /*tp_as_sequence*/ | |
980 | 0, /*tp_as_mapping*/ | |
981 | (hashfunc)0, /*tp_hash*/ | |
982 | (ternaryfunc)0, /*tp_call*/ | |
983 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
984 | /* Space for future expansion */ | |
32fe5131 RD |
985 | 0,0,0,0, |
986 | pyswigpacked_type__doc__, /* Documentation string */ | |
6d88e192 RD |
987 | #if PY_VERSION_HEX >= 0x02000000 |
988 | 0, /* tp_traverse */ | |
989 | 0, /* tp_clear */ | |
990 | #endif | |
991 | #if PY_VERSION_HEX >= 0x02010000 | |
992 | 0, /* tp_richcompare */ | |
993 | 0, /* tp_weaklistoffset */ | |
994 | #endif | |
995 | #if PY_VERSION_HEX >= 0x02020000 | |
996 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
997 | #endif | |
998 | #if PY_VERSION_HEX >= 0x02030000 | |
999 | 0, /* tp_del */ | |
1000 | #endif | |
1001 | #ifdef COUNT_ALLOCS | |
1002 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1003 | #endif | |
1004 | }; | |
32fe5131 RD |
1005 | #if !defined(__cplusplus) |
1006 | pyswigpacked_type = tmp; | |
6d88e192 RD |
1007 | type_init = 1; |
1008 | } | |
32fe5131 RD |
1009 | #endif |
1010 | return &pyswigpacked_type; | |
6d88e192 RD |
1011 | } |
1012 | ||
1013 | SWIGRUNTIME PyObject * | |
1014 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
1015 | { | |
32fe5131 | 1016 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
6d88e192 RD |
1017 | if (self == NULL) { |
1018 | return NULL; | |
1019 | } else { | |
1020 | void *pack = malloc(size); | |
32fe5131 RD |
1021 | if (pack) { |
1022 | memcpy(pack, ptr, size); | |
1023 | self->pack = pack; | |
1024 | self->desc = desc; | |
1025 | self->size = size; | |
1026 | return (PyObject *) self; | |
1027 | } | |
1028 | return NULL; | |
6d88e192 RD |
1029 | } |
1030 | } | |
1031 | ||
1032 | SWIGRUNTIMEINLINE const char * | |
1033 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1034 | { | |
1035 | PySwigPacked *self = (PySwigPacked *)obj; | |
1036 | if (self->size != size) return 0; | |
1037 | memcpy(ptr, self->pack, size); | |
1038 | return self->desc; | |
1039 | } | |
1040 | ||
1041 | SWIGRUNTIMEINLINE const char * | |
1042 | PySwigPacked_GetDesc(PyObject *self) | |
1043 | { | |
1044 | return ((PySwigPacked *)self)->desc; | |
1045 | } | |
1046 | ||
1047 | SWIGRUNTIMEINLINE int | |
1048 | PySwigPacked_Check(PyObject *op) { | |
32fe5131 | 1049 | return ((op)->ob_type == PySwigPacked_type()) |
6d88e192 RD |
1050 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); |
1051 | } | |
1052 | ||
1053 | #else | |
1054 | /* ----------------------------------------------------------------------------- | |
1055 | * Use the old Python PyCObject instead of PySwigObject | |
1056 | * ----------------------------------------------------------------------------- */ | |
1057 | ||
1058 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1059 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1060 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1061 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1062 | ||
1063 | #endif | |
1064 | ||
1065 | #endif | |
1066 | ||
1067 | /* ----------------------------------------------------------------------------- | |
1068 | * errors manipulation | |
1069 | * ----------------------------------------------------------------------------- */ | |
1070 | ||
1071 | SWIGRUNTIME void | |
1072 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1073 | { | |
1074 | if (type) { | |
1075 | #if defined(SWIG_COBJECT_TYPES) | |
32fe5131 | 1076 | if (obj && PySwigObject_Check(obj)) { |
6d88e192 RD |
1077 | const char *otype = (const char *) PySwigObject_GetDesc(obj); |
1078 | if (otype) { | |
1079 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1080 | type, otype); | |
1081 | return; | |
1082 | } | |
1083 | } else | |
1084 | #endif | |
1085 | { | |
1086 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1087 | if (otype) { | |
1088 | PyObject *str = PyObject_Str(obj); | |
1089 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1090 | if (cstr) { | |
1091 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1092 | type, otype, cstr); | |
1093 | } else { | |
1094 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1095 | type, otype); | |
1096 | } | |
32fe5131 | 1097 | Py_XDECREF(str); |
6d88e192 RD |
1098 | return; |
1099 | } | |
1100 | } | |
1101 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1102 | } else { | |
1103 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1104 | } | |
1105 | } | |
1106 | ||
1107 | SWIGRUNTIMEINLINE void | |
1108 | SWIG_Python_NullRef(const char *type) | |
1109 | { | |
1110 | if (type) { | |
1111 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1112 | } else { | |
1113 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1114 | } | |
1115 | } | |
1116 | ||
1117 | SWIGRUNTIME int | |
1118 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1119 | { | |
1120 | if (PyErr_Occurred()) { | |
1121 | PyObject *type = 0; | |
1122 | PyObject *value = 0; | |
1123 | PyObject *traceback = 0; | |
1124 | PyErr_Fetch(&type, &value, &traceback); | |
1125 | if (value) { | |
1126 | PyObject *old_str = PyObject_Str(value); | |
1127 | Py_XINCREF(type); | |
1128 | PyErr_Clear(); | |
1129 | if (infront) { | |
1130 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1131 | } else { | |
1132 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1133 | } | |
1134 | Py_DECREF(old_str); | |
1135 | } | |
1136 | return 1; | |
1137 | } else { | |
1138 | return 0; | |
1139 | } | |
1140 | } | |
1141 | ||
1142 | SWIGRUNTIME int | |
1143 | SWIG_Python_ArgFail(int argnum) | |
1144 | { | |
1145 | if (PyErr_Occurred()) { | |
1146 | /* add information about failing argument */ | |
1147 | char mesg[256]; | |
32fe5131 | 1148 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
6d88e192 RD |
1149 | return SWIG_Python_AddErrMesg(mesg, 1); |
1150 | } else { | |
1151 | return 0; | |
1152 | } | |
1153 | } | |
1154 | ||
1155 | ||
1156 | /* ----------------------------------------------------------------------------- | |
1157 | * pointers/data manipulation | |
1158 | * ----------------------------------------------------------------------------- */ | |
1159 | ||
1160 | /* Convert a pointer value */ | |
1161 | SWIGRUNTIME int | |
1162 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
32fe5131 | 1163 | swig_cast_info *tc; |
6d88e192 RD |
1164 | const char *c = 0; |
1165 | static PyObject *SWIG_this = 0; | |
1166 | int newref = 0; | |
1167 | PyObject *pyobj = 0; | |
1168 | void *vptr; | |
1169 | ||
1170 | if (!obj) return 0; | |
1171 | if (obj == Py_None) { | |
1172 | *ptr = 0; | |
1173 | return 0; | |
1174 | } | |
1175 | ||
1176 | #ifdef SWIG_COBJECT_TYPES | |
1177 | if (!(PySwigObject_Check(obj))) { | |
1178 | if (!SWIG_this) | |
1179 | SWIG_this = PyString_FromString("this"); | |
1180 | pyobj = obj; | |
1181 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1182 | newref = 1; | |
1183 | if (!obj) goto type_error; | |
1184 | if (!PySwigObject_Check(obj)) { | |
1185 | Py_DECREF(obj); | |
1186 | goto type_error; | |
1187 | } | |
1188 | } | |
1189 | vptr = PySwigObject_AsVoidPtr(obj); | |
1190 | c = (const char *) PySwigObject_GetDesc(obj); | |
1191 | if (newref) { Py_DECREF(obj); } | |
1192 | goto type_check; | |
1193 | #else | |
1194 | if (!(PyString_Check(obj))) { | |
1195 | if (!SWIG_this) | |
1196 | SWIG_this = PyString_FromString("this"); | |
1197 | pyobj = obj; | |
1198 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1199 | newref = 1; | |
1200 | if (!obj) goto type_error; | |
1201 | if (!PyString_Check(obj)) { | |
1202 | Py_DECREF(obj); | |
1203 | goto type_error; | |
1204 | } | |
1205 | } | |
32fe5131 | 1206 | c = PyString_AsString(obj); |
6d88e192 RD |
1207 | /* Pointer values must start with leading underscore */ |
1208 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1209 | if (newref) { Py_DECREF(obj); } | |
1210 | if (!c) goto type_error; | |
1211 | #endif | |
1212 | ||
1213 | type_check: | |
6d88e192 RD |
1214 | if (ty) { |
1215 | tc = SWIG_TypeCheck(c,ty); | |
1216 | if (!tc) goto type_error; | |
1217 | *ptr = SWIG_TypeCast(tc,vptr); | |
1218 | } else { | |
1219 | *ptr = vptr; | |
1220 | } | |
6d88e192 RD |
1221 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { |
1222 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1223 | } | |
1224 | return 0; | |
1225 | ||
1226 | type_error: | |
1227 | PyErr_Clear(); | |
1228 | if (pyobj && !obj) { | |
1229 | obj = pyobj; | |
1230 | if (PyCFunction_Check(obj)) { | |
1231 | /* here we get the method pointer for callbacks */ | |
1232 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1233 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1234 | if (c) { | |
32fe5131 | 1235 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
6d88e192 RD |
1236 | if (!c) goto type_error; |
1237 | goto type_check; | |
1238 | } | |
1239 | } | |
1240 | } | |
1241 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1242 | if (ty) { | |
1243 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1244 | } else { | |
1245 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1246 | } | |
1247 | } | |
1248 | return -1; | |
1249 | } | |
1250 | ||
1251 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1252 | SWIGRUNTIME void * | |
1253 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1254 | void *result; | |
1255 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1256 | PyErr_Clear(); | |
1257 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1258 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1259 | SWIG_Python_ArgFail(argnum); | |
1260 | } | |
1261 | } | |
1262 | return result; | |
1263 | } | |
1264 | ||
1265 | /* Convert a packed value value */ | |
1266 | SWIGRUNTIME int | |
1267 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
32fe5131 | 1268 | swig_cast_info *tc; |
6d88e192 RD |
1269 | const char *c = 0; |
1270 | ||
1271 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1272 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1273 | #else | |
1274 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
32fe5131 | 1275 | c = PyString_AsString(obj); |
6d88e192 RD |
1276 | /* Pointer values must start with leading underscore */ |
1277 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1278 | #endif | |
1279 | if (!c) goto type_error; | |
1280 | if (ty) { | |
1281 | tc = SWIG_TypeCheck(c,ty); | |
1282 | if (!tc) goto type_error; | |
1283 | } | |
1284 | return 0; | |
1285 | ||
1286 | type_error: | |
1287 | PyErr_Clear(); | |
1288 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1289 | if (ty) { | |
1290 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1291 | } else { | |
1292 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1293 | } | |
1294 | } | |
1295 | return -1; | |
1296 | } | |
1297 | ||
1298 | /* Create a new array object */ | |
1299 | SWIGRUNTIME PyObject * | |
1300 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1301 | PyObject *robj = 0; | |
32fe5131 RD |
1302 | if (!type) { |
1303 | if (!PyErr_Occurred()) { | |
1304 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1305 | } | |
1306 | return robj; | |
1307 | } | |
6d88e192 RD |
1308 | if (!ptr) { |
1309 | Py_INCREF(Py_None); | |
1310 | return Py_None; | |
1311 | } | |
1312 | #ifdef SWIG_COBJECT_TYPES | |
1313 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1314 | #else | |
1315 | { | |
1316 | char result[SWIG_BUFFER_SIZE]; | |
1317 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1318 | PyString_FromString(result) : 0; | |
1319 | } | |
1320 | #endif | |
1321 | if (!robj || (robj == Py_None)) return robj; | |
1322 | if (type->clientdata) { | |
1323 | PyObject *inst; | |
1324 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1325 | Py_DECREF(robj); | |
1326 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1327 | Py_DECREF(args); | |
1328 | if (inst) { | |
1329 | if (own) { | |
1330 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1331 | } | |
1332 | robj = inst; | |
1333 | } | |
1334 | } | |
1335 | return robj; | |
1336 | } | |
1337 | ||
1338 | SWIGRUNTIME PyObject * | |
1339 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1340 | PyObject *robj = 0; | |
1341 | if (!ptr) { | |
1342 | Py_INCREF(Py_None); | |
1343 | return Py_None; | |
1344 | } | |
1345 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1346 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1347 | #else | |
1348 | { | |
1349 | char result[SWIG_BUFFER_SIZE]; | |
1350 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1351 | PyString_FromString(result) : 0; | |
1352 | } | |
1353 | #endif | |
1354 | return robj; | |
1355 | } | |
1356 | ||
1357 | /* -----------------------------------------------------------------------------* | |
1358 | * Get type list | |
1359 | * -----------------------------------------------------------------------------*/ | |
1360 | ||
1361 | #ifdef SWIG_LINK_RUNTIME | |
1362 | void *SWIG_ReturnGlobalTypeList(void *); | |
1363 | #endif | |
1364 | ||
32fe5131 RD |
1365 | SWIGRUNTIME swig_module_info * |
1366 | SWIG_Python_GetModule(void) { | |
6d88e192 RD |
1367 | static void *type_pointer = (void *)0; |
1368 | /* first check if module already created */ | |
1369 | if (!type_pointer) { | |
1370 | #ifdef SWIG_LINK_RUNTIME | |
1371 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1372 | #else | |
1373 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1374 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1375 | if (PyErr_Occurred()) { | |
1376 | PyErr_Clear(); | |
1377 | type_pointer = (void *)0; | |
1378 | } | |
6d88e192 | 1379 | #endif |
32fe5131 RD |
1380 | } |
1381 | return (swig_module_info *) type_pointer; | |
6d88e192 RD |
1382 | } |
1383 | ||
32fe5131 RD |
1384 | #if PY_MAJOR_VERSION < 2 |
1385 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1386 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
1387 | SWIGINTERN int | |
1388 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
1389 | { | |
1390 | PyObject *dict; | |
1391 | if (!PyModule_Check(m)) { | |
1392 | PyErr_SetString(PyExc_TypeError, | |
1393 | "PyModule_AddObject() needs module as first arg"); | |
1394 | return -1; | |
1395 | } | |
1396 | if (!o) { | |
1397 | PyErr_SetString(PyExc_TypeError, | |
1398 | "PyModule_AddObject() needs non-NULL value"); | |
1399 | return -1; | |
1400 | } | |
1401 | ||
1402 | dict = PyModule_GetDict(m); | |
1403 | if (dict == NULL) { | |
1404 | /* Internal error -- modules must have a dict! */ | |
1405 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
1406 | PyModule_GetName(m)); | |
1407 | return -1; | |
1408 | } | |
1409 | if (PyDict_SetItemString(dict, name, o)) | |
1410 | return -1; | |
1411 | Py_DECREF(o); | |
1412 | return 0; | |
6d88e192 | 1413 | } |
32fe5131 | 1414 | #endif |
6d88e192 | 1415 | |
32fe5131 RD |
1416 | SWIGRUNTIME void |
1417 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
1418 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
1419 | ||
1420 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1421 | swig_empty_runtime_method_table); | |
1422 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); | |
1423 | if (pointer && module) { | |
1424 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1425 | } | |
1426 | } | |
6d88e192 RD |
1427 | |
1428 | #ifdef __cplusplus | |
1429 | } | |
1430 | #endif | |
1431 | ||
1432 | ||
1433 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1434 | ||
32fe5131 RD |
1435 | #define SWIGTYPE_p_char swig_types[0] |
1436 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
1437 | #define SWIGTYPE_p_int swig_types[2] | |
1438 | #define SWIGTYPE_p_unsigned_char swig_types[3] | |
1439 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
1440 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
1441 | #define SWIGTYPE_p_wxANIHandler swig_types[6] | |
1442 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[7] | |
1443 | #define SWIGTYPE_p_wxActivateEvent swig_types[8] | |
1444 | #define SWIGTYPE_p_wxAnimationBase swig_types[9] | |
1445 | #define SWIGTYPE_p_wxAnimationPlayer swig_types[10] | |
1446 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
1447 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
1448 | #define SWIGTYPE_p_wxBoxSizer swig_types[13] | |
1449 | #define SWIGTYPE_p_wxCURHandler swig_types[14] | |
1450 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[15] | |
1451 | #define SWIGTYPE_p_wxCloseEvent swig_types[16] | |
1452 | #define SWIGTYPE_p_wxColour swig_types[17] | |
1453 | #define SWIGTYPE_p_wxCommandEvent swig_types[18] | |
1454 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[19] | |
1455 | #define SWIGTYPE_p_wxControl swig_types[20] | |
1456 | #define SWIGTYPE_p_wxControlWithItems swig_types[21] | |
1457 | #define SWIGTYPE_p_wxDC swig_types[22] | |
1458 | #define SWIGTYPE_p_wxDateEvent swig_types[23] | |
1459 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24] | |
1460 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[25] | |
1461 | #define SWIGTYPE_p_wxDuplexMode swig_types[26] | |
1462 | #define SWIGTYPE_p_wxEraseEvent swig_types[27] | |
1463 | #define SWIGTYPE_p_wxEvent swig_types[28] | |
1464 | #define SWIGTYPE_p_wxEvtHandler swig_types[29] | |
1465 | #define SWIGTYPE_p_wxFSFile swig_types[30] | |
1466 | #define SWIGTYPE_p_wxFileSystem swig_types[31] | |
1467 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[32] | |
1468 | #define SWIGTYPE_p_wxFocusEvent swig_types[33] | |
1469 | #define SWIGTYPE_p_wxGBSizerItem swig_types[34] | |
1470 | #define SWIGTYPE_p_wxGIFAnimation swig_types[35] | |
1471 | #define SWIGTYPE_p_wxGIFAnimationCtrl swig_types[36] | |
1472 | #define SWIGTYPE_p_wxGIFHandler swig_types[37] | |
1473 | #define SWIGTYPE_p_wxGridBagSizer swig_types[38] | |
1474 | #define SWIGTYPE_p_wxGridSizer swig_types[39] | |
1475 | #define SWIGTYPE_p_wxICOHandler swig_types[40] | |
1476 | #define SWIGTYPE_p_wxIconizeEvent swig_types[41] | |
1477 | #define SWIGTYPE_p_wxIdleEvent swig_types[42] | |
1478 | #define SWIGTYPE_p_wxImage swig_types[43] | |
1479 | #define SWIGTYPE_p_wxImageHandler swig_types[44] | |
1480 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[45] | |
1481 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[46] | |
1482 | #define SWIGTYPE_p_wxJPEGHandler swig_types[47] | |
1483 | #define SWIGTYPE_p_wxKeyEvent swig_types[48] | |
1484 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[49] | |
1485 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[50] | |
1486 | #define SWIGTYPE_p_wxMenu swig_types[51] | |
1487 | #define SWIGTYPE_p_wxMenuBar swig_types[52] | |
1488 | #define SWIGTYPE_p_wxMenuEvent swig_types[53] | |
1489 | #define SWIGTYPE_p_wxMenuItem swig_types[54] | |
1490 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[55] | |
1491 | #define SWIGTYPE_p_wxMouseEvent swig_types[56] | |
1492 | #define SWIGTYPE_p_wxMoveEvent swig_types[57] | |
1493 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[58] | |
1494 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[59] | |
1495 | #define SWIGTYPE_p_wxNotifyEvent swig_types[60] | |
1496 | #define SWIGTYPE_p_wxObject swig_types[61] | |
1497 | #define SWIGTYPE_p_wxPCXHandler swig_types[62] | |
1498 | #define SWIGTYPE_p_wxPNGHandler swig_types[63] | |
1499 | #define SWIGTYPE_p_wxPNMHandler swig_types[64] | |
1500 | #define SWIGTYPE_p_wxPaintEvent swig_types[65] | |
1501 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[66] | |
1502 | #define SWIGTYPE_p_wxPaperSize swig_types[67] | |
1503 | #define SWIGTYPE_p_wxPoint swig_types[68] | |
1504 | #define SWIGTYPE_p_wxPyApp swig_types[69] | |
1505 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[70] | |
1506 | #define SWIGTYPE_p_wxPyEvent swig_types[71] | |
1507 | #define SWIGTYPE_p_wxPyImageHandler swig_types[72] | |
1508 | #define SWIGTYPE_p_wxPySizer swig_types[73] | |
1509 | #define SWIGTYPE_p_wxPyValidator swig_types[74] | |
1510 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[75] | |
1511 | #define SWIGTYPE_p_wxRect swig_types[76] | |
1512 | #define SWIGTYPE_p_wxScrollEvent swig_types[77] | |
1513 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[78] | |
1514 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[79] | |
1515 | #define SWIGTYPE_p_wxShowEvent swig_types[80] | |
1516 | #define SWIGTYPE_p_wxSize swig_types[81] | |
1517 | #define SWIGTYPE_p_wxSizeEvent swig_types[82] | |
1518 | #define SWIGTYPE_p_wxSizer swig_types[83] | |
1519 | #define SWIGTYPE_p_wxSizerItem swig_types[84] | |
1520 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[85] | |
1521 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[86] | |
1522 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[87] | |
1523 | #define SWIGTYPE_p_wxTIFFHandler swig_types[88] | |
1524 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[89] | |
1525 | #define SWIGTYPE_p_wxValidator swig_types[90] | |
1526 | #define SWIGTYPE_p_wxWindow swig_types[91] | |
1527 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[92] | |
1528 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93] | |
1529 | #define SWIGTYPE_p_wxXPMHandler swig_types[94] | |
1530 | #define SWIGTYPE_ptrdiff_t swig_types[95] | |
1531 | #define SWIGTYPE_std__ptrdiff_t swig_types[96] | |
1532 | #define SWIGTYPE_unsigned_int swig_types[97] | |
1533 | static swig_type_info *swig_types[99]; | |
1534 | static swig_module_info swig_module = {swig_types, 98, 0, 0, 0, 0}; | |
1535 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
1536 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
6d88e192 RD |
1537 | |
1538 | /* -------- TYPES TABLE (END) -------- */ | |
1539 | ||
1540 | ||
1541 | /*----------------------------------------------- | |
1542 | @(target):= _animate.so | |
1543 | ------------------------------------------------*/ | |
1544 | #define SWIG_init init_animate | |
1545 | ||
1546 | #define SWIG_name "_animate" | |
1547 | ||
1548 | #include "wx/wxPython/wxPython.h" | |
1549 | #include "wx/wxPython/pyclasses.h" | |
1550 | #include <wx/animate/animate.h> | |
1551 | ||
1552 | static const wxString wxPyAnimationControlNameStr(wxT("animationControl")); | |
1553 | static const wxString wxPyEmptyString(wxEmptyString); | |
1554 | ||
32fe5131 | 1555 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
6d88e192 RD |
1556 | #define SWIG_From_int PyInt_FromLong |
1557 | /*@@*/ | |
1558 | ||
1559 | ||
1560 | #include <limits.h> | |
1561 | ||
1562 | ||
1563 | SWIGINTERN int | |
1564 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1565 | const char *errmsg) | |
1566 | { | |
1567 | if (value < min_value) { | |
1568 | if (errmsg) { | |
1569 | PyErr_Format(PyExc_OverflowError, | |
1570 | "value %ld is less than '%s' minimum %ld", | |
1571 | value, errmsg, min_value); | |
1572 | } | |
1573 | return 0; | |
1574 | } else if (value > max_value) { | |
1575 | if (errmsg) { | |
1576 | PyErr_Format(PyExc_OverflowError, | |
1577 | "value %ld is greater than '%s' maximum %ld", | |
1578 | value, errmsg, max_value); | |
1579 | } | |
1580 | return 0; | |
1581 | } | |
1582 | return 1; | |
1583 | } | |
1584 | ||
1585 | ||
1586 | SWIGINTERN int | |
1587 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1588 | { | |
1589 | if (PyNumber_Check(obj)) { | |
1590 | if (val) *val = PyInt_AsLong(obj); | |
1591 | return 1; | |
1592 | } | |
1593 | else { | |
7e08d4ef | 1594 | SWIG_Python_TypeError("number", obj); |
6d88e192 RD |
1595 | } |
1596 | return 0; | |
1597 | } | |
1598 | ||
1599 | ||
1600 | #if INT_MAX != LONG_MAX | |
1601 | SWIGINTERN int | |
1602 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1603 | { | |
1604 | const char* errmsg = val ? "int" : (char*)0; | |
1605 | long v; | |
1606 | if (SWIG_AsVal_long(obj, &v)) { | |
1607 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
32fe5131 | 1608 | if (val) *val = static_cast<int >(v); |
6d88e192 RD |
1609 | return 1; |
1610 | } else { | |
1611 | return 0; | |
1612 | } | |
1613 | } else { | |
1614 | PyErr_Clear(); | |
1615 | } | |
1616 | if (val) { | |
1617 | SWIG_type_error(errmsg, obj); | |
1618 | } | |
1619 | return 0; | |
1620 | } | |
1621 | #else | |
32fe5131 | 1622 | SWIGINTERNINLINE int |
6d88e192 RD |
1623 | SWIG_AsVal_int(PyObject *obj, int *val) |
1624 | { | |
1625 | return SWIG_AsVal_long(obj,(long*)val); | |
1626 | } | |
1627 | #endif | |
1628 | ||
1629 | ||
1630 | SWIGINTERN int | |
1631 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
1632 | { | |
1633 | if (obj == Py_True) { | |
1634 | if (val) *val = true; | |
1635 | return 1; | |
1636 | } | |
1637 | if (obj == Py_False) { | |
1638 | if (val) *val = false; | |
1639 | return 1; | |
1640 | } | |
1641 | int res = 0; | |
1642 | if (SWIG_AsVal_int(obj, &res)) { | |
1643 | if (val) *val = res ? true : false; | |
1644 | return 1; | |
1645 | } else { | |
1646 | PyErr_Clear(); | |
1647 | } | |
1648 | if (val) { | |
1649 | SWIG_type_error("bool", obj); | |
1650 | } | |
1651 | return 0; | |
1652 | } | |
1653 | ||
1654 | ||
32fe5131 | 1655 | SWIGINTERNINLINE bool |
6d88e192 RD |
1656 | SWIG_As_bool(PyObject* obj) |
1657 | { | |
1658 | bool v; | |
1659 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1660 | /* | |
1661 | this is needed to make valgrind/purify happier. | |
1662 | */ | |
1663 | memset((void*)&v, 0, sizeof(bool)); | |
1664 | } | |
1665 | return v; | |
1666 | } | |
1667 | ||
1668 | ||
32fe5131 | 1669 | SWIGINTERNINLINE int |
6d88e192 RD |
1670 | SWIG_Check_bool(PyObject* obj) |
1671 | { | |
1672 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1673 | } | |
1674 | ||
1675 | ||
32fe5131 | 1676 | SWIGINTERNINLINE int |
6d88e192 RD |
1677 | SWIG_As_int(PyObject* obj) |
1678 | { | |
1679 | int v; | |
1680 | if (!SWIG_AsVal_int(obj, &v)) { | |
1681 | /* | |
1682 | this is needed to make valgrind/purify happier. | |
1683 | */ | |
1684 | memset((void*)&v, 0, sizeof(int)); | |
1685 | } | |
1686 | return v; | |
1687 | } | |
1688 | ||
1689 | ||
32fe5131 | 1690 | SWIGINTERNINLINE int |
6d88e192 RD |
1691 | SWIG_Check_int(PyObject* obj) |
1692 | { | |
1693 | return SWIG_AsVal_int(obj, (int*)0); | |
1694 | } | |
1695 | ||
1696 | ||
32fe5131 | 1697 | SWIGINTERNINLINE long |
6d88e192 RD |
1698 | SWIG_As_long(PyObject* obj) |
1699 | { | |
1700 | long v; | |
1701 | if (!SWIG_AsVal_long(obj, &v)) { | |
1702 | /* | |
1703 | this is needed to make valgrind/purify happier. | |
1704 | */ | |
1705 | memset((void*)&v, 0, sizeof(long)); | |
1706 | } | |
1707 | return v; | |
1708 | } | |
1709 | ||
1710 | ||
32fe5131 | 1711 | SWIGINTERNINLINE int |
6d88e192 RD |
1712 | SWIG_Check_long(PyObject* obj) |
1713 | { | |
1714 | return SWIG_AsVal_long(obj, (long*)0); | |
1715 | } | |
1716 | ||
1717 | #ifdef __cplusplus | |
1718 | extern "C" { | |
1719 | #endif | |
1720 | static int _wrap_AnimationControlNameStr_set(PyObject *) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Variable AnimationControlNameStr is read-only."); | |
1722 | return 1; | |
1723 | } | |
1724 | ||
1725 | ||
1726 | static PyObject *_wrap_AnimationControlNameStr_get(void) { | |
32fe5131 | 1727 | PyObject *pyobj = NULL; |
6d88e192 RD |
1728 | |
1729 | { | |
1730 | #if wxUSE_UNICODE | |
1731 | pyobj = PyUnicode_FromWideChar((&wxPyAnimationControlNameStr)->c_str(), (&wxPyAnimationControlNameStr)->Len()); | |
1732 | #else | |
1733 | pyobj = PyString_FromStringAndSize((&wxPyAnimationControlNameStr)->c_str(), (&wxPyAnimationControlNameStr)->Len()); | |
1734 | #endif | |
1735 | } | |
1736 | return pyobj; | |
1737 | } | |
1738 | ||
1739 | ||
1740 | static PyObject *_wrap_new_AnimationPlayer(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1741 | PyObject *resultobj = NULL; |
6d88e192 RD |
1742 | wxAnimationBase *arg1 = (wxAnimationBase *) NULL ; |
1743 | bool arg2 = (bool) false ; | |
1744 | wxAnimationPlayer *result; | |
1745 | PyObject * obj0 = 0 ; | |
1746 | PyObject * obj1 = 0 ; | |
1747 | char *kwnames[] = { | |
1748 | (char *) "animation",(char *) "destroyAnimation", NULL | |
1749 | }; | |
1750 | ||
1751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_AnimationPlayer",kwnames,&obj0,&obj1)) goto fail; | |
1752 | if (obj0) { | |
1753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
1754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1755 | } | |
1756 | if (obj1) { | |
1757 | { | |
32fe5131 | 1758 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6d88e192 RD |
1759 | if (SWIG_arg_fail(2)) SWIG_fail; |
1760 | } | |
1761 | } | |
1762 | { | |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | result = (wxAnimationPlayer *)new wxAnimationPlayer(arg1,arg2); | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
1769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationPlayer, 1); | |
1770 | return resultobj; | |
1771 | fail: | |
1772 | return NULL; | |
1773 | } | |
1774 | ||
1775 | ||
1776 | static PyObject *_wrap_delete_AnimationPlayer(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1777 | PyObject *resultobj = NULL; |
6d88e192 RD |
1778 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1779 | PyObject * obj0 = 0 ; | |
1780 | char *kwnames[] = { | |
1781 | (char *) "self", NULL | |
1782 | }; | |
1783 | ||
1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AnimationPlayer",kwnames,&obj0)) goto fail; | |
1785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1787 | { | |
1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1789 | delete arg1; | |
1790 | ||
1791 | wxPyEndAllowThreads(__tstate); | |
1792 | if (PyErr_Occurred()) SWIG_fail; | |
1793 | } | |
1794 | Py_INCREF(Py_None); resultobj = Py_None; | |
1795 | return resultobj; | |
1796 | fail: | |
1797 | return NULL; | |
1798 | } | |
1799 | ||
1800 | ||
1801 | static PyObject *_wrap_AnimationPlayer_SetAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1802 | PyObject *resultobj = NULL; |
6d88e192 RD |
1803 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1804 | wxAnimationBase *arg2 = (wxAnimationBase *) 0 ; | |
1805 | bool arg3 = (bool) false ; | |
1806 | PyObject * obj0 = 0 ; | |
1807 | PyObject * obj1 = 0 ; | |
1808 | PyObject * obj2 = 0 ; | |
1809 | char *kwnames[] = { | |
1810 | (char *) "self",(char *) "animation",(char *) "destroyAnimation", NULL | |
1811 | }; | |
1812 | ||
1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:AnimationPlayer_SetAnimation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1816 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
1817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
1818 | if (obj2) { | |
1819 | { | |
32fe5131 | 1820 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
6d88e192 RD |
1821 | if (SWIG_arg_fail(3)) SWIG_fail; |
1822 | } | |
1823 | } | |
1824 | { | |
1825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1826 | (arg1)->SetAnimation(arg2,arg3); | |
1827 | ||
1828 | wxPyEndAllowThreads(__tstate); | |
1829 | if (PyErr_Occurred()) SWIG_fail; | |
1830 | } | |
1831 | Py_INCREF(Py_None); resultobj = Py_None; | |
1832 | return resultobj; | |
1833 | fail: | |
1834 | return NULL; | |
1835 | } | |
1836 | ||
1837 | ||
1838 | static PyObject *_wrap_AnimationPlayer_GetAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1839 | PyObject *resultobj = NULL; |
6d88e192 RD |
1840 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1841 | wxAnimationBase *result; | |
1842 | PyObject * obj0 = 0 ; | |
1843 | char *kwnames[] = { | |
1844 | (char *) "self", NULL | |
1845 | }; | |
1846 | ||
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetAnimation",kwnames,&obj0)) goto fail; | |
1848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1850 | { | |
1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1852 | result = (wxAnimationBase *)((wxAnimationPlayer const *)arg1)->GetAnimation(); | |
1853 | ||
1854 | wxPyEndAllowThreads(__tstate); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
1857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationBase, 0); | |
1858 | return resultobj; | |
1859 | fail: | |
1860 | return NULL; | |
1861 | } | |
1862 | ||
1863 | ||
1864 | static PyObject *_wrap_AnimationPlayer_SetDestroyAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1865 | PyObject *resultobj = NULL; |
6d88e192 RD |
1866 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1867 | bool arg2 ; | |
1868 | PyObject * obj0 = 0 ; | |
1869 | PyObject * obj1 = 0 ; | |
1870 | char *kwnames[] = { | |
1871 | (char *) "self",(char *) "destroyAnimation", NULL | |
1872 | }; | |
1873 | ||
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_SetDestroyAnimation",kwnames,&obj0,&obj1)) goto fail; | |
1875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1877 | { | |
32fe5131 | 1878 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6d88e192 RD |
1879 | if (SWIG_arg_fail(2)) SWIG_fail; |
1880 | } | |
1881 | { | |
1882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1883 | (arg1)->SetDestroyAnimation(arg2); | |
1884 | ||
1885 | wxPyEndAllowThreads(__tstate); | |
1886 | if (PyErr_Occurred()) SWIG_fail; | |
1887 | } | |
1888 | Py_INCREF(Py_None); resultobj = Py_None; | |
1889 | return resultobj; | |
1890 | fail: | |
1891 | return NULL; | |
1892 | } | |
1893 | ||
1894 | ||
1895 | static PyObject *_wrap_AnimationPlayer_GetDestroyAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1896 | PyObject *resultobj = NULL; |
6d88e192 RD |
1897 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1898 | bool result; | |
1899 | PyObject * obj0 = 0 ; | |
1900 | char *kwnames[] = { | |
1901 | (char *) "self", NULL | |
1902 | }; | |
1903 | ||
1904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetDestroyAnimation",kwnames,&obj0)) goto fail; | |
1905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1907 | { | |
1908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1909 | result = (bool)((wxAnimationPlayer const *)arg1)->GetDestroyAnimation(); | |
1910 | ||
1911 | wxPyEndAllowThreads(__tstate); | |
1912 | if (PyErr_Occurred()) SWIG_fail; | |
1913 | } | |
1914 | { | |
1915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1916 | } | |
1917 | return resultobj; | |
1918 | fail: | |
1919 | return NULL; | |
1920 | } | |
1921 | ||
1922 | ||
1923 | static PyObject *_wrap_AnimationPlayer_SetCurrentFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1924 | PyObject *resultobj = NULL; |
6d88e192 RD |
1925 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1926 | int arg2 ; | |
1927 | PyObject * obj0 = 0 ; | |
1928 | PyObject * obj1 = 0 ; | |
1929 | char *kwnames[] = { | |
1930 | (char *) "self",(char *) "currentFrame", NULL | |
1931 | }; | |
1932 | ||
1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_SetCurrentFrame",kwnames,&obj0,&obj1)) goto fail; | |
1934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1936 | { | |
32fe5131 | 1937 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
1938 | if (SWIG_arg_fail(2)) SWIG_fail; |
1939 | } | |
1940 | { | |
1941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1942 | (arg1)->SetCurrentFrame(arg2); | |
1943 | ||
1944 | wxPyEndAllowThreads(__tstate); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | } | |
1947 | Py_INCREF(Py_None); resultobj = Py_None; | |
1948 | return resultobj; | |
1949 | fail: | |
1950 | return NULL; | |
1951 | } | |
1952 | ||
1953 | ||
1954 | static PyObject *_wrap_AnimationPlayer_GetCurrentFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1955 | PyObject *resultobj = NULL; |
6d88e192 RD |
1956 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1957 | int result; | |
1958 | PyObject * obj0 = 0 ; | |
1959 | char *kwnames[] = { | |
1960 | (char *) "self", NULL | |
1961 | }; | |
1962 | ||
1963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetCurrentFrame",kwnames,&obj0)) goto fail; | |
1964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1966 | { | |
1967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1968 | result = (int)((wxAnimationPlayer const *)arg1)->GetCurrentFrame(); | |
1969 | ||
1970 | wxPyEndAllowThreads(__tstate); | |
1971 | if (PyErr_Occurred()) SWIG_fail; | |
1972 | } | |
1973 | { | |
32fe5131 | 1974 | resultobj = SWIG_From_int(static_cast<int >(result)); |
6d88e192 RD |
1975 | } |
1976 | return resultobj; | |
1977 | fail: | |
1978 | return NULL; | |
1979 | } | |
1980 | ||
1981 | ||
1982 | static PyObject *_wrap_AnimationPlayer_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 1983 | PyObject *resultobj = NULL; |
6d88e192 RD |
1984 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
1985 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1986 | PyObject * obj0 = 0 ; | |
1987 | PyObject * obj1 = 0 ; | |
1988 | char *kwnames[] = { | |
1989 | (char *) "self",(char *) "window", NULL | |
1990 | }; | |
1991 | ||
1992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
1993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
1994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1995 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
1996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
1997 | { | |
1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1999 | (arg1)->SetWindow(arg2); | |
2000 | ||
2001 | wxPyEndAllowThreads(__tstate); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | } | |
2004 | Py_INCREF(Py_None); resultobj = Py_None; | |
2005 | return resultobj; | |
2006 | fail: | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject *_wrap_AnimationPlayer_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2012 | PyObject *resultobj = NULL; |
6d88e192 RD |
2013 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2014 | wxWindow *result; | |
2015 | PyObject * obj0 = 0 ; | |
2016 | char *kwnames[] = { | |
2017 | (char *) "self", NULL | |
2018 | }; | |
2019 | ||
2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetWindow",kwnames,&obj0)) goto fail; | |
2021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2023 | { | |
2024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2025 | result = (wxWindow *)((wxAnimationPlayer const *)arg1)->GetWindow(); | |
2026 | ||
2027 | wxPyEndAllowThreads(__tstate); | |
2028 | if (PyErr_Occurred()) SWIG_fail; | |
2029 | } | |
2030 | { | |
2031 | resultobj = wxPyMake_wxObject(result, 0); | |
2032 | } | |
2033 | return resultobj; | |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
2039 | static PyObject *_wrap_AnimationPlayer_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2040 | PyObject *resultobj = NULL; |
6d88e192 RD |
2041 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2042 | wxPoint *arg2 = 0 ; | |
2043 | wxPoint temp2 ; | |
2044 | PyObject * obj0 = 0 ; | |
2045 | PyObject * obj1 = 0 ; | |
2046 | char *kwnames[] = { | |
2047 | (char *) "self",(char *) "pos", NULL | |
2048 | }; | |
2049 | ||
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2053 | { | |
2054 | arg2 = &temp2; | |
2055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2056 | } | |
2057 | { | |
2058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2059 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
2060 | ||
2061 | wxPyEndAllowThreads(__tstate); | |
2062 | if (PyErr_Occurred()) SWIG_fail; | |
2063 | } | |
2064 | Py_INCREF(Py_None); resultobj = Py_None; | |
2065 | return resultobj; | |
2066 | fail: | |
2067 | return NULL; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static PyObject *_wrap_AnimationPlayer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2072 | PyObject *resultobj = NULL; |
6d88e192 RD |
2073 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2074 | wxPoint result; | |
2075 | PyObject * obj0 = 0 ; | |
2076 | char *kwnames[] = { | |
2077 | (char *) "self", NULL | |
2078 | }; | |
2079 | ||
2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetPosition",kwnames,&obj0)) goto fail; | |
2081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2083 | { | |
2084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2085 | result = ((wxAnimationPlayer const *)arg1)->GetPosition(); | |
2086 | ||
2087 | wxPyEndAllowThreads(__tstate); | |
2088 | if (PyErr_Occurred()) SWIG_fail; | |
2089 | } | |
2090 | { | |
2091 | wxPoint * resultptr; | |
32fe5131 | 2092 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
6d88e192 RD |
2093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
2094 | } | |
2095 | return resultobj; | |
2096 | fail: | |
2097 | return NULL; | |
2098 | } | |
2099 | ||
2100 | ||
2101 | static PyObject *_wrap_AnimationPlayer_SetLooped(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2102 | PyObject *resultobj = NULL; |
6d88e192 RD |
2103 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2104 | bool arg2 ; | |
2105 | PyObject * obj0 = 0 ; | |
2106 | PyObject * obj1 = 0 ; | |
2107 | char *kwnames[] = { | |
2108 | (char *) "self",(char *) "looped", NULL | |
2109 | }; | |
2110 | ||
2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_SetLooped",kwnames,&obj0,&obj1)) goto fail; | |
2112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2114 | { | |
32fe5131 | 2115 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6d88e192 RD |
2116 | if (SWIG_arg_fail(2)) SWIG_fail; |
2117 | } | |
2118 | { | |
2119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2120 | (arg1)->SetLooped(arg2); | |
2121 | ||
2122 | wxPyEndAllowThreads(__tstate); | |
2123 | if (PyErr_Occurred()) SWIG_fail; | |
2124 | } | |
2125 | Py_INCREF(Py_None); resultobj = Py_None; | |
2126 | return resultobj; | |
2127 | fail: | |
2128 | return NULL; | |
2129 | } | |
2130 | ||
2131 | ||
2132 | static PyObject *_wrap_AnimationPlayer_GetLooped(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2133 | PyObject *resultobj = NULL; |
6d88e192 RD |
2134 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2135 | bool result; | |
2136 | PyObject * obj0 = 0 ; | |
2137 | char *kwnames[] = { | |
2138 | (char *) "self", NULL | |
2139 | }; | |
2140 | ||
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetLooped",kwnames,&obj0)) goto fail; | |
2142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2144 | { | |
2145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2146 | result = (bool)((wxAnimationPlayer const *)arg1)->GetLooped(); | |
2147 | ||
2148 | wxPyEndAllowThreads(__tstate); | |
2149 | if (PyErr_Occurred()) SWIG_fail; | |
2150 | } | |
2151 | { | |
2152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2153 | } | |
2154 | return resultobj; | |
2155 | fail: | |
2156 | return NULL; | |
2157 | } | |
2158 | ||
2159 | ||
2160 | static PyObject *_wrap_AnimationPlayer_HasAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2161 | PyObject *resultobj = NULL; |
6d88e192 RD |
2162 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2163 | bool result; | |
2164 | PyObject * obj0 = 0 ; | |
2165 | char *kwnames[] = { | |
2166 | (char *) "self", NULL | |
2167 | }; | |
2168 | ||
2169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_HasAnimation",kwnames,&obj0)) goto fail; | |
2170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2172 | { | |
2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2174 | result = (bool)((wxAnimationPlayer const *)arg1)->HasAnimation(); | |
2175 | ||
2176 | wxPyEndAllowThreads(__tstate); | |
2177 | if (PyErr_Occurred()) SWIG_fail; | |
2178 | } | |
2179 | { | |
2180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2181 | } | |
2182 | return resultobj; | |
2183 | fail: | |
2184 | return NULL; | |
2185 | } | |
2186 | ||
2187 | ||
2188 | static PyObject *_wrap_AnimationPlayer_IsPlaying(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2189 | PyObject *resultobj = NULL; |
6d88e192 RD |
2190 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2191 | bool result; | |
2192 | PyObject * obj0 = 0 ; | |
2193 | char *kwnames[] = { | |
2194 | (char *) "self", NULL | |
2195 | }; | |
2196 | ||
2197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_IsPlaying",kwnames,&obj0)) goto fail; | |
2198 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2199 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2200 | { | |
2201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2202 | result = (bool)((wxAnimationPlayer const *)arg1)->IsPlaying(); | |
2203 | ||
2204 | wxPyEndAllowThreads(__tstate); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | } | |
2207 | { | |
2208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2209 | } | |
2210 | return resultobj; | |
2211 | fail: | |
2212 | return NULL; | |
2213 | } | |
2214 | ||
2215 | ||
2216 | static PyObject *_wrap_AnimationPlayer_UseBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2217 | PyObject *resultobj = NULL; |
6d88e192 RD |
2218 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2219 | bool arg2 ; | |
2220 | PyObject * obj0 = 0 ; | |
2221 | PyObject * obj1 = 0 ; | |
2222 | char *kwnames[] = { | |
2223 | (char *) "self",(char *) "useBackground", NULL | |
2224 | }; | |
2225 | ||
2226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_UseBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2229 | { | |
32fe5131 | 2230 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6d88e192 RD |
2231 | if (SWIG_arg_fail(2)) SWIG_fail; |
2232 | } | |
2233 | { | |
2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2235 | (arg1)->UseBackgroundColour(arg2); | |
2236 | ||
2237 | wxPyEndAllowThreads(__tstate); | |
2238 | if (PyErr_Occurred()) SWIG_fail; | |
2239 | } | |
2240 | Py_INCREF(Py_None); resultobj = Py_None; | |
2241 | return resultobj; | |
2242 | fail: | |
2243 | return NULL; | |
2244 | } | |
2245 | ||
2246 | ||
2247 | static PyObject *_wrap_AnimationPlayer_UsingBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2248 | PyObject *resultobj = NULL; |
6d88e192 RD |
2249 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2250 | bool result; | |
2251 | PyObject * obj0 = 0 ; | |
2252 | char *kwnames[] = { | |
2253 | (char *) "self", NULL | |
2254 | }; | |
2255 | ||
2256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_UsingBackgroundColour",kwnames,&obj0)) goto fail; | |
2257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2259 | { | |
2260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2261 | result = (bool)((wxAnimationPlayer const *)arg1)->UsingBackgroundColour(); | |
2262 | ||
2263 | wxPyEndAllowThreads(__tstate); | |
2264 | if (PyErr_Occurred()) SWIG_fail; | |
2265 | } | |
2266 | { | |
2267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2268 | } | |
2269 | return resultobj; | |
2270 | fail: | |
2271 | return NULL; | |
2272 | } | |
2273 | ||
2274 | ||
2275 | static PyObject *_wrap_AnimationPlayer_SetCustomBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2276 | PyObject *resultobj = NULL; |
6d88e192 RD |
2277 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2278 | wxColour *arg2 = 0 ; | |
2279 | bool arg3 = (bool) true ; | |
2280 | wxColour temp2 ; | |
2281 | PyObject * obj0 = 0 ; | |
2282 | PyObject * obj1 = 0 ; | |
2283 | PyObject * obj2 = 0 ; | |
2284 | char *kwnames[] = { | |
2285 | (char *) "self",(char *) "col",(char *) "useCustomBackgroundColour", NULL | |
2286 | }; | |
2287 | ||
2288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:AnimationPlayer_SetCustomBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2291 | { | |
2292 | arg2 = &temp2; | |
2293 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2294 | } | |
2295 | if (obj2) { | |
2296 | { | |
32fe5131 | 2297 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
6d88e192 RD |
2298 | if (SWIG_arg_fail(3)) SWIG_fail; |
2299 | } | |
2300 | } | |
2301 | { | |
2302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2303 | (arg1)->SetCustomBackgroundColour((wxColour const &)*arg2,arg3); | |
2304 | ||
2305 | wxPyEndAllowThreads(__tstate); | |
2306 | if (PyErr_Occurred()) SWIG_fail; | |
2307 | } | |
2308 | Py_INCREF(Py_None); resultobj = Py_None; | |
2309 | return resultobj; | |
2310 | fail: | |
2311 | return NULL; | |
2312 | } | |
2313 | ||
2314 | ||
2315 | static PyObject *_wrap_AnimationPlayer_UsingCustomBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2316 | PyObject *resultobj = NULL; |
6d88e192 RD |
2317 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2318 | bool result; | |
2319 | PyObject * obj0 = 0 ; | |
2320 | char *kwnames[] = { | |
2321 | (char *) "self", NULL | |
2322 | }; | |
2323 | ||
2324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_UsingCustomBackgroundColour",kwnames,&obj0)) goto fail; | |
2325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2327 | { | |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | result = (bool)((wxAnimationPlayer const *)arg1)->UsingCustomBackgroundColour(); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | { | |
2335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2336 | } | |
2337 | return resultobj; | |
2338 | fail: | |
2339 | return NULL; | |
2340 | } | |
2341 | ||
2342 | ||
2343 | static PyObject *_wrap_AnimationPlayer_GetCustomBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2344 | PyObject *resultobj = NULL; |
6d88e192 RD |
2345 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2346 | wxColour *result; | |
2347 | PyObject * obj0 = 0 ; | |
2348 | char *kwnames[] = { | |
2349 | (char *) "self", NULL | |
2350 | }; | |
2351 | ||
2352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetCustomBackgroundColour",kwnames,&obj0)) goto fail; | |
2353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2355 | { | |
2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2357 | { | |
2358 | wxColour const &_result_ref = ((wxAnimationPlayer const *)arg1)->GetCustomBackgroundColour(); | |
2359 | result = (wxColour *) &_result_ref; | |
2360 | } | |
2361 | ||
2362 | wxPyEndAllowThreads(__tstate); | |
2363 | if (PyErr_Occurred()) SWIG_fail; | |
2364 | } | |
2365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
2366 | return resultobj; | |
2367 | fail: | |
2368 | return NULL; | |
2369 | } | |
2370 | ||
2371 | ||
2372 | static PyObject *_wrap_AnimationPlayer_UseParentBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2373 | PyObject *resultobj = NULL; |
6d88e192 RD |
2374 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2375 | bool arg2 ; | |
2376 | PyObject * obj0 = 0 ; | |
2377 | PyObject * obj1 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "self",(char *) "useParent", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_UseParentBackground",kwnames,&obj0,&obj1)) goto fail; | |
2383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2385 | { | |
32fe5131 | 2386 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6d88e192 RD |
2387 | if (SWIG_arg_fail(2)) SWIG_fail; |
2388 | } | |
2389 | { | |
2390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2391 | (arg1)->UseParentBackground(arg2); | |
2392 | ||
2393 | wxPyEndAllowThreads(__tstate); | |
2394 | if (PyErr_Occurred()) SWIG_fail; | |
2395 | } | |
2396 | Py_INCREF(Py_None); resultobj = Py_None; | |
2397 | return resultobj; | |
2398 | fail: | |
2399 | return NULL; | |
2400 | } | |
2401 | ||
2402 | ||
2403 | static PyObject *_wrap_AnimationPlayer_UsingParentBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2404 | PyObject *resultobj = NULL; |
6d88e192 RD |
2405 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2406 | bool result; | |
2407 | PyObject * obj0 = 0 ; | |
2408 | char *kwnames[] = { | |
2409 | (char *) "self", NULL | |
2410 | }; | |
2411 | ||
2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_UsingParentBackground",kwnames,&obj0)) goto fail; | |
2413 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2415 | { | |
2416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2417 | result = (bool)((wxAnimationPlayer const *)arg1)->UsingParentBackground(); | |
2418 | ||
2419 | wxPyEndAllowThreads(__tstate); | |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
2421 | } | |
2422 | { | |
2423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2424 | } | |
2425 | return resultobj; | |
2426 | fail: | |
2427 | return NULL; | |
2428 | } | |
2429 | ||
2430 | ||
2431 | static PyObject *_wrap_AnimationPlayer_Play(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2432 | PyObject *resultobj = NULL; |
6d88e192 RD |
2433 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2434 | wxWindow *arg2 = 0 ; | |
2435 | wxPoint const &arg3_defvalue = wxPoint(0, 0) ; | |
2436 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2437 | bool arg4 = (bool) true ; | |
2438 | bool result; | |
2439 | wxPoint temp3 ; | |
2440 | PyObject * obj0 = 0 ; | |
2441 | PyObject * obj1 = 0 ; | |
2442 | PyObject * obj2 = 0 ; | |
2443 | PyObject * obj3 = 0 ; | |
2444 | char *kwnames[] = { | |
2445 | (char *) "self",(char *) "window",(char *) "pos",(char *) "looped", NULL | |
2446 | }; | |
2447 | ||
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:AnimationPlayer_Play",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2451 | { | |
2452 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2454 | if (arg2 == NULL) { | |
2455 | SWIG_null_ref("wxWindow"); | |
2456 | } | |
2457 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2458 | } | |
2459 | if (obj2) { | |
2460 | { | |
2461 | arg3 = &temp3; | |
2462 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2463 | } | |
2464 | } | |
2465 | if (obj3) { | |
2466 | { | |
32fe5131 | 2467 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
6d88e192 RD |
2468 | if (SWIG_arg_fail(4)) SWIG_fail; |
2469 | } | |
2470 | } | |
2471 | { | |
2472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2473 | result = (bool)(arg1)->Play(*arg2,(wxPoint const &)*arg3,arg4); | |
2474 | ||
2475 | wxPyEndAllowThreads(__tstate); | |
2476 | if (PyErr_Occurred()) SWIG_fail; | |
2477 | } | |
2478 | { | |
2479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2480 | } | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | return NULL; | |
2484 | } | |
2485 | ||
2486 | ||
2487 | static PyObject *_wrap_AnimationPlayer_Build(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2488 | PyObject *resultobj = NULL; |
6d88e192 RD |
2489 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2490 | bool result; | |
2491 | PyObject * obj0 = 0 ; | |
2492 | char *kwnames[] = { | |
2493 | (char *) "self", NULL | |
2494 | }; | |
2495 | ||
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_Build",kwnames,&obj0)) goto fail; | |
2497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2499 | { | |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | result = (bool)(arg1)->Build(); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | { | |
2507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2508 | } | |
2509 | return resultobj; | |
2510 | fail: | |
2511 | return NULL; | |
2512 | } | |
2513 | ||
2514 | ||
2515 | static PyObject *_wrap_AnimationPlayer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2516 | PyObject *resultobj = NULL; |
6d88e192 RD |
2517 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2518 | PyObject * obj0 = 0 ; | |
2519 | char *kwnames[] = { | |
2520 | (char *) "self", NULL | |
2521 | }; | |
2522 | ||
2523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_Stop",kwnames,&obj0)) goto fail; | |
2524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2526 | { | |
2527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2528 | (arg1)->Stop(); | |
2529 | ||
2530 | wxPyEndAllowThreads(__tstate); | |
2531 | if (PyErr_Occurred()) SWIG_fail; | |
2532 | } | |
2533 | Py_INCREF(Py_None); resultobj = Py_None; | |
2534 | return resultobj; | |
2535 | fail: | |
2536 | return NULL; | |
2537 | } | |
2538 | ||
2539 | ||
2540 | static PyObject *_wrap_AnimationPlayer_Draw(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2541 | PyObject *resultobj = NULL; |
6d88e192 RD |
2542 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2543 | wxDC *arg2 = 0 ; | |
2544 | PyObject * obj0 = 0 ; | |
2545 | PyObject * obj1 = 0 ; | |
2546 | char *kwnames[] = { | |
2547 | (char *) "self",(char *) "dc", NULL | |
2548 | }; | |
2549 | ||
2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_Draw",kwnames,&obj0,&obj1)) goto fail; | |
2551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2553 | { | |
2554 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
2555 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2556 | if (arg2 == NULL) { | |
2557 | SWIG_null_ref("wxDC"); | |
2558 | } | |
2559 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2560 | } | |
2561 | { | |
2562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2563 | (arg1)->Draw(*arg2); | |
2564 | ||
2565 | wxPyEndAllowThreads(__tstate); | |
2566 | if (PyErr_Occurred()) SWIG_fail; | |
2567 | } | |
2568 | Py_INCREF(Py_None); resultobj = Py_None; | |
2569 | return resultobj; | |
2570 | fail: | |
2571 | return NULL; | |
2572 | } | |
2573 | ||
2574 | ||
2575 | static PyObject *_wrap_AnimationPlayer_GetFrameCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2576 | PyObject *resultobj = NULL; |
6d88e192 RD |
2577 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2578 | int result; | |
2579 | PyObject * obj0 = 0 ; | |
2580 | char *kwnames[] = { | |
2581 | (char *) "self", NULL | |
2582 | }; | |
2583 | ||
2584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetFrameCount",kwnames,&obj0)) goto fail; | |
2585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2587 | { | |
2588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2589 | result = (int)((wxAnimationPlayer const *)arg1)->GetFrameCount(); | |
2590 | ||
2591 | wxPyEndAllowThreads(__tstate); | |
2592 | if (PyErr_Occurred()) SWIG_fail; | |
2593 | } | |
2594 | { | |
32fe5131 | 2595 | resultobj = SWIG_From_int(static_cast<int >(result)); |
6d88e192 RD |
2596 | } |
2597 | return resultobj; | |
2598 | fail: | |
2599 | return NULL; | |
2600 | } | |
2601 | ||
2602 | ||
2603 | static PyObject *_wrap_AnimationPlayer_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2604 | PyObject *resultobj = NULL; |
6d88e192 RD |
2605 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2606 | int arg2 ; | |
2607 | wxImage *result; | |
2608 | PyObject * obj0 = 0 ; | |
2609 | PyObject * obj1 = 0 ; | |
2610 | char *kwnames[] = { | |
2611 | (char *) "self",(char *) "i", NULL | |
2612 | }; | |
2613 | ||
2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_GetFrame",kwnames,&obj0,&obj1)) goto fail; | |
2615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2617 | { | |
32fe5131 | 2618 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
2619 | if (SWIG_arg_fail(2)) SWIG_fail; |
2620 | } | |
2621 | { | |
2622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2623 | result = (wxImage *)((wxAnimationPlayer const *)arg1)->GetFrame(arg2); | |
2624 | ||
2625 | wxPyEndAllowThreads(__tstate); | |
2626 | if (PyErr_Occurred()) SWIG_fail; | |
2627 | } | |
a3957d3d | 2628 | { |
49bdcd64 | 2629 | resultobj = wxPyMake_wxObject(result, 1); |
a3957d3d | 2630 | } |
6d88e192 RD |
2631 | return resultobj; |
2632 | fail: | |
2633 | return NULL; | |
2634 | } | |
2635 | ||
2636 | ||
2637 | static PyObject *_wrap_AnimationPlayer_GetDisposalMethod(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2638 | PyObject *resultobj = NULL; |
6d88e192 RD |
2639 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2640 | int arg2 ; | |
2641 | wxAnimationDisposal result; | |
2642 | PyObject * obj0 = 0 ; | |
2643 | PyObject * obj1 = 0 ; | |
2644 | char *kwnames[] = { | |
2645 | (char *) "self",(char *) "i", NULL | |
2646 | }; | |
2647 | ||
2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_GetDisposalMethod",kwnames,&obj0,&obj1)) goto fail; | |
2649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2651 | { | |
32fe5131 | 2652 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
2653 | if (SWIG_arg_fail(2)) SWIG_fail; |
2654 | } | |
2655 | { | |
2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2657 | result = (wxAnimationDisposal)((wxAnimationPlayer const *)arg1)->GetDisposalMethod(arg2); | |
2658 | ||
2659 | wxPyEndAllowThreads(__tstate); | |
2660 | if (PyErr_Occurred()) SWIG_fail; | |
2661 | } | |
2662 | resultobj = SWIG_From_int((result)); | |
2663 | return resultobj; | |
2664 | fail: | |
2665 | return NULL; | |
2666 | } | |
2667 | ||
2668 | ||
2669 | static PyObject *_wrap_AnimationPlayer_GetFrameRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2670 | PyObject *resultobj = NULL; |
6d88e192 RD |
2671 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2672 | int arg2 ; | |
2673 | wxRect result; | |
2674 | PyObject * obj0 = 0 ; | |
2675 | PyObject * obj1 = 0 ; | |
2676 | char *kwnames[] = { | |
2677 | (char *) "self",(char *) "i", NULL | |
2678 | }; | |
2679 | ||
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_GetFrameRect",kwnames,&obj0,&obj1)) goto fail; | |
2681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2683 | { | |
32fe5131 | 2684 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
2685 | if (SWIG_arg_fail(2)) SWIG_fail; |
2686 | } | |
2687 | { | |
2688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2689 | result = ((wxAnimationPlayer const *)arg1)->GetFrameRect(arg2); | |
2690 | ||
2691 | wxPyEndAllowThreads(__tstate); | |
2692 | if (PyErr_Occurred()) SWIG_fail; | |
2693 | } | |
2694 | { | |
2695 | wxRect * resultptr; | |
32fe5131 | 2696 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
6d88e192 RD |
2697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
2698 | } | |
2699 | return resultobj; | |
2700 | fail: | |
2701 | return NULL; | |
2702 | } | |
2703 | ||
2704 | ||
2705 | static PyObject *_wrap_AnimationPlayer_GetDelay(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2706 | PyObject *resultobj = NULL; |
6d88e192 RD |
2707 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2708 | int arg2 ; | |
2709 | int result; | |
2710 | PyObject * obj0 = 0 ; | |
2711 | PyObject * obj1 = 0 ; | |
2712 | char *kwnames[] = { | |
2713 | (char *) "self",(char *) "i", NULL | |
2714 | }; | |
2715 | ||
2716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_GetDelay",kwnames,&obj0,&obj1)) goto fail; | |
2717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2719 | { | |
32fe5131 | 2720 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
2721 | if (SWIG_arg_fail(2)) SWIG_fail; |
2722 | } | |
2723 | { | |
2724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2725 | result = (int)((wxAnimationPlayer const *)arg1)->GetDelay(arg2); | |
2726 | ||
2727 | wxPyEndAllowThreads(__tstate); | |
2728 | if (PyErr_Occurred()) SWIG_fail; | |
2729 | } | |
2730 | { | |
32fe5131 | 2731 | resultobj = SWIG_From_int(static_cast<int >(result)); |
6d88e192 RD |
2732 | } |
2733 | return resultobj; | |
2734 | fail: | |
2735 | return NULL; | |
2736 | } | |
2737 | ||
2738 | ||
2739 | static PyObject *_wrap_AnimationPlayer_GetLogicalScreenSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2740 | PyObject *resultobj = NULL; |
6d88e192 RD |
2741 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2742 | wxSize result; | |
2743 | PyObject * obj0 = 0 ; | |
2744 | char *kwnames[] = { | |
2745 | (char *) "self", NULL | |
2746 | }; | |
2747 | ||
2748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetLogicalScreenSize",kwnames,&obj0)) goto fail; | |
2749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2751 | { | |
2752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2753 | result = ((wxAnimationPlayer const *)arg1)->GetLogicalScreenSize(); | |
2754 | ||
2755 | wxPyEndAllowThreads(__tstate); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | } | |
2758 | { | |
2759 | wxSize * resultptr; | |
32fe5131 | 2760 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
6d88e192 RD |
2761 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
2762 | } | |
2763 | return resultobj; | |
2764 | fail: | |
2765 | return NULL; | |
2766 | } | |
2767 | ||
2768 | ||
2769 | static PyObject *_wrap_AnimationPlayer_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2770 | PyObject *resultobj = NULL; |
6d88e192 RD |
2771 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2772 | wxColour *arg2 = 0 ; | |
2773 | bool result; | |
2774 | wxColour temp2 ; | |
2775 | PyObject * obj0 = 0 ; | |
2776 | PyObject * obj1 = 0 ; | |
2777 | char *kwnames[] = { | |
2778 | (char *) "self",(char *) "col", NULL | |
2779 | }; | |
2780 | ||
2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_GetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2784 | { | |
2785 | arg2 = &temp2; | |
2786 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2787 | } | |
2788 | { | |
2789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2790 | result = (bool)((wxAnimationPlayer const *)arg1)->GetBackgroundColour(*arg2); | |
2791 | ||
2792 | wxPyEndAllowThreads(__tstate); | |
2793 | if (PyErr_Occurred()) SWIG_fail; | |
2794 | } | |
2795 | { | |
2796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2797 | } | |
2798 | return resultobj; | |
2799 | fail: | |
2800 | return NULL; | |
2801 | } | |
2802 | ||
2803 | ||
2804 | static PyObject *_wrap_AnimationPlayer_GetTransparentColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2805 | PyObject *resultobj = NULL; |
6d88e192 RD |
2806 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2807 | wxColour *arg2 = 0 ; | |
2808 | bool result; | |
2809 | wxColour temp2 ; | |
2810 | PyObject * obj0 = 0 ; | |
2811 | PyObject * obj1 = 0 ; | |
2812 | char *kwnames[] = { | |
2813 | (char *) "self",(char *) "col", NULL | |
2814 | }; | |
2815 | ||
2816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_GetTransparentColour",kwnames,&obj0,&obj1)) goto fail; | |
2817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2819 | { | |
2820 | arg2 = &temp2; | |
2821 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2822 | } | |
2823 | { | |
2824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2825 | result = (bool)((wxAnimationPlayer const *)arg1)->GetTransparentColour(*arg2); | |
2826 | ||
2827 | wxPyEndAllowThreads(__tstate); | |
2828 | if (PyErr_Occurred()) SWIG_fail; | |
2829 | } | |
2830 | { | |
2831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2832 | } | |
2833 | return resultobj; | |
2834 | fail: | |
2835 | return NULL; | |
2836 | } | |
2837 | ||
2838 | ||
2839 | static PyObject *_wrap_AnimationPlayer_PlayFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2840 | PyObject *resultobj = NULL; |
6d88e192 RD |
2841 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2842 | int arg2 ; | |
2843 | wxWindow *arg3 = 0 ; | |
2844 | wxPoint *arg4 = 0 ; | |
2845 | bool result; | |
2846 | wxPoint temp4 ; | |
2847 | PyObject * obj0 = 0 ; | |
2848 | PyObject * obj1 = 0 ; | |
2849 | PyObject * obj2 = 0 ; | |
2850 | PyObject * obj3 = 0 ; | |
2851 | char *kwnames[] = { | |
2852 | (char *) "self",(char *) "frame",(char *) "window",(char *) "pos", NULL | |
2853 | }; | |
2854 | ||
2855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AnimationPlayer_PlayFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2858 | { | |
32fe5131 | 2859 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
2860 | if (SWIG_arg_fail(2)) SWIG_fail; |
2861 | } | |
2862 | { | |
2863 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2864 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2865 | if (arg3 == NULL) { | |
2866 | SWIG_null_ref("wxWindow"); | |
2867 | } | |
2868 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2869 | } | |
2870 | { | |
2871 | arg4 = &temp4; | |
2872 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2873 | } | |
2874 | { | |
2875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2876 | result = (bool)(arg1)->PlayFrame(arg2,*arg3,(wxPoint const &)*arg4); | |
2877 | ||
2878 | wxPyEndAllowThreads(__tstate); | |
2879 | if (PyErr_Occurred()) SWIG_fail; | |
2880 | } | |
2881 | { | |
2882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2883 | } | |
2884 | return resultobj; | |
2885 | fail: | |
2886 | return NULL; | |
2887 | } | |
2888 | ||
2889 | ||
2890 | static PyObject *_wrap_AnimationPlayer_PlayNextFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2891 | PyObject *resultobj = NULL; |
6d88e192 RD |
2892 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2893 | bool result; | |
2894 | PyObject * obj0 = 0 ; | |
2895 | char *kwnames[] = { | |
2896 | (char *) "self", NULL | |
2897 | }; | |
2898 | ||
2899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_PlayNextFrame",kwnames,&obj0)) goto fail; | |
2900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2902 | { | |
2903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2904 | result = (bool)(arg1)->PlayFrame(); | |
2905 | ||
2906 | wxPyEndAllowThreads(__tstate); | |
2907 | if (PyErr_Occurred()) SWIG_fail; | |
2908 | } | |
2909 | { | |
2910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2911 | } | |
2912 | return resultobj; | |
2913 | fail: | |
2914 | return NULL; | |
2915 | } | |
2916 | ||
2917 | ||
2918 | static PyObject *_wrap_AnimationPlayer_DrawFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2919 | PyObject *resultobj = NULL; |
6d88e192 RD |
2920 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2921 | int arg2 ; | |
2922 | wxDC *arg3 = 0 ; | |
2923 | wxPoint *arg4 = 0 ; | |
2924 | wxPoint temp4 ; | |
2925 | PyObject * obj0 = 0 ; | |
2926 | PyObject * obj1 = 0 ; | |
2927 | PyObject * obj2 = 0 ; | |
2928 | PyObject * obj3 = 0 ; | |
2929 | char *kwnames[] = { | |
2930 | (char *) "self",(char *) "frame",(char *) "dc",(char *) "pos", NULL | |
2931 | }; | |
2932 | ||
2933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AnimationPlayer_DrawFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2936 | { | |
32fe5131 | 2937 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
2938 | if (SWIG_arg_fail(2)) SWIG_fail; |
2939 | } | |
2940 | { | |
2941 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
2942 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2943 | if (arg3 == NULL) { | |
2944 | SWIG_null_ref("wxDC"); | |
2945 | } | |
2946 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2947 | } | |
2948 | { | |
2949 | arg4 = &temp4; | |
2950 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2951 | } | |
2952 | { | |
2953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2954 | (arg1)->DrawFrame(arg2,*arg3,(wxPoint const &)*arg4); | |
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_AnimationPlayer_DrawBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 2967 | PyObject *resultobj = NULL; |
6d88e192 RD |
2968 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
2969 | wxDC *arg2 = 0 ; | |
2970 | wxPoint *arg3 = 0 ; | |
2971 | wxColour *arg4 = 0 ; | |
2972 | wxPoint temp3 ; | |
2973 | wxColour temp4 ; | |
2974 | PyObject * obj0 = 0 ; | |
2975 | PyObject * obj1 = 0 ; | |
2976 | PyObject * obj2 = 0 ; | |
2977 | PyObject * obj3 = 0 ; | |
2978 | char *kwnames[] = { | |
2979 | (char *) "self",(char *) "dc",(char *) "pos",(char *) "colour", NULL | |
2980 | }; | |
2981 | ||
2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AnimationPlayer_DrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
2984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2985 | { | |
2986 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
2987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2988 | if (arg2 == NULL) { | |
2989 | SWIG_null_ref("wxDC"); | |
2990 | } | |
2991 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2992 | } | |
2993 | { | |
2994 | arg3 = &temp3; | |
2995 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2996 | } | |
2997 | { | |
2998 | arg4 = &temp4; | |
2999 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
3000 | } | |
3001 | { | |
3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3003 | (arg1)->DrawBackground(*arg2,(wxPoint const &)*arg3,(wxColour const &)*arg4); | |
3004 | ||
3005 | wxPyEndAllowThreads(__tstate); | |
3006 | if (PyErr_Occurred()) SWIG_fail; | |
3007 | } | |
3008 | Py_INCREF(Py_None); resultobj = Py_None; | |
3009 | return resultobj; | |
3010 | fail: | |
3011 | return NULL; | |
3012 | } | |
3013 | ||
3014 | ||
3015 | static PyObject *_wrap_AnimationPlayer_ClearCache(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3016 | PyObject *resultobj = NULL; |
6d88e192 RD |
3017 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
3018 | PyObject * obj0 = 0 ; | |
3019 | char *kwnames[] = { | |
3020 | (char *) "self", NULL | |
3021 | }; | |
3022 | ||
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_ClearCache",kwnames,&obj0)) goto fail; | |
3024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
3025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3026 | { | |
3027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3028 | (arg1)->ClearCache(); | |
3029 | ||
3030 | wxPyEndAllowThreads(__tstate); | |
3031 | if (PyErr_Occurred()) SWIG_fail; | |
3032 | } | |
3033 | Py_INCREF(Py_None); resultobj = Py_None; | |
3034 | return resultobj; | |
3035 | fail: | |
3036 | return NULL; | |
3037 | } | |
3038 | ||
3039 | ||
3040 | static PyObject *_wrap_AnimationPlayer_SaveBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3041 | PyObject *resultobj = NULL; |
6d88e192 RD |
3042 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
3043 | wxRect *arg2 = 0 ; | |
3044 | wxRect temp2 ; | |
3045 | PyObject * obj0 = 0 ; | |
3046 | PyObject * obj1 = 0 ; | |
3047 | char *kwnames[] = { | |
3048 | (char *) "self",(char *) "rect", NULL | |
3049 | }; | |
3050 | ||
3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationPlayer_SaveBackground",kwnames,&obj0,&obj1)) goto fail; | |
3052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
3053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3054 | { | |
3055 | arg2 = &temp2; | |
3056 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3057 | } | |
3058 | { | |
3059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3060 | (arg1)->SaveBackground((wxRect const &)*arg2); | |
3061 | ||
3062 | wxPyEndAllowThreads(__tstate); | |
3063 | if (PyErr_Occurred()) SWIG_fail; | |
3064 | } | |
3065 | Py_INCREF(Py_None); resultobj = Py_None; | |
3066 | return resultobj; | |
3067 | fail: | |
3068 | return NULL; | |
3069 | } | |
3070 | ||
3071 | ||
3072 | static PyObject *_wrap_AnimationPlayer_GetBackingStore(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3073 | PyObject *resultobj = NULL; |
6d88e192 RD |
3074 | wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ; |
3075 | wxBitmap *result; | |
3076 | PyObject * obj0 = 0 ; | |
3077 | char *kwnames[] = { | |
3078 | (char *) "self", NULL | |
3079 | }; | |
3080 | ||
3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationPlayer_GetBackingStore",kwnames,&obj0)) goto fail; | |
3082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationPlayer, SWIG_POINTER_EXCEPTION | 0); | |
3083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3084 | { | |
3085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3086 | { | |
3087 | wxBitmap &_result_ref = (arg1)->GetBackingStore(); | |
3088 | result = (wxBitmap *) &_result_ref; | |
3089 | } | |
3090 | ||
3091 | wxPyEndAllowThreads(__tstate); | |
3092 | if (PyErr_Occurred()) SWIG_fail; | |
3093 | } | |
3094 | { | |
3095 | wxBitmap* resultptr = new wxBitmap(*result); | |
3096 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3097 | } | |
3098 | return resultobj; | |
3099 | fail: | |
3100 | return NULL; | |
3101 | } | |
3102 | ||
3103 | ||
3104 | static PyObject * AnimationPlayer_swigregister(PyObject *, PyObject *args) { | |
3105 | PyObject *obj; | |
3106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3107 | SWIG_TypeClientData(SWIGTYPE_p_wxAnimationPlayer, obj); | |
3108 | Py_INCREF(obj); | |
3109 | return Py_BuildValue((char *)""); | |
3110 | } | |
3111 | static PyObject *_wrap_delete_AnimationBase(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3112 | PyObject *resultobj = NULL; |
6d88e192 RD |
3113 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3114 | PyObject * obj0 = 0 ; | |
3115 | char *kwnames[] = { | |
3116 | (char *) "self", NULL | |
3117 | }; | |
3118 | ||
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AnimationBase",kwnames,&obj0)) goto fail; | |
3120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3122 | { | |
3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3124 | delete arg1; | |
3125 | ||
3126 | wxPyEndAllowThreads(__tstate); | |
3127 | if (PyErr_Occurred()) SWIG_fail; | |
3128 | } | |
3129 | Py_INCREF(Py_None); resultobj = Py_None; | |
3130 | return resultobj; | |
3131 | fail: | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
3136 | static PyObject *_wrap_AnimationBase_GetFrameCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3137 | PyObject *resultobj = NULL; |
6d88e192 RD |
3138 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3139 | int result; | |
3140 | PyObject * obj0 = 0 ; | |
3141 | char *kwnames[] = { | |
3142 | (char *) "self", NULL | |
3143 | }; | |
3144 | ||
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationBase_GetFrameCount",kwnames,&obj0)) goto fail; | |
3146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3148 | { | |
3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3150 | result = (int)((wxAnimationBase const *)arg1)->GetFrameCount(); | |
3151 | ||
3152 | wxPyEndAllowThreads(__tstate); | |
3153 | if (PyErr_Occurred()) SWIG_fail; | |
3154 | } | |
3155 | { | |
32fe5131 | 3156 | resultobj = SWIG_From_int(static_cast<int >(result)); |
6d88e192 RD |
3157 | } |
3158 | return resultobj; | |
3159 | fail: | |
3160 | return NULL; | |
3161 | } | |
3162 | ||
3163 | ||
3164 | static PyObject *_wrap_AnimationBase_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3165 | PyObject *resultobj = NULL; |
6d88e192 RD |
3166 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3167 | int arg2 ; | |
3168 | wxImage *result; | |
3169 | PyObject * obj0 = 0 ; | |
3170 | PyObject * obj1 = 0 ; | |
3171 | char *kwnames[] = { | |
3172 | (char *) "self",(char *) "i", NULL | |
3173 | }; | |
3174 | ||
3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationBase_GetFrame",kwnames,&obj0,&obj1)) goto fail; | |
3176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3178 | { | |
32fe5131 | 3179 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3180 | if (SWIG_arg_fail(2)) SWIG_fail; |
3181 | } | |
3182 | { | |
3183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3184 | result = (wxImage *)((wxAnimationBase const *)arg1)->GetFrame(arg2); | |
3185 | ||
3186 | wxPyEndAllowThreads(__tstate); | |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
3188 | } | |
a3957d3d | 3189 | { |
49bdcd64 | 3190 | resultobj = wxPyMake_wxObject(result, 1); |
a3957d3d | 3191 | } |
6d88e192 RD |
3192 | return resultobj; |
3193 | fail: | |
3194 | return NULL; | |
3195 | } | |
3196 | ||
3197 | ||
3198 | static PyObject *_wrap_AnimationBase_GetDisposalMethod(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3199 | PyObject *resultobj = NULL; |
6d88e192 RD |
3200 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3201 | int arg2 ; | |
3202 | wxAnimationDisposal result; | |
3203 | PyObject * obj0 = 0 ; | |
3204 | PyObject * obj1 = 0 ; | |
3205 | char *kwnames[] = { | |
3206 | (char *) "self",(char *) "i", NULL | |
3207 | }; | |
3208 | ||
3209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationBase_GetDisposalMethod",kwnames,&obj0,&obj1)) goto fail; | |
3210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3212 | { | |
32fe5131 | 3213 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3214 | if (SWIG_arg_fail(2)) SWIG_fail; |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | result = (wxAnimationDisposal)((wxAnimationBase const *)arg1)->GetDisposalMethod(arg2); | |
3219 | ||
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) SWIG_fail; | |
3222 | } | |
3223 | resultobj = SWIG_From_int((result)); | |
3224 | return resultobj; | |
3225 | fail: | |
3226 | return NULL; | |
3227 | } | |
3228 | ||
3229 | ||
3230 | static PyObject *_wrap_AnimationBase_GetFrameRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3231 | PyObject *resultobj = NULL; |
6d88e192 RD |
3232 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3233 | int arg2 ; | |
3234 | wxRect result; | |
3235 | PyObject * obj0 = 0 ; | |
3236 | PyObject * obj1 = 0 ; | |
3237 | char *kwnames[] = { | |
3238 | (char *) "self",(char *) "i", NULL | |
3239 | }; | |
3240 | ||
3241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationBase_GetFrameRect",kwnames,&obj0,&obj1)) goto fail; | |
3242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3244 | { | |
32fe5131 | 3245 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3246 | if (SWIG_arg_fail(2)) SWIG_fail; |
3247 | } | |
3248 | { | |
3249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3250 | result = ((wxAnimationBase const *)arg1)->GetFrameRect(arg2); | |
3251 | ||
3252 | wxPyEndAllowThreads(__tstate); | |
3253 | if (PyErr_Occurred()) SWIG_fail; | |
3254 | } | |
3255 | { | |
3256 | wxRect * resultptr; | |
32fe5131 | 3257 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
6d88e192 RD |
3258 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
3259 | } | |
3260 | return resultobj; | |
3261 | fail: | |
3262 | return NULL; | |
3263 | } | |
3264 | ||
3265 | ||
3266 | static PyObject *_wrap_AnimationBase_GetDelay(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3267 | PyObject *resultobj = NULL; |
6d88e192 RD |
3268 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3269 | int arg2 ; | |
3270 | int result; | |
3271 | PyObject * obj0 = 0 ; | |
3272 | PyObject * obj1 = 0 ; | |
3273 | char *kwnames[] = { | |
3274 | (char *) "self",(char *) "i", NULL | |
3275 | }; | |
3276 | ||
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationBase_GetDelay",kwnames,&obj0,&obj1)) goto fail; | |
3278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3280 | { | |
32fe5131 | 3281 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3282 | if (SWIG_arg_fail(2)) SWIG_fail; |
3283 | } | |
3284 | { | |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | result = (int)((wxAnimationBase const *)arg1)->GetDelay(arg2); | |
3287 | ||
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | { | |
32fe5131 | 3292 | resultobj = SWIG_From_int(static_cast<int >(result)); |
6d88e192 RD |
3293 | } |
3294 | return resultobj; | |
3295 | fail: | |
3296 | return NULL; | |
3297 | } | |
3298 | ||
3299 | ||
3300 | static PyObject *_wrap_AnimationBase_GetLogicalScreenSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3301 | PyObject *resultobj = NULL; |
6d88e192 RD |
3302 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3303 | wxSize result; | |
3304 | PyObject * obj0 = 0 ; | |
3305 | char *kwnames[] = { | |
3306 | (char *) "self", NULL | |
3307 | }; | |
3308 | ||
3309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationBase_GetLogicalScreenSize",kwnames,&obj0)) goto fail; | |
3310 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3311 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3312 | { | |
3313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3314 | result = ((wxAnimationBase const *)arg1)->GetLogicalScreenSize(); | |
3315 | ||
3316 | wxPyEndAllowThreads(__tstate); | |
3317 | if (PyErr_Occurred()) SWIG_fail; | |
3318 | } | |
3319 | { | |
3320 | wxSize * resultptr; | |
32fe5131 | 3321 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
6d88e192 RD |
3322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
3323 | } | |
3324 | return resultobj; | |
3325 | fail: | |
3326 | return NULL; | |
3327 | } | |
3328 | ||
3329 | ||
3330 | static PyObject *_wrap_AnimationBase_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3331 | PyObject *resultobj = NULL; |
6d88e192 RD |
3332 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3333 | wxColour *arg2 = 0 ; | |
3334 | bool result; | |
3335 | wxColour temp2 ; | |
3336 | PyObject * obj0 = 0 ; | |
3337 | PyObject * obj1 = 0 ; | |
3338 | char *kwnames[] = { | |
3339 | (char *) "self",(char *) "col", NULL | |
3340 | }; | |
3341 | ||
3342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationBase_GetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
3343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3345 | { | |
3346 | arg2 = &temp2; | |
3347 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3348 | } | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | result = (bool)((wxAnimationBase const *)arg1)->GetBackgroundColour(*arg2); | |
3352 | ||
3353 | wxPyEndAllowThreads(__tstate); | |
3354 | if (PyErr_Occurred()) SWIG_fail; | |
3355 | } | |
3356 | { | |
3357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3358 | } | |
3359 | return resultobj; | |
3360 | fail: | |
3361 | return NULL; | |
3362 | } | |
3363 | ||
3364 | ||
3365 | static PyObject *_wrap_AnimationBase_GetTransparentColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3366 | PyObject *resultobj = NULL; |
6d88e192 RD |
3367 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3368 | wxColour *arg2 = 0 ; | |
3369 | bool result; | |
3370 | wxColour temp2 ; | |
3371 | PyObject * obj0 = 0 ; | |
3372 | PyObject * obj1 = 0 ; | |
3373 | char *kwnames[] = { | |
3374 | (char *) "self",(char *) "col", NULL | |
3375 | }; | |
3376 | ||
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationBase_GetTransparentColour",kwnames,&obj0,&obj1)) goto fail; | |
3378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3380 | { | |
3381 | arg2 = &temp2; | |
3382 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3383 | } | |
3384 | { | |
3385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3386 | result = (bool)((wxAnimationBase const *)arg1)->GetTransparentColour(*arg2); | |
3387 | ||
3388 | wxPyEndAllowThreads(__tstate); | |
3389 | if (PyErr_Occurred()) SWIG_fail; | |
3390 | } | |
3391 | { | |
3392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3393 | } | |
3394 | return resultobj; | |
3395 | fail: | |
3396 | return NULL; | |
3397 | } | |
3398 | ||
3399 | ||
3400 | static PyObject *_wrap_AnimationBase_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3401 | PyObject *resultobj = NULL; |
6d88e192 RD |
3402 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3403 | bool result; | |
3404 | PyObject * obj0 = 0 ; | |
3405 | char *kwnames[] = { | |
3406 | (char *) "self", NULL | |
3407 | }; | |
3408 | ||
3409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AnimationBase_IsValid",kwnames,&obj0)) goto fail; | |
3410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3412 | { | |
3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3414 | result = (bool)((wxAnimationBase const *)arg1)->IsValid(); | |
3415 | ||
3416 | wxPyEndAllowThreads(__tstate); | |
3417 | if (PyErr_Occurred()) SWIG_fail; | |
3418 | } | |
3419 | { | |
3420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3421 | } | |
3422 | return resultobj; | |
3423 | fail: | |
3424 | return NULL; | |
3425 | } | |
3426 | ||
3427 | ||
3428 | static PyObject *_wrap_AnimationBase_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3429 | PyObject *resultobj = NULL; |
6d88e192 RD |
3430 | wxAnimationBase *arg1 = (wxAnimationBase *) 0 ; |
3431 | wxString *arg2 = 0 ; | |
3432 | bool result; | |
3433 | bool temp2 = false ; | |
3434 | PyObject * obj0 = 0 ; | |
3435 | PyObject * obj1 = 0 ; | |
3436 | char *kwnames[] = { | |
3437 | (char *) "self",(char *) "filename", NULL | |
3438 | }; | |
3439 | ||
3440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AnimationBase_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
3441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0); | |
3442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3443 | { | |
3444 | arg2 = wxString_in_helper(obj1); | |
3445 | if (arg2 == NULL) SWIG_fail; | |
3446 | temp2 = true; | |
3447 | } | |
3448 | { | |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3450 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
3455 | { | |
3456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3457 | } | |
3458 | { | |
3459 | if (temp2) | |
3460 | delete arg2; | |
3461 | } | |
3462 | return resultobj; | |
3463 | fail: | |
3464 | { | |
3465 | if (temp2) | |
3466 | delete arg2; | |
3467 | } | |
3468 | return NULL; | |
3469 | } | |
3470 | ||
3471 | ||
3472 | static PyObject * AnimationBase_swigregister(PyObject *, PyObject *args) { | |
3473 | PyObject *obj; | |
3474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3475 | SWIG_TypeClientData(SWIGTYPE_p_wxAnimationBase, obj); | |
3476 | Py_INCREF(obj); | |
3477 | return Py_BuildValue((char *)""); | |
3478 | } | |
3479 | static PyObject *_wrap_new_GIFAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3480 | PyObject *resultobj = NULL; |
6d88e192 RD |
3481 | wxGIFAnimation *result; |
3482 | char *kwnames[] = { | |
3483 | NULL | |
3484 | }; | |
3485 | ||
3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFAnimation",kwnames)) goto fail; | |
3487 | { | |
3488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3489 | result = (wxGIFAnimation *)new wxGIFAnimation(); | |
3490 | ||
3491 | wxPyEndAllowThreads(__tstate); | |
3492 | if (PyErr_Occurred()) SWIG_fail; | |
3493 | } | |
3494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFAnimation, 1); | |
3495 | return resultobj; | |
3496 | fail: | |
3497 | return NULL; | |
3498 | } | |
3499 | ||
3500 | ||
3501 | static PyObject *_wrap_delete_GIFAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3502 | PyObject *resultobj = NULL; |
6d88e192 RD |
3503 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3504 | PyObject * obj0 = 0 ; | |
3505 | char *kwnames[] = { | |
3506 | (char *) "self", NULL | |
3507 | }; | |
3508 | ||
3509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GIFAnimation",kwnames,&obj0)) goto fail; | |
3510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3512 | { | |
3513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3514 | delete arg1; | |
3515 | ||
3516 | wxPyEndAllowThreads(__tstate); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
3519 | Py_INCREF(Py_None); resultobj = Py_None; | |
3520 | return resultobj; | |
3521 | fail: | |
3522 | return NULL; | |
3523 | } | |
3524 | ||
3525 | ||
3526 | static PyObject *_wrap_GIFAnimation_GetFrameCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3527 | PyObject *resultobj = NULL; |
6d88e192 RD |
3528 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3529 | int result; | |
3530 | PyObject * obj0 = 0 ; | |
3531 | char *kwnames[] = { | |
3532 | (char *) "self", NULL | |
3533 | }; | |
3534 | ||
3535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimation_GetFrameCount",kwnames,&obj0)) goto fail; | |
3536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3538 | { | |
3539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3540 | result = (int)((wxGIFAnimation const *)arg1)->GetFrameCount(); | |
3541 | ||
3542 | wxPyEndAllowThreads(__tstate); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
3544 | } | |
3545 | { | |
32fe5131 | 3546 | resultobj = SWIG_From_int(static_cast<int >(result)); |
6d88e192 RD |
3547 | } |
3548 | return resultobj; | |
3549 | fail: | |
3550 | return NULL; | |
3551 | } | |
3552 | ||
3553 | ||
3554 | static PyObject *_wrap_GIFAnimation_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3555 | PyObject *resultobj = NULL; |
6d88e192 RD |
3556 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3557 | int arg2 ; | |
3558 | wxImage *result; | |
3559 | PyObject * obj0 = 0 ; | |
3560 | PyObject * obj1 = 0 ; | |
3561 | char *kwnames[] = { | |
3562 | (char *) "self",(char *) "i", NULL | |
3563 | }; | |
3564 | ||
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimation_GetFrame",kwnames,&obj0,&obj1)) goto fail; | |
3566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3568 | { | |
32fe5131 | 3569 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3570 | if (SWIG_arg_fail(2)) SWIG_fail; |
3571 | } | |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | result = (wxImage *)((wxGIFAnimation const *)arg1)->GetFrame(arg2); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
a3957d3d | 3579 | { |
49bdcd64 | 3580 | resultobj = wxPyMake_wxObject(result, 1); |
a3957d3d | 3581 | } |
6d88e192 RD |
3582 | return resultobj; |
3583 | fail: | |
3584 | return NULL; | |
3585 | } | |
3586 | ||
3587 | ||
3588 | static PyObject *_wrap_GIFAnimation_GetDisposalMethod(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3589 | PyObject *resultobj = NULL; |
6d88e192 RD |
3590 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3591 | int arg2 ; | |
3592 | wxAnimationDisposal result; | |
3593 | PyObject * obj0 = 0 ; | |
3594 | PyObject * obj1 = 0 ; | |
3595 | char *kwnames[] = { | |
3596 | (char *) "self",(char *) "i", NULL | |
3597 | }; | |
3598 | ||
3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimation_GetDisposalMethod",kwnames,&obj0,&obj1)) goto fail; | |
3600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3602 | { | |
32fe5131 | 3603 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3604 | if (SWIG_arg_fail(2)) SWIG_fail; |
3605 | } | |
3606 | { | |
3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3608 | result = (wxAnimationDisposal)((wxGIFAnimation const *)arg1)->GetDisposalMethod(arg2); | |
3609 | ||
3610 | wxPyEndAllowThreads(__tstate); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
3613 | resultobj = SWIG_From_int((result)); | |
3614 | return resultobj; | |
3615 | fail: | |
3616 | return NULL; | |
3617 | } | |
3618 | ||
3619 | ||
3620 | static PyObject *_wrap_GIFAnimation_GetFrameRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3621 | PyObject *resultobj = NULL; |
6d88e192 RD |
3622 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3623 | int arg2 ; | |
3624 | wxRect result; | |
3625 | PyObject * obj0 = 0 ; | |
3626 | PyObject * obj1 = 0 ; | |
3627 | char *kwnames[] = { | |
3628 | (char *) "self",(char *) "i", NULL | |
3629 | }; | |
3630 | ||
3631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimation_GetFrameRect",kwnames,&obj0,&obj1)) goto fail; | |
3632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3634 | { | |
32fe5131 | 3635 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3636 | if (SWIG_arg_fail(2)) SWIG_fail; |
3637 | } | |
3638 | { | |
3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3640 | result = ((wxGIFAnimation const *)arg1)->GetFrameRect(arg2); | |
3641 | ||
3642 | wxPyEndAllowThreads(__tstate); | |
3643 | if (PyErr_Occurred()) SWIG_fail; | |
3644 | } | |
3645 | { | |
3646 | wxRect * resultptr; | |
32fe5131 | 3647 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
6d88e192 RD |
3648 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
3649 | } | |
3650 | return resultobj; | |
3651 | fail: | |
3652 | return NULL; | |
3653 | } | |
3654 | ||
3655 | ||
3656 | static PyObject *_wrap_GIFAnimation_GetDelay(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3657 | PyObject *resultobj = NULL; |
6d88e192 RD |
3658 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3659 | int arg2 ; | |
3660 | int result; | |
3661 | PyObject * obj0 = 0 ; | |
3662 | PyObject * obj1 = 0 ; | |
3663 | char *kwnames[] = { | |
3664 | (char *) "self",(char *) "i", NULL | |
3665 | }; | |
3666 | ||
3667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimation_GetDelay",kwnames,&obj0,&obj1)) goto fail; | |
3668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3670 | { | |
32fe5131 | 3671 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3672 | if (SWIG_arg_fail(2)) SWIG_fail; |
3673 | } | |
3674 | { | |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | result = (int)((wxGIFAnimation const *)arg1)->GetDelay(arg2); | |
3677 | ||
3678 | wxPyEndAllowThreads(__tstate); | |
3679 | if (PyErr_Occurred()) SWIG_fail; | |
3680 | } | |
3681 | { | |
32fe5131 | 3682 | resultobj = SWIG_From_int(static_cast<int >(result)); |
6d88e192 RD |
3683 | } |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
3690 | static PyObject *_wrap_GIFAnimation_GetLogicalScreenSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3691 | PyObject *resultobj = NULL; |
6d88e192 RD |
3692 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3693 | wxSize result; | |
3694 | PyObject * obj0 = 0 ; | |
3695 | char *kwnames[] = { | |
3696 | (char *) "self", NULL | |
3697 | }; | |
3698 | ||
3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimation_GetLogicalScreenSize",kwnames,&obj0)) goto fail; | |
3700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3702 | { | |
3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3704 | result = ((wxGIFAnimation const *)arg1)->GetLogicalScreenSize(); | |
3705 | ||
3706 | wxPyEndAllowThreads(__tstate); | |
3707 | if (PyErr_Occurred()) SWIG_fail; | |
3708 | } | |
3709 | { | |
3710 | wxSize * resultptr; | |
32fe5131 | 3711 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
6d88e192 RD |
3712 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
3713 | } | |
3714 | return resultobj; | |
3715 | fail: | |
3716 | return NULL; | |
3717 | } | |
3718 | ||
3719 | ||
3720 | static PyObject *_wrap_GIFAnimation_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3721 | PyObject *resultobj = NULL; |
6d88e192 RD |
3722 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3723 | wxColour *arg2 = 0 ; | |
3724 | bool result; | |
3725 | wxColour temp2 ; | |
3726 | PyObject * obj0 = 0 ; | |
3727 | PyObject * obj1 = 0 ; | |
3728 | char *kwnames[] = { | |
3729 | (char *) "self",(char *) "col", NULL | |
3730 | }; | |
3731 | ||
3732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimation_GetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
3733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3735 | { | |
3736 | arg2 = &temp2; | |
3737 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3738 | } | |
3739 | { | |
3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3741 | result = (bool)((wxGIFAnimation const *)arg1)->GetBackgroundColour(*arg2); | |
3742 | ||
3743 | wxPyEndAllowThreads(__tstate); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | } | |
3746 | { | |
3747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3748 | } | |
3749 | return resultobj; | |
3750 | fail: | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
3755 | static PyObject *_wrap_GIFAnimation_GetTransparentColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3756 | PyObject *resultobj = NULL; |
6d88e192 RD |
3757 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3758 | wxColour *arg2 = 0 ; | |
3759 | bool result; | |
3760 | wxColour temp2 ; | |
3761 | PyObject * obj0 = 0 ; | |
3762 | PyObject * obj1 = 0 ; | |
3763 | char *kwnames[] = { | |
3764 | (char *) "self",(char *) "col", NULL | |
3765 | }; | |
3766 | ||
3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimation_GetTransparentColour",kwnames,&obj0,&obj1)) goto fail; | |
3768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3770 | { | |
3771 | arg2 = &temp2; | |
3772 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3773 | } | |
3774 | { | |
3775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3776 | result = (bool)((wxGIFAnimation const *)arg1)->GetTransparentColour(*arg2); | |
3777 | ||
3778 | wxPyEndAllowThreads(__tstate); | |
3779 | if (PyErr_Occurred()) SWIG_fail; | |
3780 | } | |
3781 | { | |
3782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3783 | } | |
3784 | return resultobj; | |
3785 | fail: | |
3786 | return NULL; | |
3787 | } | |
3788 | ||
3789 | ||
3790 | static PyObject *_wrap_GIFAnimation_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3791 | PyObject *resultobj = NULL; |
6d88e192 RD |
3792 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3793 | bool result; | |
3794 | PyObject * obj0 = 0 ; | |
3795 | char *kwnames[] = { | |
3796 | (char *) "self", NULL | |
3797 | }; | |
3798 | ||
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimation_IsValid",kwnames,&obj0)) goto fail; | |
3800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3802 | { | |
3803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3804 | result = (bool)((wxGIFAnimation const *)arg1)->IsValid(); | |
3805 | ||
3806 | wxPyEndAllowThreads(__tstate); | |
3807 | if (PyErr_Occurred()) SWIG_fail; | |
3808 | } | |
3809 | { | |
3810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3811 | } | |
3812 | return resultobj; | |
3813 | fail: | |
3814 | return NULL; | |
3815 | } | |
3816 | ||
3817 | ||
3818 | static PyObject *_wrap_GIFAnimation_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3819 | PyObject *resultobj = NULL; |
6d88e192 RD |
3820 | wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ; |
3821 | wxString *arg2 = 0 ; | |
3822 | bool result; | |
3823 | bool temp2 = false ; | |
3824 | PyObject * obj0 = 0 ; | |
3825 | PyObject * obj1 = 0 ; | |
3826 | char *kwnames[] = { | |
3827 | (char *) "self",(char *) "filename", NULL | |
3828 | }; | |
3829 | ||
3830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimation_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
3831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimation, SWIG_POINTER_EXCEPTION | 0); | |
3832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3833 | { | |
3834 | arg2 = wxString_in_helper(obj1); | |
3835 | if (arg2 == NULL) SWIG_fail; | |
3836 | temp2 = true; | |
3837 | } | |
3838 | { | |
3839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3840 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
3841 | ||
3842 | wxPyEndAllowThreads(__tstate); | |
3843 | if (PyErr_Occurred()) SWIG_fail; | |
3844 | } | |
3845 | { | |
3846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3847 | } | |
3848 | { | |
3849 | if (temp2) | |
3850 | delete arg2; | |
3851 | } | |
3852 | return resultobj; | |
3853 | fail: | |
3854 | { | |
3855 | if (temp2) | |
3856 | delete arg2; | |
3857 | } | |
3858 | return NULL; | |
3859 | } | |
3860 | ||
3861 | ||
3862 | static PyObject * GIFAnimation_swigregister(PyObject *, PyObject *args) { | |
3863 | PyObject *obj; | |
3864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3865 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimation, obj); | |
3866 | Py_INCREF(obj); | |
3867 | return Py_BuildValue((char *)""); | |
3868 | } | |
3869 | static PyObject *_wrap_new_GIFAnimationCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3870 | PyObject *resultobj = NULL; |
6d88e192 RD |
3871 | wxWindow *arg1 = (wxWindow *) 0 ; |
3872 | int arg2 = (int) -1 ; | |
3873 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3874 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3875 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3876 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3877 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3878 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3879 | long arg6 = (long) wxAN_FIT_ANIMATION|wxNO_BORDER ; | |
3880 | wxString const &arg7_defvalue = wxPyAnimationControlNameStr ; | |
3881 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3882 | wxGIFAnimationCtrl *result; | |
3883 | bool temp3 = false ; | |
3884 | wxPoint temp4 ; | |
3885 | wxSize temp5 ; | |
3886 | bool temp7 = false ; | |
3887 | PyObject * obj0 = 0 ; | |
3888 | PyObject * obj1 = 0 ; | |
3889 | PyObject * obj2 = 0 ; | |
3890 | PyObject * obj3 = 0 ; | |
3891 | PyObject * obj4 = 0 ; | |
3892 | PyObject * obj5 = 0 ; | |
3893 | PyObject * obj6 = 0 ; | |
3894 | char *kwnames[] = { | |
3895 | (char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3896 | }; | |
3897 | ||
3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_GIFAnimationCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3901 | if (obj1) { | |
3902 | { | |
32fe5131 | 3903 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
6d88e192 RD |
3904 | if (SWIG_arg_fail(2)) SWIG_fail; |
3905 | } | |
3906 | } | |
3907 | if (obj2) { | |
3908 | { | |
3909 | arg3 = wxString_in_helper(obj2); | |
3910 | if (arg3 == NULL) SWIG_fail; | |
3911 | temp3 = true; | |
3912 | } | |
3913 | } | |
3914 | if (obj3) { | |
3915 | { | |
3916 | arg4 = &temp4; | |
3917 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3918 | } | |
3919 | } | |
3920 | if (obj4) { | |
3921 | { | |
3922 | arg5 = &temp5; | |
3923 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3924 | } | |
3925 | } | |
3926 | if (obj5) { | |
3927 | { | |
32fe5131 | 3928 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
6d88e192 RD |
3929 | if (SWIG_arg_fail(6)) SWIG_fail; |
3930 | } | |
3931 | } | |
3932 | if (obj6) { | |
3933 | { | |
3934 | arg7 = wxString_in_helper(obj6); | |
3935 | if (arg7 == NULL) SWIG_fail; | |
3936 | temp7 = true; | |
3937 | } | |
3938 | } | |
3939 | { | |
3940 | if (!wxPyCheckForApp()) SWIG_fail; | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | result = (wxGIFAnimationCtrl *)new wxGIFAnimationCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3943 | ||
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
3946 | } | |
3947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFAnimationCtrl, 1); | |
3948 | { | |
3949 | if (temp3) | |
3950 | delete arg3; | |
3951 | } | |
3952 | { | |
3953 | if (temp7) | |
3954 | delete arg7; | |
3955 | } | |
3956 | return resultobj; | |
3957 | fail: | |
3958 | { | |
3959 | if (temp3) | |
3960 | delete arg3; | |
3961 | } | |
3962 | { | |
3963 | if (temp7) | |
3964 | delete arg7; | |
3965 | } | |
3966 | return NULL; | |
3967 | } | |
3968 | ||
3969 | ||
3970 | static PyObject *_wrap_new_PreGIFAnimationCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3971 | PyObject *resultobj = NULL; |
6d88e192 RD |
3972 | wxGIFAnimationCtrl *result; |
3973 | char *kwnames[] = { | |
3974 | NULL | |
3975 | }; | |
3976 | ||
3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGIFAnimationCtrl",kwnames)) goto fail; | |
3978 | { | |
3979 | if (!wxPyCheckForApp()) SWIG_fail; | |
3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3981 | result = (wxGIFAnimationCtrl *)new wxGIFAnimationCtrl(); | |
3982 | ||
3983 | wxPyEndAllowThreads(__tstate); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
3985 | } | |
3986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFAnimationCtrl, 1); | |
3987 | return resultobj; | |
3988 | fail: | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
3993 | static PyObject *_wrap_GIFAnimationCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 3994 | PyObject *resultobj = NULL; |
6d88e192 RD |
3995 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
3996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3997 | int arg3 = (int) -1 ; | |
3998 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3999 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4000 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4001 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4002 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4003 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4004 | long arg7 = (long) wxAN_FIT_ANIMATION|wxNO_BORDER ; | |
4005 | wxString const &arg8_defvalue = wxPyAnimationControlNameStr ; | |
4006 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4007 | bool result; | |
4008 | bool temp4 = false ; | |
4009 | wxPoint temp5 ; | |
4010 | wxSize temp6 ; | |
4011 | bool temp8 = false ; | |
4012 | PyObject * obj0 = 0 ; | |
4013 | PyObject * obj1 = 0 ; | |
4014 | PyObject * obj2 = 0 ; | |
4015 | PyObject * obj3 = 0 ; | |
4016 | PyObject * obj4 = 0 ; | |
4017 | PyObject * obj5 = 0 ; | |
4018 | PyObject * obj6 = 0 ; | |
4019 | PyObject * obj7 = 0 ; | |
4020 | char *kwnames[] = { | |
4021 | (char *) "self",(char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4022 | }; | |
4023 | ||
4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:GIFAnimationCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4027 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4028 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4029 | if (obj2) { | |
4030 | { | |
32fe5131 | 4031 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
6d88e192 RD |
4032 | if (SWIG_arg_fail(3)) SWIG_fail; |
4033 | } | |
4034 | } | |
4035 | if (obj3) { | |
4036 | { | |
4037 | arg4 = wxString_in_helper(obj3); | |
4038 | if (arg4 == NULL) SWIG_fail; | |
4039 | temp4 = true; | |
4040 | } | |
4041 | } | |
4042 | if (obj4) { | |
4043 | { | |
4044 | arg5 = &temp5; | |
4045 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4046 | } | |
4047 | } | |
4048 | if (obj5) { | |
4049 | { | |
4050 | arg6 = &temp6; | |
4051 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4052 | } | |
4053 | } | |
4054 | if (obj6) { | |
4055 | { | |
32fe5131 | 4056 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
6d88e192 RD |
4057 | if (SWIG_arg_fail(7)) SWIG_fail; |
4058 | } | |
4059 | } | |
4060 | if (obj7) { | |
4061 | { | |
4062 | arg8 = wxString_in_helper(obj7); | |
4063 | if (arg8 == NULL) SWIG_fail; | |
4064 | temp8 = true; | |
4065 | } | |
4066 | } | |
4067 | { | |
4068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4069 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4070 | ||
4071 | wxPyEndAllowThreads(__tstate); | |
4072 | if (PyErr_Occurred()) SWIG_fail; | |
4073 | } | |
4074 | { | |
4075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4076 | } | |
4077 | { | |
4078 | if (temp4) | |
4079 | delete arg4; | |
4080 | } | |
4081 | { | |
4082 | if (temp8) | |
4083 | delete arg8; | |
4084 | } | |
4085 | return resultobj; | |
4086 | fail: | |
4087 | { | |
4088 | if (temp4) | |
4089 | delete arg4; | |
4090 | } | |
4091 | { | |
4092 | if (temp8) | |
4093 | delete arg8; | |
4094 | } | |
4095 | return NULL; | |
4096 | } | |
4097 | ||
4098 | ||
4099 | static PyObject *_wrap_GIFAnimationCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4100 | PyObject *resultobj = NULL; |
6d88e192 RD |
4101 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4102 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4103 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4104 | bool result; | |
4105 | bool temp2 = false ; | |
4106 | PyObject * obj0 = 0 ; | |
4107 | PyObject * obj1 = 0 ; | |
4108 | char *kwnames[] = { | |
4109 | (char *) "self",(char *) "filename", NULL | |
4110 | }; | |
4111 | ||
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GIFAnimationCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
4113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4115 | if (obj1) { | |
4116 | { | |
4117 | arg2 = wxString_in_helper(obj1); | |
4118 | if (arg2 == NULL) SWIG_fail; | |
4119 | temp2 = true; | |
4120 | } | |
4121 | } | |
4122 | { | |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
4125 | ||
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4129 | { | |
4130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4131 | } | |
4132 | { | |
4133 | if (temp2) | |
4134 | delete arg2; | |
4135 | } | |
4136 | return resultobj; | |
4137 | fail: | |
4138 | { | |
4139 | if (temp2) | |
4140 | delete arg2; | |
4141 | } | |
4142 | return NULL; | |
4143 | } | |
4144 | ||
4145 | ||
4146 | static PyObject *_wrap_GIFAnimationCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4147 | PyObject *resultobj = NULL; |
6d88e192 RD |
4148 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4149 | bool arg2 = (bool) true ; | |
4150 | bool result; | |
4151 | PyObject * obj0 = 0 ; | |
4152 | PyObject * obj1 = 0 ; | |
4153 | char *kwnames[] = { | |
4154 | (char *) "self",(char *) "looped", NULL | |
4155 | }; | |
4156 | ||
4157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GIFAnimationCtrl_Play",kwnames,&obj0,&obj1)) goto fail; | |
4158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4160 | if (obj1) { | |
4161 | { | |
32fe5131 | 4162 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
6d88e192 RD |
4163 | if (SWIG_arg_fail(2)) SWIG_fail; |
4164 | } | |
4165 | } | |
4166 | { | |
4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4168 | result = (bool)(arg1)->Play(arg2); | |
4169 | ||
4170 | wxPyEndAllowThreads(__tstate); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | } | |
4173 | { | |
4174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4175 | } | |
4176 | return resultobj; | |
4177 | fail: | |
4178 | return NULL; | |
4179 | } | |
4180 | ||
4181 | ||
4182 | static PyObject *_wrap_GIFAnimationCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4183 | PyObject *resultobj = NULL; |
6d88e192 RD |
4184 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4185 | PyObject * obj0 = 0 ; | |
4186 | char *kwnames[] = { | |
4187 | (char *) "self", NULL | |
4188 | }; | |
4189 | ||
4190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimationCtrl_Stop",kwnames,&obj0)) goto fail; | |
4191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4193 | { | |
4194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4195 | (arg1)->Stop(); | |
4196 | ||
4197 | wxPyEndAllowThreads(__tstate); | |
4198 | if (PyErr_Occurred()) SWIG_fail; | |
4199 | } | |
4200 | Py_INCREF(Py_None); resultobj = Py_None; | |
4201 | return resultobj; | |
4202 | fail: | |
4203 | return NULL; | |
4204 | } | |
4205 | ||
4206 | ||
4207 | static PyObject *_wrap_GIFAnimationCtrl_FitToAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4208 | PyObject *resultobj = NULL; |
6d88e192 RD |
4209 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4210 | PyObject * obj0 = 0 ; | |
4211 | char *kwnames[] = { | |
4212 | (char *) "self", NULL | |
4213 | }; | |
4214 | ||
4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimationCtrl_FitToAnimation",kwnames,&obj0)) goto fail; | |
4216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4218 | { | |
4219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4220 | (arg1)->FitToAnimation(); | |
4221 | ||
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | Py_INCREF(Py_None); resultobj = Py_None; | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | static PyObject *_wrap_GIFAnimationCtrl_IsPlaying(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4233 | PyObject *resultobj = NULL; |
6d88e192 RD |
4234 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4235 | bool result; | |
4236 | PyObject * obj0 = 0 ; | |
4237 | char *kwnames[] = { | |
4238 | (char *) "self", NULL | |
4239 | }; | |
4240 | ||
4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimationCtrl_IsPlaying",kwnames,&obj0)) goto fail; | |
4242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4244 | { | |
4245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4246 | result = (bool)((wxGIFAnimationCtrl const *)arg1)->IsPlaying(); | |
4247 | ||
4248 | wxPyEndAllowThreads(__tstate); | |
4249 | if (PyErr_Occurred()) SWIG_fail; | |
4250 | } | |
4251 | { | |
4252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4253 | } | |
4254 | return resultobj; | |
4255 | fail: | |
4256 | return NULL; | |
4257 | } | |
4258 | ||
4259 | ||
4260 | static PyObject *_wrap_GIFAnimationCtrl_GetPlayer(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4261 | PyObject *resultobj = NULL; |
6d88e192 RD |
4262 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4263 | wxAnimationPlayer *result; | |
4264 | PyObject * obj0 = 0 ; | |
4265 | char *kwnames[] = { | |
4266 | (char *) "self", NULL | |
4267 | }; | |
4268 | ||
4269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimationCtrl_GetPlayer",kwnames,&obj0)) goto fail; | |
4270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4272 | { | |
4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4274 | { | |
4275 | wxAnimationPlayer &_result_ref = (arg1)->GetPlayer(); | |
4276 | result = (wxAnimationPlayer *) &_result_ref; | |
4277 | } | |
4278 | ||
4279 | wxPyEndAllowThreads(__tstate); | |
4280 | if (PyErr_Occurred()) SWIG_fail; | |
4281 | } | |
4282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationPlayer, 0); | |
4283 | return resultobj; | |
4284 | fail: | |
4285 | return NULL; | |
4286 | } | |
4287 | ||
4288 | ||
4289 | static PyObject *_wrap_GIFAnimationCtrl_GetAnimation(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4290 | PyObject *resultobj = NULL; |
6d88e192 RD |
4291 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4292 | wxAnimationBase *result; | |
4293 | PyObject * obj0 = 0 ; | |
4294 | char *kwnames[] = { | |
4295 | (char *) "self", NULL | |
4296 | }; | |
4297 | ||
4298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimationCtrl_GetAnimation",kwnames,&obj0)) goto fail; | |
4299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4301 | { | |
4302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4303 | result = (wxAnimationBase *)(arg1)->GetAnimation(); | |
4304 | ||
4305 | wxPyEndAllowThreads(__tstate); | |
4306 | if (PyErr_Occurred()) SWIG_fail; | |
4307 | } | |
4308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationBase, 0); | |
4309 | return resultobj; | |
4310 | fail: | |
4311 | return NULL; | |
4312 | } | |
4313 | ||
4314 | ||
4315 | static PyObject *_wrap_GIFAnimationCtrl_GetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4316 | PyObject *resultobj = NULL; |
6d88e192 RD |
4317 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4318 | wxString *result; | |
4319 | PyObject * obj0 = 0 ; | |
4320 | char *kwnames[] = { | |
4321 | (char *) "self", NULL | |
4322 | }; | |
4323 | ||
4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GIFAnimationCtrl_GetFilename",kwnames,&obj0)) goto fail; | |
4325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4327 | { | |
4328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4329 | { | |
4330 | wxString const &_result_ref = ((wxGIFAnimationCtrl const *)arg1)->GetFilename(); | |
4331 | result = (wxString *) &_result_ref; | |
4332 | } | |
4333 | ||
4334 | wxPyEndAllowThreads(__tstate); | |
4335 | if (PyErr_Occurred()) SWIG_fail; | |
4336 | } | |
4337 | { | |
4338 | #if wxUSE_UNICODE | |
4339 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4340 | #else | |
4341 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4342 | #endif | |
4343 | } | |
4344 | return resultobj; | |
4345 | fail: | |
4346 | return NULL; | |
4347 | } | |
4348 | ||
4349 | ||
4350 | static PyObject *_wrap_GIFAnimationCtrl_SetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 4351 | PyObject *resultobj = NULL; |
6d88e192 RD |
4352 | wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ; |
4353 | wxString *arg2 = 0 ; | |
4354 | bool temp2 = false ; | |
4355 | PyObject * obj0 = 0 ; | |
4356 | PyObject * obj1 = 0 ; | |
4357 | char *kwnames[] = { | |
4358 | (char *) "self",(char *) "filename", NULL | |
4359 | }; | |
4360 | ||
4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GIFAnimationCtrl_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
4362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGIFAnimationCtrl, SWIG_POINTER_EXCEPTION | 0); | |
4363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4364 | { | |
4365 | arg2 = wxString_in_helper(obj1); | |
4366 | if (arg2 == NULL) SWIG_fail; | |
4367 | temp2 = true; | |
4368 | } | |
4369 | { | |
4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4371 | (arg1)->SetFilename((wxString const &)*arg2); | |
4372 | ||
4373 | wxPyEndAllowThreads(__tstate); | |
4374 | if (PyErr_Occurred()) SWIG_fail; | |
4375 | } | |
4376 | Py_INCREF(Py_None); resultobj = Py_None; | |
4377 | { | |
4378 | if (temp2) | |
4379 | delete arg2; | |
4380 | } | |
4381 | return resultobj; | |
4382 | fail: | |
4383 | { | |
4384 | if (temp2) | |
4385 | delete arg2; | |
4386 | } | |
4387 | return NULL; | |
4388 | } | |
4389 | ||
4390 | ||
4391 | static PyObject * GIFAnimationCtrl_swigregister(PyObject *, PyObject *args) { | |
4392 | PyObject *obj; | |
4393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4394 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimationCtrl, obj); | |
4395 | Py_INCREF(obj); | |
4396 | return Py_BuildValue((char *)""); | |
4397 | } | |
4398 | static PyMethodDef SwigMethods[] = { | |
4399 | { (char *)"new_AnimationPlayer", (PyCFunction) _wrap_new_AnimationPlayer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4400 | { (char *)"delete_AnimationPlayer", (PyCFunction) _wrap_delete_AnimationPlayer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4401 | { (char *)"AnimationPlayer_SetAnimation", (PyCFunction) _wrap_AnimationPlayer_SetAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4402 | { (char *)"AnimationPlayer_GetAnimation", (PyCFunction) _wrap_AnimationPlayer_GetAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4403 | { (char *)"AnimationPlayer_SetDestroyAnimation", (PyCFunction) _wrap_AnimationPlayer_SetDestroyAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4404 | { (char *)"AnimationPlayer_GetDestroyAnimation", (PyCFunction) _wrap_AnimationPlayer_GetDestroyAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4405 | { (char *)"AnimationPlayer_SetCurrentFrame", (PyCFunction) _wrap_AnimationPlayer_SetCurrentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4406 | { (char *)"AnimationPlayer_GetCurrentFrame", (PyCFunction) _wrap_AnimationPlayer_GetCurrentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4407 | { (char *)"AnimationPlayer_SetWindow", (PyCFunction) _wrap_AnimationPlayer_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4408 | { (char *)"AnimationPlayer_GetWindow", (PyCFunction) _wrap_AnimationPlayer_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4409 | { (char *)"AnimationPlayer_SetPosition", (PyCFunction) _wrap_AnimationPlayer_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4410 | { (char *)"AnimationPlayer_GetPosition", (PyCFunction) _wrap_AnimationPlayer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4411 | { (char *)"AnimationPlayer_SetLooped", (PyCFunction) _wrap_AnimationPlayer_SetLooped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4412 | { (char *)"AnimationPlayer_GetLooped", (PyCFunction) _wrap_AnimationPlayer_GetLooped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4413 | { (char *)"AnimationPlayer_HasAnimation", (PyCFunction) _wrap_AnimationPlayer_HasAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4414 | { (char *)"AnimationPlayer_IsPlaying", (PyCFunction) _wrap_AnimationPlayer_IsPlaying, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4415 | { (char *)"AnimationPlayer_UseBackgroundColour", (PyCFunction) _wrap_AnimationPlayer_UseBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4416 | { (char *)"AnimationPlayer_UsingBackgroundColour", (PyCFunction) _wrap_AnimationPlayer_UsingBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4417 | { (char *)"AnimationPlayer_SetCustomBackgroundColour", (PyCFunction) _wrap_AnimationPlayer_SetCustomBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4418 | { (char *)"AnimationPlayer_UsingCustomBackgroundColour", (PyCFunction) _wrap_AnimationPlayer_UsingCustomBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4419 | { (char *)"AnimationPlayer_GetCustomBackgroundColour", (PyCFunction) _wrap_AnimationPlayer_GetCustomBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4420 | { (char *)"AnimationPlayer_UseParentBackground", (PyCFunction) _wrap_AnimationPlayer_UseParentBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4421 | { (char *)"AnimationPlayer_UsingParentBackground", (PyCFunction) _wrap_AnimationPlayer_UsingParentBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4422 | { (char *)"AnimationPlayer_Play", (PyCFunction) _wrap_AnimationPlayer_Play, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4423 | { (char *)"AnimationPlayer_Build", (PyCFunction) _wrap_AnimationPlayer_Build, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4424 | { (char *)"AnimationPlayer_Stop", (PyCFunction) _wrap_AnimationPlayer_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4425 | { (char *)"AnimationPlayer_Draw", (PyCFunction) _wrap_AnimationPlayer_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4426 | { (char *)"AnimationPlayer_GetFrameCount", (PyCFunction) _wrap_AnimationPlayer_GetFrameCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4427 | { (char *)"AnimationPlayer_GetFrame", (PyCFunction) _wrap_AnimationPlayer_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4428 | { (char *)"AnimationPlayer_GetDisposalMethod", (PyCFunction) _wrap_AnimationPlayer_GetDisposalMethod, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4429 | { (char *)"AnimationPlayer_GetFrameRect", (PyCFunction) _wrap_AnimationPlayer_GetFrameRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4430 | { (char *)"AnimationPlayer_GetDelay", (PyCFunction) _wrap_AnimationPlayer_GetDelay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4431 | { (char *)"AnimationPlayer_GetLogicalScreenSize", (PyCFunction) _wrap_AnimationPlayer_GetLogicalScreenSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4432 | { (char *)"AnimationPlayer_GetBackgroundColour", (PyCFunction) _wrap_AnimationPlayer_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4433 | { (char *)"AnimationPlayer_GetTransparentColour", (PyCFunction) _wrap_AnimationPlayer_GetTransparentColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4434 | { (char *)"AnimationPlayer_PlayFrame", (PyCFunction) _wrap_AnimationPlayer_PlayFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4435 | { (char *)"AnimationPlayer_PlayNextFrame", (PyCFunction) _wrap_AnimationPlayer_PlayNextFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4436 | { (char *)"AnimationPlayer_DrawFrame", (PyCFunction) _wrap_AnimationPlayer_DrawFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4437 | { (char *)"AnimationPlayer_DrawBackground", (PyCFunction) _wrap_AnimationPlayer_DrawBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4438 | { (char *)"AnimationPlayer_ClearCache", (PyCFunction) _wrap_AnimationPlayer_ClearCache, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4439 | { (char *)"AnimationPlayer_SaveBackground", (PyCFunction) _wrap_AnimationPlayer_SaveBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4440 | { (char *)"AnimationPlayer_GetBackingStore", (PyCFunction) _wrap_AnimationPlayer_GetBackingStore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4441 | { (char *)"AnimationPlayer_swigregister", AnimationPlayer_swigregister, METH_VARARGS, NULL}, | |
4442 | { (char *)"delete_AnimationBase", (PyCFunction) _wrap_delete_AnimationBase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4443 | { (char *)"AnimationBase_GetFrameCount", (PyCFunction) _wrap_AnimationBase_GetFrameCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4444 | { (char *)"AnimationBase_GetFrame", (PyCFunction) _wrap_AnimationBase_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4445 | { (char *)"AnimationBase_GetDisposalMethod", (PyCFunction) _wrap_AnimationBase_GetDisposalMethod, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4446 | { (char *)"AnimationBase_GetFrameRect", (PyCFunction) _wrap_AnimationBase_GetFrameRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4447 | { (char *)"AnimationBase_GetDelay", (PyCFunction) _wrap_AnimationBase_GetDelay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4448 | { (char *)"AnimationBase_GetLogicalScreenSize", (PyCFunction) _wrap_AnimationBase_GetLogicalScreenSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4449 | { (char *)"AnimationBase_GetBackgroundColour", (PyCFunction) _wrap_AnimationBase_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4450 | { (char *)"AnimationBase_GetTransparentColour", (PyCFunction) _wrap_AnimationBase_GetTransparentColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4451 | { (char *)"AnimationBase_IsValid", (PyCFunction) _wrap_AnimationBase_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4452 | { (char *)"AnimationBase_LoadFile", (PyCFunction) _wrap_AnimationBase_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4453 | { (char *)"AnimationBase_swigregister", AnimationBase_swigregister, METH_VARARGS, NULL}, | |
4454 | { (char *)"new_GIFAnimation", (PyCFunction) _wrap_new_GIFAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4455 | { (char *)"delete_GIFAnimation", (PyCFunction) _wrap_delete_GIFAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4456 | { (char *)"GIFAnimation_GetFrameCount", (PyCFunction) _wrap_GIFAnimation_GetFrameCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4457 | { (char *)"GIFAnimation_GetFrame", (PyCFunction) _wrap_GIFAnimation_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4458 | { (char *)"GIFAnimation_GetDisposalMethod", (PyCFunction) _wrap_GIFAnimation_GetDisposalMethod, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4459 | { (char *)"GIFAnimation_GetFrameRect", (PyCFunction) _wrap_GIFAnimation_GetFrameRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4460 | { (char *)"GIFAnimation_GetDelay", (PyCFunction) _wrap_GIFAnimation_GetDelay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4461 | { (char *)"GIFAnimation_GetLogicalScreenSize", (PyCFunction) _wrap_GIFAnimation_GetLogicalScreenSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4462 | { (char *)"GIFAnimation_GetBackgroundColour", (PyCFunction) _wrap_GIFAnimation_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4463 | { (char *)"GIFAnimation_GetTransparentColour", (PyCFunction) _wrap_GIFAnimation_GetTransparentColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4464 | { (char *)"GIFAnimation_IsValid", (PyCFunction) _wrap_GIFAnimation_IsValid, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4465 | { (char *)"GIFAnimation_LoadFile", (PyCFunction) _wrap_GIFAnimation_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4466 | { (char *)"GIFAnimation_swigregister", GIFAnimation_swigregister, METH_VARARGS, NULL}, | |
4467 | { (char *)"new_GIFAnimationCtrl", (PyCFunction) _wrap_new_GIFAnimationCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4468 | { (char *)"new_PreGIFAnimationCtrl", (PyCFunction) _wrap_new_PreGIFAnimationCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4469 | { (char *)"GIFAnimationCtrl_Create", (PyCFunction) _wrap_GIFAnimationCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4470 | { (char *)"GIFAnimationCtrl_LoadFile", (PyCFunction) _wrap_GIFAnimationCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4471 | { (char *)"GIFAnimationCtrl_Play", (PyCFunction) _wrap_GIFAnimationCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4472 | { (char *)"GIFAnimationCtrl_Stop", (PyCFunction) _wrap_GIFAnimationCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4473 | { (char *)"GIFAnimationCtrl_FitToAnimation", (PyCFunction) _wrap_GIFAnimationCtrl_FitToAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4474 | { (char *)"GIFAnimationCtrl_IsPlaying", (PyCFunction) _wrap_GIFAnimationCtrl_IsPlaying, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4475 | { (char *)"GIFAnimationCtrl_GetPlayer", (PyCFunction) _wrap_GIFAnimationCtrl_GetPlayer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4476 | { (char *)"GIFAnimationCtrl_GetAnimation", (PyCFunction) _wrap_GIFAnimationCtrl_GetAnimation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4477 | { (char *)"GIFAnimationCtrl_GetFilename", (PyCFunction) _wrap_GIFAnimationCtrl_GetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4478 | { (char *)"GIFAnimationCtrl_SetFilename", (PyCFunction) _wrap_GIFAnimationCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4479 | { (char *)"GIFAnimationCtrl_swigregister", GIFAnimationCtrl_swigregister, METH_VARARGS, NULL}, | |
4480 | { NULL, NULL, 0, NULL } | |
4481 | }; | |
4482 | ||
4483 | ||
4484 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
4485 | ||
4486 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
4487 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
4488 | } | |
4489 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
4490 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
4491 | } | |
4492 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
4493 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
4494 | } | |
4495 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
4496 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
4497 | } | |
4498 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
4499 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
4500 | } | |
4501 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
4502 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
4503 | } | |
4504 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
4505 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
4506 | } | |
4507 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
4508 | return (void *)((wxObject *) ((wxSizer *) x)); | |
4509 | } | |
4510 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
4511 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
4512 | } | |
4513 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
4514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
4515 | } | |
4516 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
4517 | return (void *)((wxObject *) ((wxEvent *) x)); | |
4518 | } | |
4519 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
4520 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
4521 | } | |
4522 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
4523 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
4524 | } | |
4525 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
4526 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
4527 | } | |
4528 | static void *_p_wxAnimationBaseTo_p_wxObject(void *x) { | |
4529 | return (void *)((wxObject *) ((wxAnimationBase *) x)); | |
4530 | } | |
4531 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
4532 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
4533 | } | |
4534 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
4535 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
4536 | } | |
4537 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
4538 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
4539 | } | |
4540 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
4541 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
4542 | } | |
4543 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
4544 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
4545 | } | |
4546 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
4547 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
4548 | } | |
4549 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
4550 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
4551 | } | |
4552 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
4553 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
4554 | } | |
4555 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
4556 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
4557 | } | |
4558 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
4559 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
4560 | } | |
4561 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
4562 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
4563 | } | |
4564 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
4565 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
4566 | } | |
4567 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
4568 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
4569 | } | |
4570 | static void *_p_wxAnimationPlayerTo_p_wxObject(void *x) { | |
4571 | return (void *)((wxObject *) ((wxAnimationPlayer *) x)); | |
4572 | } | |
4573 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
4574 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
4575 | } | |
4576 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
4577 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
4578 | } | |
4579 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
4580 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
4581 | } | |
4582 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
4583 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
4584 | } | |
4585 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
4586 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
4587 | } | |
4588 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
4589 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
4590 | } | |
4591 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
4592 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
4593 | } | |
4594 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
4595 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
4596 | } | |
4597 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
4598 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
4599 | } | |
4600 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
4601 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
4602 | } | |
6d88e192 RD |
4603 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
4604 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
4605 | } | |
4606 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
4607 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
4608 | } | |
4609 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
4610 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
4611 | } | |
4612 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
4613 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
4614 | } | |
4615 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
4616 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
4617 | } | |
4618 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
4619 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
4620 | } | |
4621 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
4622 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
4623 | } | |
4624 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
4625 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
4626 | } | |
4627 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
4628 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
4629 | } | |
943e8dfd RD |
4630 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
4631 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
4632 | } | |
6d88e192 RD |
4633 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
4634 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
4635 | } | |
943e8dfd RD |
4636 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
4637 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
4638 | } | |
6d88e192 RD |
4639 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
4640 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
4641 | } | |
4642 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
4643 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
4644 | } | |
4645 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
4646 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
4647 | } | |
4648 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
4649 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
4650 | } | |
4651 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
4652 | return (void *)((wxObject *) ((wxImage *) x)); | |
4653 | } | |
4654 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
4655 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
4656 | } | |
4657 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
4658 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
4659 | } | |
4660 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
4661 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
4662 | } | |
4663 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
4664 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
4665 | } | |
4666 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
4667 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
4668 | } | |
4669 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
4670 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
4671 | } | |
4672 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
4673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
4674 | } | |
4675 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
4676 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
4677 | } | |
4678 | static void *_p_wxGIFAnimationTo_p_wxObject(void *x) { | |
4679 | return (void *)((wxObject *) (wxAnimationBase *) ((wxGIFAnimation *) x)); | |
4680 | } | |
4681 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
4682 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
4683 | } | |
4684 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
4685 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
4686 | } | |
4687 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
4688 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
4689 | } | |
4690 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
4691 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
4692 | } | |
4693 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
4694 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
4695 | } | |
4696 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
4697 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
4698 | } | |
4699 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
4700 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
4701 | } | |
4702 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
4703 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
4704 | } | |
4705 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
4706 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
4707 | } | |
4708 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
4709 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
4710 | } | |
4711 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
4712 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
4713 | } | |
4714 | static void *_p_wxGIFAnimationCtrlTo_p_wxObject(void *x) { | |
4715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGIFAnimationCtrl *) x)); | |
4716 | } | |
4717 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
4718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
4719 | } | |
4720 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
4721 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
4722 | } | |
4723 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
4724 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
4725 | } | |
4726 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
4727 | return (void *)((wxWindow *) ((wxControl *) x)); | |
4728 | } | |
4729 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
4730 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
4731 | } | |
4732 | static void *_p_wxGIFAnimationCtrlTo_p_wxWindow(void *x) { | |
4733 | return (void *)((wxWindow *) (wxControl *) ((wxGIFAnimationCtrl *) x)); | |
4734 | } | |
4735 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
4736 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
4737 | } | |
4738 | static void *_p_wxGIFAnimationTo_p_wxAnimationBase(void *x) { | |
4739 | return (void *)((wxAnimationBase *) ((wxGIFAnimation *) x)); | |
4740 | } | |
4741 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
4742 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
4743 | } | |
4744 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
4745 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
4746 | } | |
4747 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
4748 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
4749 | } | |
4750 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
4751 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
4752 | } | |
4753 | static void *_p_wxGIFAnimationCtrlTo_p_wxEvtHandler(void *x) { | |
4754 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGIFAnimationCtrl *) x)); | |
4755 | } | |
4756 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
4757 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
4758 | } | |
4759 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
4760 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
4761 | } | |
4762 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
4763 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
4764 | } | |
4765 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
4766 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
4767 | } | |
4768 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
4769 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
4770 | } | |
4771 | static void *_p_wxGIFAnimationCtrlTo_p_wxControl(void *x) { | |
4772 | return (void *)((wxControl *) ((wxGIFAnimationCtrl *) x)); | |
4773 | } | |
32fe5131 RD |
4774 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; |
4775 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
4776 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0}; | |
4777 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
4778 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
4779 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
4780 | static swig_type_info _swigt__p_wxAnimationBase = {"_p_wxAnimationBase", "wxAnimationBase *", 0, 0, 0}; | |
4781 | static swig_type_info _swigt__p_wxAnimationPlayer = {"_p_wxAnimationPlayer", "wxAnimationPlayer *", 0, 0, 0}; | |
4782 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0}; | |
4783 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0}; | |
4784 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0}; | |
4785 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
4786 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0}; | |
4787 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
4788 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
4789 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
4790 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
4791 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0}; | |
4792 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
4793 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
4794 | static swig_type_info _swigt__p_wxGIFAnimation = {"_p_wxGIFAnimation", "wxGIFAnimation *", 0, 0, 0}; | |
4795 | static swig_type_info _swigt__p_wxGIFAnimationCtrl = {"_p_wxGIFAnimationCtrl", "wxGIFAnimationCtrl *", 0, 0, 0}; | |
4796 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
4797 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
4798 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
4799 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
4800 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
4801 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
4802 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
4803 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
4804 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
4805 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
4806 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
4807 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0}; | |
4808 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
4809 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
4810 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
4811 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
4812 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
4813 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
4814 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
4815 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
4816 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
4817 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
4818 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
4819 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
4820 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
4821 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0}; | |
4822 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
4823 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
4824 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
4825 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
4826 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
4827 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
4828 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
4829 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
4830 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
4831 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
4832 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
4833 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
4834 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
4835 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
4836 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
4837 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
4838 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
4839 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
4840 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
4841 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
4842 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
4843 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
4844 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
4845 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
4846 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
4847 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
4848 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
4849 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
4850 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
4851 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
4852 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
4853 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
4854 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
4855 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
4856 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
4857 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
4858 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
4859 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0}; | |
4860 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
4861 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
4862 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
4863 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
4864 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
4865 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0}; | |
4866 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0}; | |
4867 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0}; | |
4868 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
4869 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
4870 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
4871 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
4872 | ||
4873 | static swig_type_info *swig_type_initial[] = { | |
4874 | &_swigt__p_char, | |
4875 | &_swigt__p_form_ops_t, | |
4876 | &_swigt__p_int, | |
4877 | &_swigt__p_unsigned_char, | |
4878 | &_swigt__p_unsigned_int, | |
4879 | &_swigt__p_unsigned_long, | |
4880 | &_swigt__p_wxANIHandler, | |
4881 | &_swigt__p_wxAcceleratorTable, | |
4882 | &_swigt__p_wxActivateEvent, | |
4883 | &_swigt__p_wxAnimationBase, | |
4884 | &_swigt__p_wxAnimationPlayer, | |
4885 | &_swigt__p_wxBMPHandler, | |
4886 | &_swigt__p_wxBitmap, | |
4887 | &_swigt__p_wxBoxSizer, | |
4888 | &_swigt__p_wxCURHandler, | |
4889 | &_swigt__p_wxChildFocusEvent, | |
4890 | &_swigt__p_wxCloseEvent, | |
4891 | &_swigt__p_wxColour, | |
4892 | &_swigt__p_wxCommandEvent, | |
4893 | &_swigt__p_wxContextMenuEvent, | |
4894 | &_swigt__p_wxControl, | |
4895 | &_swigt__p_wxControlWithItems, | |
4896 | &_swigt__p_wxDC, | |
4897 | &_swigt__p_wxDateEvent, | |
4898 | &_swigt__p_wxDisplayChangedEvent, | |
4899 | &_swigt__p_wxDropFilesEvent, | |
4900 | &_swigt__p_wxDuplexMode, | |
4901 | &_swigt__p_wxEraseEvent, | |
4902 | &_swigt__p_wxEvent, | |
4903 | &_swigt__p_wxEvtHandler, | |
4904 | &_swigt__p_wxFSFile, | |
4905 | &_swigt__p_wxFileSystem, | |
4906 | &_swigt__p_wxFlexGridSizer, | |
4907 | &_swigt__p_wxFocusEvent, | |
4908 | &_swigt__p_wxGBSizerItem, | |
4909 | &_swigt__p_wxGIFAnimation, | |
4910 | &_swigt__p_wxGIFAnimationCtrl, | |
4911 | &_swigt__p_wxGIFHandler, | |
4912 | &_swigt__p_wxGridBagSizer, | |
4913 | &_swigt__p_wxGridSizer, | |
4914 | &_swigt__p_wxICOHandler, | |
4915 | &_swigt__p_wxIconizeEvent, | |
4916 | &_swigt__p_wxIdleEvent, | |
4917 | &_swigt__p_wxImage, | |
4918 | &_swigt__p_wxImageHandler, | |
4919 | &_swigt__p_wxIndividualLayoutConstraint, | |
4920 | &_swigt__p_wxInitDialogEvent, | |
4921 | &_swigt__p_wxJPEGHandler, | |
4922 | &_swigt__p_wxKeyEvent, | |
4923 | &_swigt__p_wxLayoutConstraints, | |
4924 | &_swigt__p_wxMaximizeEvent, | |
4925 | &_swigt__p_wxMenu, | |
4926 | &_swigt__p_wxMenuBar, | |
4927 | &_swigt__p_wxMenuEvent, | |
4928 | &_swigt__p_wxMenuItem, | |
4929 | &_swigt__p_wxMouseCaptureChangedEvent, | |
4930 | &_swigt__p_wxMouseEvent, | |
4931 | &_swigt__p_wxMoveEvent, | |
4932 | &_swigt__p_wxNavigationKeyEvent, | |
4933 | &_swigt__p_wxNcPaintEvent, | |
4934 | &_swigt__p_wxNotifyEvent, | |
4935 | &_swigt__p_wxObject, | |
4936 | &_swigt__p_wxPCXHandler, | |
4937 | &_swigt__p_wxPNGHandler, | |
4938 | &_swigt__p_wxPNMHandler, | |
4939 | &_swigt__p_wxPaintEvent, | |
4940 | &_swigt__p_wxPaletteChangedEvent, | |
4941 | &_swigt__p_wxPaperSize, | |
4942 | &_swigt__p_wxPoint, | |
4943 | &_swigt__p_wxPyApp, | |
4944 | &_swigt__p_wxPyCommandEvent, | |
4945 | &_swigt__p_wxPyEvent, | |
4946 | &_swigt__p_wxPyImageHandler, | |
4947 | &_swigt__p_wxPySizer, | |
4948 | &_swigt__p_wxPyValidator, | |
4949 | &_swigt__p_wxQueryNewPaletteEvent, | |
4950 | &_swigt__p_wxRect, | |
4951 | &_swigt__p_wxScrollEvent, | |
4952 | &_swigt__p_wxScrollWinEvent, | |
4953 | &_swigt__p_wxSetCursorEvent, | |
4954 | &_swigt__p_wxShowEvent, | |
4955 | &_swigt__p_wxSize, | |
4956 | &_swigt__p_wxSizeEvent, | |
4957 | &_swigt__p_wxSizer, | |
4958 | &_swigt__p_wxSizerItem, | |
4959 | &_swigt__p_wxStaticBoxSizer, | |
4960 | &_swigt__p_wxStdDialogButtonSizer, | |
4961 | &_swigt__p_wxSysColourChangedEvent, | |
4962 | &_swigt__p_wxTIFFHandler, | |
4963 | &_swigt__p_wxUpdateUIEvent, | |
4964 | &_swigt__p_wxValidator, | |
4965 | &_swigt__p_wxWindow, | |
4966 | &_swigt__p_wxWindowCreateEvent, | |
4967 | &_swigt__p_wxWindowDestroyEvent, | |
4968 | &_swigt__p_wxXPMHandler, | |
4969 | &_swigt__ptrdiff_t, | |
4970 | &_swigt__std__ptrdiff_t, | |
4971 | &_swigt__unsigned_int, | |
4972 | }; | |
4973 | ||
4974 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
4975 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
4976 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
4977 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
4978 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
4979 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
4980 | static swig_cast_info _swigc__p_wxAnimationBase[] = { {&_swigt__p_wxAnimationBase, 0, 0, 0}, {&_swigt__p_wxGIFAnimation, _p_wxGIFAnimationTo_p_wxAnimationBase, 0, 0},{0, 0, 0, 0}}; | |
4981 | static swig_cast_info _swigc__p_wxAnimationPlayer[] = { {&_swigt__p_wxAnimationPlayer, 0, 0, 0},{0, 0, 0, 0}}; | |
4982 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
4983 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
4984 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
4985 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGIFAnimationCtrl, _p_wxGIFAnimationCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}}; | |
4986 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
4987 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
4988 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
4989 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
4990 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
4991 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
4992 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
4993 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxGIFAnimationCtrl, _p_wxGIFAnimationCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; | |
4994 | static swig_cast_info _swigc__p_wxGIFAnimation[] = { {&_swigt__p_wxGIFAnimation, 0, 0, 0},{0, 0, 0, 0}}; | |
4995 | static swig_cast_info _swigc__p_wxGIFAnimationCtrl[] = { {&_swigt__p_wxGIFAnimationCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
4996 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
4997 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
4998 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
4999 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5000 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
5001 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5002 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5003 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5004 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5005 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5006 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5007 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5008 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5009 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5010 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5011 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5012 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5013 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5014 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5015 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5016 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5017 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
5018 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5019 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5020 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5021 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5022 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
5023 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5024 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5025 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5026 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5027 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5028 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5029 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5030 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5031 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5032 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5033 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5034 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5035 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5036 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5037 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5038 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5039 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5040 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5041 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5042 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5043 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5044 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
5045 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
5046 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
5047 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
5048 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5049 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5050 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5051 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5052 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
5053 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5054 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5055 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5056 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5057 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5058 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5059 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5060 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5061 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5062 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
5063 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAnimationBase, _p_wxAnimationBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAnimationPlayer, _p_wxAnimationPlayerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFAnimation, _p_wxGIFAnimationTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFAnimationCtrl, _p_wxGIFAnimationCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
5064 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
5065 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
5066 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
5067 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
5068 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGIFAnimationCtrl, _p_wxGIFAnimationCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
5069 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
5070 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
5071 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
5072 | ||
5073 | static swig_cast_info *swig_cast_initial[] = { | |
5074 | _swigc__p_char, | |
5075 | _swigc__p_form_ops_t, | |
5076 | _swigc__p_int, | |
5077 | _swigc__p_unsigned_char, | |
5078 | _swigc__p_unsigned_int, | |
5079 | _swigc__p_unsigned_long, | |
5080 | _swigc__p_wxANIHandler, | |
5081 | _swigc__p_wxAcceleratorTable, | |
5082 | _swigc__p_wxActivateEvent, | |
5083 | _swigc__p_wxAnimationBase, | |
5084 | _swigc__p_wxAnimationPlayer, | |
5085 | _swigc__p_wxBMPHandler, | |
5086 | _swigc__p_wxBitmap, | |
5087 | _swigc__p_wxBoxSizer, | |
5088 | _swigc__p_wxCURHandler, | |
5089 | _swigc__p_wxChildFocusEvent, | |
5090 | _swigc__p_wxCloseEvent, | |
5091 | _swigc__p_wxColour, | |
5092 | _swigc__p_wxCommandEvent, | |
5093 | _swigc__p_wxContextMenuEvent, | |
5094 | _swigc__p_wxControl, | |
5095 | _swigc__p_wxControlWithItems, | |
5096 | _swigc__p_wxDC, | |
5097 | _swigc__p_wxDateEvent, | |
5098 | _swigc__p_wxDisplayChangedEvent, | |
5099 | _swigc__p_wxDropFilesEvent, | |
5100 | _swigc__p_wxDuplexMode, | |
5101 | _swigc__p_wxEraseEvent, | |
5102 | _swigc__p_wxEvent, | |
5103 | _swigc__p_wxEvtHandler, | |
5104 | _swigc__p_wxFSFile, | |
5105 | _swigc__p_wxFileSystem, | |
5106 | _swigc__p_wxFlexGridSizer, | |
5107 | _swigc__p_wxFocusEvent, | |
5108 | _swigc__p_wxGBSizerItem, | |
5109 | _swigc__p_wxGIFAnimation, | |
5110 | _swigc__p_wxGIFAnimationCtrl, | |
5111 | _swigc__p_wxGIFHandler, | |
5112 | _swigc__p_wxGridBagSizer, | |
5113 | _swigc__p_wxGridSizer, | |
5114 | _swigc__p_wxICOHandler, | |
5115 | _swigc__p_wxIconizeEvent, | |
5116 | _swigc__p_wxIdleEvent, | |
5117 | _swigc__p_wxImage, | |
5118 | _swigc__p_wxImageHandler, | |
5119 | _swigc__p_wxIndividualLayoutConstraint, | |
5120 | _swigc__p_wxInitDialogEvent, | |
5121 | _swigc__p_wxJPEGHandler, | |
5122 | _swigc__p_wxKeyEvent, | |
5123 | _swigc__p_wxLayoutConstraints, | |
5124 | _swigc__p_wxMaximizeEvent, | |
5125 | _swigc__p_wxMenu, | |
5126 | _swigc__p_wxMenuBar, | |
5127 | _swigc__p_wxMenuEvent, | |
5128 | _swigc__p_wxMenuItem, | |
5129 | _swigc__p_wxMouseCaptureChangedEvent, | |
5130 | _swigc__p_wxMouseEvent, | |
5131 | _swigc__p_wxMoveEvent, | |
5132 | _swigc__p_wxNavigationKeyEvent, | |
5133 | _swigc__p_wxNcPaintEvent, | |
5134 | _swigc__p_wxNotifyEvent, | |
5135 | _swigc__p_wxObject, | |
5136 | _swigc__p_wxPCXHandler, | |
5137 | _swigc__p_wxPNGHandler, | |
5138 | _swigc__p_wxPNMHandler, | |
5139 | _swigc__p_wxPaintEvent, | |
5140 | _swigc__p_wxPaletteChangedEvent, | |
5141 | _swigc__p_wxPaperSize, | |
5142 | _swigc__p_wxPoint, | |
5143 | _swigc__p_wxPyApp, | |
5144 | _swigc__p_wxPyCommandEvent, | |
5145 | _swigc__p_wxPyEvent, | |
5146 | _swigc__p_wxPyImageHandler, | |
5147 | _swigc__p_wxPySizer, | |
5148 | _swigc__p_wxPyValidator, | |
5149 | _swigc__p_wxQueryNewPaletteEvent, | |
5150 | _swigc__p_wxRect, | |
5151 | _swigc__p_wxScrollEvent, | |
5152 | _swigc__p_wxScrollWinEvent, | |
5153 | _swigc__p_wxSetCursorEvent, | |
5154 | _swigc__p_wxShowEvent, | |
5155 | _swigc__p_wxSize, | |
5156 | _swigc__p_wxSizeEvent, | |
5157 | _swigc__p_wxSizer, | |
5158 | _swigc__p_wxSizerItem, | |
5159 | _swigc__p_wxStaticBoxSizer, | |
5160 | _swigc__p_wxStdDialogButtonSizer, | |
5161 | _swigc__p_wxSysColourChangedEvent, | |
5162 | _swigc__p_wxTIFFHandler, | |
5163 | _swigc__p_wxUpdateUIEvent, | |
5164 | _swigc__p_wxValidator, | |
5165 | _swigc__p_wxWindow, | |
5166 | _swigc__p_wxWindowCreateEvent, | |
5167 | _swigc__p_wxWindowDestroyEvent, | |
5168 | _swigc__p_wxXPMHandler, | |
5169 | _swigc__ptrdiff_t, | |
5170 | _swigc__std__ptrdiff_t, | |
5171 | _swigc__unsigned_int, | |
6d88e192 RD |
5172 | }; |
5173 | ||
5174 | ||
5175 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
5176 | ||
5177 | static swig_const_info swig_const_table[] = { | |
5178 | {0, 0, 0, 0.0, 0, 0}}; | |
5179 | ||
5180 | #ifdef __cplusplus | |
5181 | } | |
5182 | #endif | |
32fe5131 RD |
5183 | /************************************************************************* |
5184 | * Type initialization: | |
5185 | * This problem is tough by the requirement that no dynamic | |
5186 | * memory is used. Also, since swig_type_info structures store pointers to | |
5187 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
5188 | * to swig_type_info structures, we need some lookup code at initialization. | |
5189 | * The idea is that swig generates all the structures that are needed. | |
5190 | * The runtime then collects these partially filled structures. | |
5191 | * The SWIG_InitializeModule function takes these initial arrays out of | |
5192 | * swig_module, and does all the lookup, filling in the swig_module.types | |
5193 | * array with the correct data and linking the correct swig_cast_info | |
5194 | * structures together. | |
5195 | ||
5196 | * The generated swig_type_info structures are assigned staticly to an initial | |
5197 | * array. We just loop though that array, and handle each type individually. | |
5198 | * First we lookup if this type has been already loaded, and if so, use the | |
5199 | * loaded structure instead of the generated one. Then we have to fill in the | |
5200 | * cast linked list. The cast data is initially stored in something like a | |
5201 | * two-dimensional array. Each row corresponds to a type (there are the same | |
5202 | * number of rows as there are in the swig_type_initial array). Each entry in | |
5203 | * a column is one of the swig_cast_info structures for that type. | |
5204 | * The cast_initial array is actually an array of arrays, because each row has | |
5205 | * a variable number of columns. So to actually build the cast linked list, | |
5206 | * we find the array of casts associated with the type, and loop through it | |
5207 | * adding the casts to the list. The one last trick we need to do is making | |
5208 | * sure the type pointer in the swig_cast_info struct is correct. | |
5209 | ||
5210 | * First off, we lookup the cast->type name to see if it is already loaded. | |
5211 | * There are three cases to handle: | |
5212 | * 1) If the cast->type has already been loaded AND the type we are adding | |
5213 | * casting info to has not been loaded (it is in this module), THEN we | |
5214 | * replace the cast->type pointer with the type pointer that has already | |
5215 | * been loaded. | |
5216 | * 2) If BOTH types (the one we are adding casting info to, and the | |
5217 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
5218 | * the previous module so we just ignore it. | |
5219 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
5220 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
5221 | * be correct. | |
5222 | **/ | |
5223 | ||
5224 | #ifdef __cplusplus | |
5225 | extern "C" { | |
5226 | #if 0 | |
5227 | } /* c-mode */ | |
5228 | #endif | |
5229 | #endif | |
5230 | ||
5231 | #if 0 | |
5232 | #define SWIGRUNTIME_DEBUG | |
5233 | #endif | |
5234 | ||
5235 | SWIGRUNTIME void | |
5236 | SWIG_InitializeModule(void *clientdata) { | |
5237 | size_t i; | |
5238 | swig_module_info *module_head; | |
5239 | static int init_run = 0; | |
5240 | ||
5241 | clientdata = clientdata; | |
5242 | ||
5243 | if (init_run) return; | |
5244 | init_run = 1; | |
5245 | ||
5246 | /* Initialize the swig_module */ | |
5247 | swig_module.type_initial = swig_type_initial; | |
5248 | swig_module.cast_initial = swig_cast_initial; | |
5249 | ||
5250 | /* Try and load any already created modules */ | |
5251 | module_head = SWIG_GetModule(clientdata); | |
5252 | if (module_head) { | |
5253 | swig_module.next = module_head->next; | |
5254 | module_head->next = &swig_module; | |
5255 | } else { | |
5256 | /* This is the first module loaded */ | |
5257 | swig_module.next = &swig_module; | |
5258 | SWIG_SetModule(clientdata, &swig_module); | |
5259 | } | |
5260 | ||
5261 | /* Now work on filling in swig_module.types */ | |
5262 | #ifdef SWIGRUNTIME_DEBUG | |
5263 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
5264 | #endif | |
5265 | for (i = 0; i < swig_module.size; ++i) { | |
5266 | swig_type_info *type = 0; | |
5267 | swig_type_info *ret; | |
5268 | swig_cast_info *cast; | |
5269 | ||
5270 | #ifdef SWIGRUNTIME_DEBUG | |
5271 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
5272 | #endif | |
5273 | ||
5274 | /* if there is another module already loaded */ | |
5275 | if (swig_module.next != &swig_module) { | |
5276 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
5277 | } | |
5278 | if (type) { | |
5279 | /* Overwrite clientdata field */ | |
5280 | #ifdef SWIGRUNTIME_DEBUG | |
5281 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
5282 | #endif | |
5283 | if (swig_module.type_initial[i]->clientdata) { | |
5284 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
5285 | #ifdef SWIGRUNTIME_DEBUG | |
5286 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
5287 | #endif | |
5288 | } | |
5289 | } else { | |
5290 | type = swig_module.type_initial[i]; | |
5291 | } | |
5292 | ||
5293 | /* Insert casting types */ | |
5294 | cast = swig_module.cast_initial[i]; | |
5295 | while (cast->type) { | |
5296 | /* Don't need to add information already in the list */ | |
5297 | ret = 0; | |
5298 | #ifdef SWIGRUNTIME_DEBUG | |
5299 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
5300 | #endif | |
5301 | if (swig_module.next != &swig_module) { | |
5302 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
5303 | #ifdef SWIGRUNTIME_DEBUG | |
5304 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
5305 | #endif | |
5306 | } | |
5307 | if (ret) { | |
5308 | if (type == swig_module.type_initial[i]) { | |
5309 | #ifdef SWIGRUNTIME_DEBUG | |
5310 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
5311 | #endif | |
5312 | cast->type = ret; | |
5313 | ret = 0; | |
5314 | } else { | |
5315 | /* Check for casting already in the list */ | |
5316 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
5317 | #ifdef SWIGRUNTIME_DEBUG | |
5318 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
5319 | #endif | |
5320 | if (!ocast) ret = 0; | |
5321 | } | |
5322 | } | |
5323 | ||
5324 | if (!ret) { | |
5325 | #ifdef SWIGRUNTIME_DEBUG | |
5326 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
5327 | #endif | |
5328 | if (type->cast) { | |
5329 | type->cast->prev = cast; | |
5330 | cast->next = type->cast; | |
5331 | } | |
5332 | type->cast = cast; | |
5333 | } | |
5334 | cast++; | |
5335 | } | |
5336 | /* Set entry in modules->types array equal to the type */ | |
5337 | swig_module.types[i] = type; | |
5338 | } | |
5339 | swig_module.types[i] = 0; | |
5340 | ||
5341 | #ifdef SWIGRUNTIME_DEBUG | |
5342 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
5343 | for (i = 0; i < swig_module.size; ++i) { | |
5344 | int j = 0; | |
5345 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
5346 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
5347 | while (cast->type) { | |
5348 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
5349 | cast++; | |
5350 | ++j; | |
5351 | } | |
5352 | printf("---- Total casts: %d\n",j); | |
5353 | } | |
5354 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
5355 | #endif | |
5356 | } | |
5357 | ||
5358 | /* This function will propagate the clientdata field of type to | |
5359 | * any new swig_type_info structures that have been added into the list | |
5360 | * of equivalent types. It is like calling | |
5361 | * SWIG_TypeClientData(type, clientdata) a second time. | |
5362 | */ | |
5363 | SWIGRUNTIME void | |
5364 | SWIG_PropagateClientData(void) { | |
5365 | size_t i; | |
5366 | swig_cast_info *equiv; | |
5367 | static int init_run = 0; | |
5368 | ||
5369 | if (init_run) return; | |
5370 | init_run = 1; | |
5371 | ||
5372 | for (i = 0; i < swig_module.size; i++) { | |
5373 | if (swig_module.types[i]->clientdata) { | |
5374 | equiv = swig_module.types[i]->cast; | |
5375 | while (equiv) { | |
5376 | if (!equiv->converter) { | |
5377 | if (equiv->type && !equiv->type->clientdata) | |
5378 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
5379 | } | |
5380 | equiv = equiv->next; | |
5381 | } | |
5382 | } | |
5383 | } | |
5384 | } | |
5385 | ||
5386 | #ifdef __cplusplus | |
5387 | #if 0 | |
5388 | { | |
5389 | /* c-mode */ | |
5390 | #endif | |
5391 | } | |
5392 | #endif | |
5393 | ||
6d88e192 RD |
5394 | |
5395 | ||
5396 | #ifdef __cplusplus | |
5397 | extern "C" { | |
5398 | #endif | |
5399 | ||
5400 | /* Python-specific SWIG API */ | |
5401 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
5402 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
5403 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
5404 | ||
5405 | /* ----------------------------------------------------------------------------- | |
5406 | * global variable support code. | |
5407 | * ----------------------------------------------------------------------------- */ | |
5408 | ||
5409 | typedef struct swig_globalvar { | |
5410 | char *name; /* Name of global variable */ | |
32fe5131 | 5411 | PyObject *(*get_attr)(void); /* Return the current value */ |
6d88e192 RD |
5412 | int (*set_attr)(PyObject *); /* Set the value */ |
5413 | struct swig_globalvar *next; | |
5414 | } swig_globalvar; | |
5415 | ||
5416 | typedef struct swig_varlinkobject { | |
5417 | PyObject_HEAD | |
5418 | swig_globalvar *vars; | |
5419 | } swig_varlinkobject; | |
5420 | ||
32fe5131 | 5421 | SWIGINTERN PyObject * |
6d88e192 RD |
5422 | swig_varlink_repr(swig_varlinkobject *v) { |
5423 | v = v; | |
5424 | return PyString_FromString("<Swig global variables>"); | |
5425 | } | |
5426 | ||
32fe5131 | 5427 | SWIGINTERN int |
6d88e192 RD |
5428 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
5429 | swig_globalvar *var; | |
5430 | flags = flags; | |
5431 | fprintf(fp,"Swig global variables { "); | |
5432 | for (var = v->vars; var; var=var->next) { | |
5433 | fprintf(fp,"%s", var->name); | |
5434 | if (var->next) fprintf(fp,", "); | |
5435 | } | |
5436 | fprintf(fp," }\n"); | |
5437 | return 0; | |
5438 | } | |
5439 | ||
32fe5131 | 5440 | SWIGINTERN PyObject * |
6d88e192 RD |
5441 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
5442 | swig_globalvar *var = v->vars; | |
5443 | while (var) { | |
5444 | if (strcmp(var->name,n) == 0) { | |
5445 | return (*var->get_attr)(); | |
5446 | } | |
5447 | var = var->next; | |
5448 | } | |
5449 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
5450 | return NULL; | |
5451 | } | |
5452 | ||
32fe5131 | 5453 | SWIGINTERN int |
6d88e192 RD |
5454 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
5455 | swig_globalvar *var = v->vars; | |
5456 | while (var) { | |
5457 | if (strcmp(var->name,n) == 0) { | |
5458 | return (*var->set_attr)(p); | |
5459 | } | |
5460 | var = var->next; | |
5461 | } | |
5462 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
5463 | return 1; | |
5464 | } | |
5465 | ||
32fe5131 RD |
5466 | SWIGINTERN PyTypeObject* |
5467 | swig_varlink_type(void) { | |
5468 | static char varlink__doc__[] = "Swig var link object"; | |
5469 | static PyTypeObject varlink_type | |
5470 | #if !defined(__cplusplus) | |
5471 | ; | |
5472 | static int type_init = 0; | |
5473 | if (!type_init) { | |
5474 | PyTypeObject tmp | |
5475 | #endif | |
5476 | = { | |
5477 | PyObject_HEAD_INIT(&PyType_Type) | |
5478 | 0, /* Number of items in variable part (ob_size) */ | |
5479 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
5480 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
5481 | 0, /* Itemsize (tp_itemsize) */ | |
5482 | 0, /* Deallocator (tp_dealloc) */ | |
5483 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
5484 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
5485 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
5486 | 0, /* tp_compare */ | |
5487 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
5488 | 0, /* tp_as_number */ | |
5489 | 0, /* tp_as_sequence */ | |
5490 | 0, /* tp_as_mapping */ | |
5491 | 0, /* tp_hash */ | |
5492 | 0, /* tp_call */ | |
5493 | 0, /* tp_str */ | |
5494 | 0, /* tp_getattro */ | |
5495 | 0, /* tp_setattro */ | |
5496 | 0, /* tp_as_buffer */ | |
5497 | 0, /* tp_flags */ | |
5498 | varlink__doc__, /* tp_doc */ | |
6d88e192 | 5499 | #if PY_VERSION_HEX >= 0x02000000 |
32fe5131 RD |
5500 | 0, /* tp_traverse */ |
5501 | 0, /* tp_clear */ | |
6d88e192 RD |
5502 | #endif |
5503 | #if PY_VERSION_HEX >= 0x02010000 | |
32fe5131 RD |
5504 | 0, /* tp_richcompare */ |
5505 | 0, /* tp_weaklistoffset */ | |
6d88e192 RD |
5506 | #endif |
5507 | #if PY_VERSION_HEX >= 0x02020000 | |
32fe5131 | 5508 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
6d88e192 RD |
5509 | #endif |
5510 | #if PY_VERSION_HEX >= 0x02030000 | |
32fe5131 | 5511 | 0, /* tp_del */ |
6d88e192 RD |
5512 | #endif |
5513 | #ifdef COUNT_ALLOCS | |
32fe5131 | 5514 | 0,0,0,0 /* tp_alloc -> tp_next */ |
6d88e192 | 5515 | #endif |
32fe5131 RD |
5516 | }; |
5517 | #if !defined(__cplusplus) | |
5518 | varlink_type = tmp; | |
5519 | type_init = 1; | |
5520 | } | |
5521 | #endif | |
5522 | return &varlink_type; | |
5523 | } | |
6d88e192 RD |
5524 | |
5525 | /* Create a variable linking object for use later */ | |
32fe5131 | 5526 | SWIGINTERN PyObject * |
6d88e192 | 5527 | SWIG_Python_newvarlink(void) { |
32fe5131 RD |
5528 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
5529 | if (result) { | |
5530 | result->vars = 0; | |
5531 | } | |
6d88e192 RD |
5532 | return ((PyObject*) result); |
5533 | } | |
5534 | ||
32fe5131 | 5535 | SWIGINTERN void |
6d88e192 | 5536 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
32fe5131 RD |
5537 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
5538 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
5539 | if (gv) { | |
5540 | size_t size = strlen(name)+1; | |
5541 | gv->name = (char *)malloc(size); | |
5542 | if (gv->name) { | |
5543 | strncpy(gv->name,name,size); | |
5544 | gv->get_attr = get_attr; | |
5545 | gv->set_attr = set_attr; | |
5546 | gv->next = v->vars; | |
5547 | } | |
5548 | } | |
6d88e192 RD |
5549 | v->vars = gv; |
5550 | } | |
5551 | ||
5552 | /* ----------------------------------------------------------------------------- | |
5553 | * constants/methods manipulation | |
5554 | * ----------------------------------------------------------------------------- */ | |
5555 | ||
5556 | /* Install Constants */ | |
32fe5131 | 5557 | SWIGINTERN void |
6d88e192 RD |
5558 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
5559 | PyObject *obj = 0; | |
5560 | size_t i; | |
32fe5131 | 5561 | for (i = 0; constants[i].type; ++i) { |
6d88e192 RD |
5562 | switch(constants[i].type) { |
5563 | case SWIG_PY_INT: | |
5564 | obj = PyInt_FromLong(constants[i].lvalue); | |
5565 | break; | |
5566 | case SWIG_PY_FLOAT: | |
5567 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
5568 | break; | |
5569 | case SWIG_PY_STRING: | |
5570 | if (constants[i].pvalue) { | |
5571 | obj = PyString_FromString((char *) constants[i].pvalue); | |
5572 | } else { | |
5573 | Py_INCREF(Py_None); | |
5574 | obj = Py_None; | |
5575 | } | |
5576 | break; | |
5577 | case SWIG_PY_POINTER: | |
5578 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
5579 | break; | |
5580 | case SWIG_PY_BINARY: | |
5581 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
5582 | break; | |
5583 | default: | |
5584 | obj = 0; | |
5585 | break; | |
5586 | } | |
5587 | if (obj) { | |
5588 | PyDict_SetItemString(d,constants[i].name,obj); | |
5589 | Py_DECREF(obj); | |
5590 | } | |
5591 | } | |
5592 | } | |
5593 | ||
5594 | /* -----------------------------------------------------------------------------*/ | |
5595 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
5596 | /* -----------------------------------------------------------------------------*/ | |
5597 | ||
32fe5131 | 5598 | SWIGINTERN void |
6d88e192 RD |
5599 | SWIG_Python_FixMethods(PyMethodDef *methods, |
5600 | swig_const_info *const_table, | |
5601 | swig_type_info **types, | |
5602 | swig_type_info **types_initial) { | |
5603 | size_t i; | |
5604 | for (i = 0; methods[i].ml_name; ++i) { | |
5605 | char *c = methods[i].ml_doc; | |
5606 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
5607 | int j; | |
5608 | swig_const_info *ci = 0; | |
5609 | char *name = c + 10; | |
32fe5131 | 5610 | for (j = 0; const_table[j].type; ++j) { |
6d88e192 RD |
5611 | if (strncmp(const_table[j].name, name, |
5612 | strlen(const_table[j].name)) == 0) { | |
5613 | ci = &(const_table[j]); | |
5614 | break; | |
5615 | } | |
5616 | } | |
5617 | if (ci) { | |
5618 | size_t shift = (ci->ptype) - types; | |
5619 | swig_type_info *ty = types_initial[shift]; | |
5620 | size_t ldoc = (c - methods[i].ml_doc); | |
5621 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
5622 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
32fe5131 RD |
5623 | if (ndoc) { |
5624 | char *buff = ndoc; | |
5625 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
5626 | if (ptr) { | |
5627 | strncpy(buff, methods[i].ml_doc, ldoc); | |
5628 | buff += ldoc; | |
5629 | strncpy(buff, "swig_ptr: ", 10); | |
5630 | buff += 10; | |
5631 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
5632 | methods[i].ml_doc = ndoc; | |
5633 | } | |
5634 | } | |
6d88e192 RD |
5635 | } |
5636 | } | |
5637 | } | |
5638 | } | |
5639 | ||
5640 | /* -----------------------------------------------------------------------------* | |
5641 | * Initialize type list | |
5642 | * -----------------------------------------------------------------------------*/ | |
5643 | ||
6d88e192 RD |
5644 | #ifdef __cplusplus |
5645 | } | |
5646 | #endif | |
5647 | ||
5648 | /* -----------------------------------------------------------------------------* | |
5649 | * Partial Init method | |
5650 | * -----------------------------------------------------------------------------*/ | |
5651 | ||
6d88e192 RD |
5652 | #ifdef __cplusplus |
5653 | extern "C" | |
5654 | #endif | |
32fe5131 | 5655 | SWIGEXPORT void SWIG_init(void) { |
6d88e192 | 5656 | static PyObject *SWIG_globals = 0; |
6d88e192 | 5657 | PyObject *m, *d; |
6d88e192 RD |
5658 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
5659 | ||
5660 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
32fe5131 | 5661 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
6d88e192 RD |
5662 | |
5663 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
5664 | d = PyModule_GetDict(m); | |
5665 | ||
32fe5131 | 5666 | SWIG_InitializeModule(0); |
6d88e192 RD |
5667 | SWIG_InstallConstants(d,swig_const_table); |
5668 | ||
5669 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
5670 | SWIG_addvarlink(SWIG_globals,(char*)"AnimationControlNameStr",_wrap_AnimationControlNameStr_get, _wrap_AnimationControlNameStr_set); | |
5671 | { | |
32fe5131 | 5672 | PyDict_SetItemString(d,"ANIM_UNSPECIFIED", SWIG_From_int(static_cast<int >(wxANIM_UNSPECIFIED))); |
6d88e192 RD |
5673 | } |
5674 | { | |
32fe5131 | 5675 | PyDict_SetItemString(d,"ANIM_DONOTREMOVE", SWIG_From_int(static_cast<int >(wxANIM_DONOTREMOVE))); |
6d88e192 RD |
5676 | } |
5677 | { | |
32fe5131 | 5678 | PyDict_SetItemString(d,"ANIM_TOBACKGROUND", SWIG_From_int(static_cast<int >(wxANIM_TOBACKGROUND))); |
6d88e192 RD |
5679 | } |
5680 | { | |
32fe5131 | 5681 | PyDict_SetItemString(d,"ANIM_TOPREVIOUS", SWIG_From_int(static_cast<int >(wxANIM_TOPREVIOUS))); |
6d88e192 RD |
5682 | } |
5683 | { | |
32fe5131 | 5684 | PyDict_SetItemString(d,"AN_FIT_ANIMATION", SWIG_From_int(static_cast<int >(wxAN_FIT_ANIMATION))); |
6d88e192 RD |
5685 | } |
5686 | } | |
5687 |