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