]>
Commit | Line | Data |
---|---|---|
8ac8dba0 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
7449af73 | 3 | * Version 1.3.27 |
8ac8dba0 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 | |
8ac8dba0 RD |
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); | |
093d3ff1 | 26 | }; |
8ac8dba0 RD |
27 | #endif |
28 | ||
7449af73 RD |
29 | /*********************************************************************** |
30 | * | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * | |
34 | ************************************************************************/ | |
8ac8dba0 | 35 | |
7449af73 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 | |
093d3ff1 | 40 | # else |
7449af73 | 41 | # define SWIGTEMPLATEDISAMBIGUATOR |
093d3ff1 RD |
42 | # endif |
43 | #endif | |
8ac8dba0 | 44 | |
7449af73 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 | ||
8ac8dba0 | 96 | |
093d3ff1 | 97 | #include <Python.h> |
8ac8dba0 RD |
98 | |
99 | /*********************************************************************** | |
093d3ff1 | 100 | * swigrun.swg |
8ac8dba0 | 101 | * |
093d3ff1 RD |
102 | * This file contains generic CAPI SWIG runtime support for pointer |
103 | * type checking. | |
8ac8dba0 RD |
104 | * |
105 | ************************************************************************/ | |
106 | ||
093d3ff1 RD |
107 | /* This should only be incremented when either the layout of swig_type_info changes, |
108 | or for whatever reason, the runtime changes incompatibly */ | |
7449af73 | 109 | #define SWIG_RUNTIME_VERSION "2" |
8ac8dba0 | 110 | |
093d3ff1 RD |
111 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
112 | #ifdef SWIG_TYPE_TABLE | |
7449af73 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) | |
8ac8dba0 | 116 | #else |
7449af73 | 117 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 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 | */ | |
7449af73 | 128 | |
093d3ff1 | 129 | #ifndef SWIGRUNTIME |
7449af73 | 130 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 131 | #endif |
7449af73 | 132 | |
093d3ff1 | 133 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 134 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
8ac8dba0 RD |
135 | #endif |
136 | ||
7449af73 RD |
137 | #include <string.h> |
138 | ||
8ac8dba0 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 | ||
7449af73 | 146 | /* Structure to store inforomation on one type */ |
8ac8dba0 | 147 | typedef struct swig_type_info { |
7449af73 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 */ | |
8ac8dba0 RD |
153 | } swig_type_info; |
154 | ||
7449af73 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 | ||
093d3ff1 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; | |
7449af73 | 189 | if (*f1 != *f2) return (int)(*f1 - *f2); |
093d3ff1 RD |
190 | } |
191 | return (l1 - f1) - (l2 - f2); | |
192 | } | |
193 | ||
194 | /* | |
195 | Check type equivalence in a name list like <name1>|<name2>|... | |
7449af73 | 196 | Return 0 if not equal, 1 if equal |
093d3ff1 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 | } | |
7449af73 | 207 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
208 | if (*ne) ++ne; |
209 | } | |
210 | return equiv; | |
211 | } | |
212 | ||
213 | /* | |
7449af73 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 | |
093d3ff1 | 216 | */ |
7449af73 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; | |
093d3ff1 | 225 | } |
7449af73 RD |
226 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
227 | if (*ne) ++ne; | |
093d3ff1 | 228 | } |
7449af73 | 229 | return equiv; |
093d3ff1 RD |
230 | } |
231 | ||
7449af73 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 | ||
093d3ff1 RD |
255 | /* |
256 | Check the typename | |
257 | */ | |
7449af73 | 258 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 259 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 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); | |
093d3ff1 RD |
267 | } |
268 | ||
269 | /* | |
270 | Cast a pointer up an inheritance hierarchy | |
271 | */ | |
272 | SWIGRUNTIMEINLINE void * | |
7449af73 | 273 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 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 | ||
093d3ff1 RD |
320 | /* |
321 | Set the clientdata field for a type | |
322 | */ | |
323 | SWIGRUNTIME void | |
7449af73 RD |
324 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
325 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
326 | /* if (ti->clientdata == clientdata) return; */ |
327 | ti->clientdata = clientdata; | |
7449af73 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); | |
093d3ff1 | 334 | } |
7449af73 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); | |
093d3ff1 | 378 | } |
7449af73 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); | |
093d3ff1 | 413 | } |
7449af73 RD |
414 | |
415 | /* neither found a match */ | |
416 | return 0; | |
093d3ff1 RD |
417 | } |
418 | ||
7449af73 | 419 | |
093d3ff1 RD |
420 | /* |
421 | Pack binary data into a string | |
422 | */ | |
423 | SWIGRUNTIME char * | |
424 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
7449af73 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; | |
093d3ff1 | 428 | for (; u != eu; ++u) { |
7449af73 | 429 | register unsigned char uu = *u; |
093d3ff1 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; | |
7449af73 | 442 | register const unsigned char *eu = u + sz; |
093d3ff1 | 443 | for (; u != eu; ++u) { |
7449af73 | 444 | register char d = *(c++); |
093d3ff1 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 | ||
093d3ff1 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 | } | |
8ac8dba0 | 505 | |
093d3ff1 RD |
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 | } | |
8ac8dba0 RD |
518 | |
519 | #ifdef __cplusplus | |
520 | } | |
521 | #endif | |
522 | ||
093d3ff1 RD |
523 | /* ----------------------------------------------------------------------------- |
524 | * SWIG API. Portion that goes into the runtime | |
525 | * ----------------------------------------------------------------------------- */ | |
526 | ||
8ac8dba0 RD |
527 | #ifdef __cplusplus |
528 | extern "C" { | |
529 | #endif | |
530 | ||
093d3ff1 RD |
531 | /* ----------------------------------------------------------------------------- |
532 | * for internal method declarations | |
533 | * ----------------------------------------------------------------------------- */ | |
534 | ||
535 | #ifndef SWIGINTERN | |
7449af73 | 536 | # define SWIGINTERN static SWIGUNUSED |
093d3ff1 RD |
537 | #endif |
538 | ||
7449af73 RD |
539 | #ifndef SWIGINTERNINLINE |
540 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
093d3ff1 RD |
541 | #endif |
542 | ||
093d3ff1 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 */ | |
8ac8dba0 RD |
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 | ||
8ac8dba0 RD |
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 | ||
8ac8dba0 | 580 | |
093d3ff1 RD |
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 | |
8ac8dba0 RD |
587 | |
588 | #ifdef __cplusplus | |
589 | } | |
590 | #endif | |
591 | ||
592 | ||
093d3ff1 RD |
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 | ************************************************************************/ | |
8ac8dba0 | 602 | |
093d3ff1 RD |
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) | |
9d7dfdff | 607 | |
8ac8dba0 | 608 | |
093d3ff1 RD |
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) | |
8ac8dba0 | 612 | |
7449af73 RD |
613 | /* Runtime API */ |
614 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
615 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
8ac8dba0 | 616 | |
093d3ff1 RD |
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 | |
8ac8dba0 | 628 | |
093d3ff1 RD |
629 | /* Flags for pointer conversion */ |
630 | #define SWIG_POINTER_EXCEPTION 0x1 | |
631 | #define SWIG_POINTER_DISOWN 0x2 | |
8ac8dba0 | 632 | |
8ac8dba0 | 633 | |
7449af73 RD |
634 | /* Add PyOS_snprintf for old Pythons */ |
635 | #if PY_VERSION_HEX < 0x02020000 | |
636 | #define PyOS_snprintf snprintf | |
637 | #endif | |
638 | ||
8ac8dba0 | 639 | #ifdef __cplusplus |
093d3ff1 RD |
640 | extern "C" { |
641 | #endif | |
8ac8dba0 | 642 | |
093d3ff1 RD |
643 | /* ----------------------------------------------------------------------------- |
644 | * Create a new pointer string | |
645 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 RD |
646 | #ifndef SWIG_BUFFER_SIZE |
647 | #define SWIG_BUFFER_SIZE 1024 | |
648 | #endif | |
8ac8dba0 | 649 | |
7449af73 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 | ||
093d3ff1 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 | * ----------------------------------------------------------------------------- */ | |
8ac8dba0 | 673 | |
093d3ff1 RD |
674 | typedef struct { |
675 | PyObject_HEAD | |
676 | void *ptr; | |
677 | const char *desc; | |
678 | } PySwigObject; | |
8ac8dba0 | 679 | |
093d3ff1 | 680 | /* Declarations for objects of type PySwigObject */ |
8ac8dba0 | 681 | |
093d3ff1 RD |
682 | SWIGRUNTIME int |
683 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
684 | { | |
685 | char result[SWIG_BUFFER_SIZE]; | |
7449af73 | 686 | flags = flags; |
093d3ff1 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 | } | |
9d7dfdff | 694 | |
093d3ff1 RD |
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 | } | |
8ac8dba0 | 702 | |
093d3ff1 RD |
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 | } | |
8ac8dba0 | 710 | |
093d3ff1 RD |
711 | SWIGRUNTIME PyObject * |
712 | PySwigObject_long(PySwigObject *v) | |
713 | { | |
7449af73 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; | |
093d3ff1 | 731 | } |
8ac8dba0 | 732 | |
093d3ff1 RD |
733 | SWIGRUNTIME PyObject * |
734 | PySwigObject_oct(PySwigObject *v) | |
8ac8dba0 | 735 | { |
7449af73 | 736 | return PySwigObject_format("%o",v); |
093d3ff1 | 737 | } |
8ac8dba0 | 738 | |
093d3ff1 RD |
739 | SWIGRUNTIME PyObject * |
740 | PySwigObject_hex(PySwigObject *v) | |
8ac8dba0 | 741 | { |
7449af73 | 742 | return PySwigObject_format("%x",v); |
093d3ff1 | 743 | } |
8ac8dba0 | 744 | |
093d3ff1 RD |
745 | SWIGRUNTIME int |
746 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
8ac8dba0 | 747 | { |
093d3ff1 RD |
748 | int c = strcmp(v->desc, w->desc); |
749 | if (c) { | |
7449af73 | 750 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
751 | } else { |
752 | void *i = v->ptr; | |
753 | void *j = w->ptr; | |
7449af73 | 754 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
093d3ff1 RD |
755 | } |
756 | } | |
8ac8dba0 | 757 | |
093d3ff1 RD |
758 | SWIGRUNTIME void |
759 | PySwigObject_dealloc(PySwigObject *self) | |
8ac8dba0 | 760 | { |
7449af73 | 761 | PyObject_Del(self); |
093d3ff1 | 762 | } |
8ac8dba0 | 763 | |
093d3ff1 | 764 | SWIGRUNTIME PyTypeObject* |
7449af73 RD |
765 | PySwigObject_type(void) { |
766 | static char pyswigobject_type__doc__[] = | |
093d3ff1 | 767 | "Swig object carries a C/C++ instance pointer"; |
9d7dfdff | 768 | |
093d3ff1 RD |
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*/ | |
7449af73 | 793 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 794 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
7449af73 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 */ | |
093d3ff1 RD |
797 | #endif |
798 | }; | |
799 | ||
7449af73 RD |
800 | static PyTypeObject pyswigobject_type |
801 | #if !defined(__cplusplus) | |
802 | ; | |
803 | static int type_init = 0; | |
093d3ff1 | 804 | if (!type_init) { |
7449af73 RD |
805 | PyTypeObject tmp |
806 | #endif | |
807 | = { | |
093d3ff1 RD |
808 | PyObject_HEAD_INIT(&PyType_Type) |
809 | 0, /*ob_size*/ | |
7449af73 | 810 | (char *)"PySwigObject", /*tp_name*/ |
093d3ff1 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 */ | |
7449af73 RD |
827 | 0,0,0,0, |
828 | pyswigobject_type__doc__, /* Documentation string */ | |
093d3ff1 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 | }; | |
7449af73 RD |
847 | #if !defined(__cplusplus) |
848 | pyswigobject_type = tmp; | |
093d3ff1 RD |
849 | type_init = 1; |
850 | } | |
7449af73 RD |
851 | #endif |
852 | return &pyswigobject_type; | |
093d3ff1 | 853 | } |
8ac8dba0 | 854 | |
093d3ff1 RD |
855 | SWIGRUNTIME PyObject * |
856 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
857 | { | |
7449af73 RD |
858 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); |
859 | if (self) { | |
860 | self->ptr = ptr; | |
861 | self->desc = desc; | |
862 | } | |
093d3ff1 RD |
863 | return (PyObject *)self; |
864 | } | |
8ac8dba0 | 865 | |
093d3ff1 RD |
866 | SWIGRUNTIMEINLINE void * |
867 | PySwigObject_AsVoidPtr(PyObject *self) | |
868 | { | |
869 | return ((PySwigObject *)self)->ptr; | |
870 | } | |
8ac8dba0 | 871 | |
093d3ff1 RD |
872 | SWIGRUNTIMEINLINE const char * |
873 | PySwigObject_GetDesc(PyObject *self) | |
874 | { | |
875 | return ((PySwigObject *)self)->desc; | |
876 | } | |
8ac8dba0 | 877 | |
093d3ff1 RD |
878 | SWIGRUNTIMEINLINE int |
879 | PySwigObject_Check(PyObject *op) { | |
7449af73 | 880 | return ((op)->ob_type == PySwigObject_type()) |
093d3ff1 RD |
881 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
882 | } | |
8ac8dba0 | 883 | |
093d3ff1 RD |
884 | /* ----------------------------------------------------------------------------- |
885 | * Implements a simple Swig Packed type, and use it instead of string | |
886 | * ----------------------------------------------------------------------------- */ | |
8ac8dba0 | 887 | |
093d3ff1 RD |
888 | typedef struct { |
889 | PyObject_HEAD | |
890 | void *pack; | |
891 | const char *desc; | |
892 | size_t size; | |
893 | } PySwigPacked; | |
f78cc896 | 894 | |
093d3ff1 RD |
895 | SWIGRUNTIME int |
896 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
897 | { | |
898 | char result[SWIG_BUFFER_SIZE]; | |
7449af73 | 899 | flags = flags; |
093d3ff1 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 | } | |
9d7dfdff | 909 | |
093d3ff1 RD |
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 | } | |
f78cc896 | 920 | |
093d3ff1 RD |
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 { | |
7449af73 | 928 | return PyString_FromString(v->desc); |
093d3ff1 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) { | |
7449af73 | 937 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
938 | } else { |
939 | size_t i = v->size; | |
940 | size_t j = w->size; | |
7449af73 | 941 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
093d3ff1 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); | |
7449af73 | 950 | PyObject_Del(self); |
093d3ff1 RD |
951 | } |
952 | ||
953 | SWIGRUNTIME PyTypeObject* | |
7449af73 RD |
954 | PySwigPacked_type(void) { |
955 | static char pyswigpacked_type__doc__[] = | |
093d3ff1 | 956 | "Swig object carries a C/C++ instance pointer"; |
7449af73 RD |
957 | static PyTypeObject pyswigpacked_type |
958 | #if !defined(__cplusplus) | |
959 | ; | |
960 | static int type_init = 0; | |
093d3ff1 | 961 | if (!type_init) { |
7449af73 RD |
962 | PyTypeObject tmp |
963 | #endif | |
964 | = { | |
093d3ff1 RD |
965 | PyObject_HEAD_INIT(&PyType_Type) |
966 | 0, /*ob_size*/ | |
7449af73 | 967 | (char *)"PySwigPacked", /*tp_name*/ |
093d3ff1 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 */ | |
7449af73 RD |
984 | 0,0,0,0, |
985 | pyswigpacked_type__doc__, /* Documentation string */ | |
093d3ff1 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 | }; | |
7449af73 RD |
1004 | #if !defined(__cplusplus) |
1005 | pyswigpacked_type = tmp; | |
093d3ff1 RD |
1006 | type_init = 1; |
1007 | } | |
7449af73 RD |
1008 | #endif |
1009 | return &pyswigpacked_type; | |
093d3ff1 RD |
1010 | } |
1011 | ||
1012 | SWIGRUNTIME PyObject * | |
1013 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
1014 | { | |
7449af73 | 1015 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
093d3ff1 RD |
1016 | if (self == NULL) { |
1017 | return NULL; | |
1018 | } else { | |
1019 | void *pack = malloc(size); | |
7449af73 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; | |
093d3ff1 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) { | |
7449af73 | 1048 | return ((op)->ob_type == PySwigPacked_type()) |
093d3ff1 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) | |
7449af73 | 1075 | if (obj && PySwigObject_Check(obj)) { |
093d3ff1 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 | } | |
7449af73 | 1096 | Py_XDECREF(str); |
093d3ff1 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]; | |
7449af73 | 1147 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
093d3ff1 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) { | |
7449af73 | 1162 | swig_cast_info *tc; |
093d3ff1 RD |
1163 | const char *c = 0; |
1164 | static PyObject *SWIG_this = 0; | |
1165 | int newref = 0; | |
1166 | PyObject *pyobj = 0; | |
1167 | void *vptr; | |
9d7dfdff | 1168 | |
093d3ff1 RD |
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 | } | |
7449af73 | 1205 | c = PyString_AsString(obj); |
093d3ff1 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: | |
093d3ff1 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 | } | |
093d3ff1 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) { | |
7449af73 | 1234 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
093d3ff1 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) { | |
7449af73 | 1267 | swig_cast_info *tc; |
093d3ff1 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; | |
7449af73 | 1274 | c = PyString_AsString(obj); |
093d3ff1 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; | |
7449af73 RD |
1301 | if (!type) { |
1302 | if (!PyErr_Occurred()) { | |
1303 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1304 | } | |
1305 | return robj; | |
1306 | } | |
093d3ff1 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 | ||
7449af73 RD |
1364 | SWIGRUNTIME swig_module_info * |
1365 | SWIG_Python_GetModule(void) { | |
093d3ff1 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 | } | |
093d3ff1 | 1378 | #endif |
7449af73 RD |
1379 | } |
1380 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
1381 | } |
1382 | ||
7449af73 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; | |
093d3ff1 | 1412 | } |
7449af73 | 1413 | #endif |
093d3ff1 | 1414 | |
7449af73 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 | } | |
093d3ff1 RD |
1426 | |
1427 | #ifdef __cplusplus | |
1428 | } | |
1429 | #endif | |
1430 | ||
1431 | ||
1432 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1433 | ||
7449af73 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_wxBMPHandler swig_types[9] | |
1444 | #define SWIGTYPE_p_wxBoxSizer swig_types[10] | |
1445 | #define SWIGTYPE_p_wxCURHandler swig_types[11] | |
1446 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[12] | |
1447 | #define SWIGTYPE_p_wxCloseEvent swig_types[13] | |
1448 | #define SWIGTYPE_p_wxCommandEvent swig_types[14] | |
1449 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[15] | |
1450 | #define SWIGTYPE_p_wxControl swig_types[16] | |
1451 | #define SWIGTYPE_p_wxControlWithItems swig_types[17] | |
1452 | #define SWIGTYPE_p_wxDateEvent swig_types[18] | |
1453 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[19] | |
1454 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[20] | |
1455 | #define SWIGTYPE_p_wxDuplexMode swig_types[21] | |
1456 | #define SWIGTYPE_p_wxEraseEvent swig_types[22] | |
1457 | #define SWIGTYPE_p_wxEvent swig_types[23] | |
1458 | #define SWIGTYPE_p_wxEvtHandler swig_types[24] | |
1459 | #define SWIGTYPE_p_wxFSFile swig_types[25] | |
1460 | #define SWIGTYPE_p_wxFileOffset swig_types[26] | |
1461 | #define SWIGTYPE_p_wxFileSystem swig_types[27] | |
1462 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[28] | |
1463 | #define SWIGTYPE_p_wxFocusEvent swig_types[29] | |
1464 | #define SWIGTYPE_p_wxGBSizerItem swig_types[30] | |
1465 | #define SWIGTYPE_p_wxGIFHandler swig_types[31] | |
1466 | #define SWIGTYPE_p_wxGridBagSizer swig_types[32] | |
1467 | #define SWIGTYPE_p_wxGridSizer swig_types[33] | |
1468 | #define SWIGTYPE_p_wxICOHandler swig_types[34] | |
1469 | #define SWIGTYPE_p_wxIconizeEvent swig_types[35] | |
1470 | #define SWIGTYPE_p_wxIdleEvent swig_types[36] | |
1471 | #define SWIGTYPE_p_wxImage swig_types[37] | |
1472 | #define SWIGTYPE_p_wxImageHandler swig_types[38] | |
1473 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[39] | |
1474 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[40] | |
1475 | #define SWIGTYPE_p_wxJPEGHandler swig_types[41] | |
1476 | #define SWIGTYPE_p_wxKeyEvent swig_types[42] | |
1477 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[43] | |
1478 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[44] | |
1479 | #define SWIGTYPE_p_wxMediaCtrl swig_types[45] | |
b1fcee84 RD |
1480 | #define SWIGTYPE_p_wxMediaEvent swig_types[46] |
1481 | #define SWIGTYPE_p_wxMenu swig_types[47] | |
1482 | #define SWIGTYPE_p_wxMenuBar swig_types[48] | |
1483 | #define SWIGTYPE_p_wxMenuEvent swig_types[49] | |
1484 | #define SWIGTYPE_p_wxMenuItem swig_types[50] | |
1485 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[51] | |
1486 | #define SWIGTYPE_p_wxMouseEvent swig_types[52] | |
1487 | #define SWIGTYPE_p_wxMoveEvent swig_types[53] | |
1488 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[54] | |
1489 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[55] | |
1490 | #define SWIGTYPE_p_wxNotifyEvent swig_types[56] | |
1491 | #define SWIGTYPE_p_wxObject swig_types[57] | |
1492 | #define SWIGTYPE_p_wxPCXHandler swig_types[58] | |
1493 | #define SWIGTYPE_p_wxPNGHandler swig_types[59] | |
1494 | #define SWIGTYPE_p_wxPNMHandler swig_types[60] | |
1495 | #define SWIGTYPE_p_wxPaintEvent swig_types[61] | |
1496 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[62] | |
1497 | #define SWIGTYPE_p_wxPaperSize swig_types[63] | |
1498 | #define SWIGTYPE_p_wxPyApp swig_types[64] | |
1499 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[65] | |
1500 | #define SWIGTYPE_p_wxPyEvent swig_types[66] | |
1501 | #define SWIGTYPE_p_wxPyImageHandler swig_types[67] | |
1502 | #define SWIGTYPE_p_wxPySizer swig_types[68] | |
1503 | #define SWIGTYPE_p_wxPyValidator swig_types[69] | |
1504 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[70] | |
1505 | #define SWIGTYPE_p_wxScrollEvent swig_types[71] | |
1506 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[72] | |
1507 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[73] | |
1508 | #define SWIGTYPE_p_wxShowEvent swig_types[74] | |
1509 | #define SWIGTYPE_p_wxSizeEvent swig_types[75] | |
1510 | #define SWIGTYPE_p_wxSizer swig_types[76] | |
1511 | #define SWIGTYPE_p_wxSizerItem swig_types[77] | |
1512 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[78] | |
1513 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[79] | |
1514 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[80] | |
1515 | #define SWIGTYPE_p_wxTIFFHandler swig_types[81] | |
1516 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[82] | |
1517 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
1518 | #define SWIGTYPE_p_wxWindow swig_types[84] | |
1519 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[85] | |
1520 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[86] | |
1521 | #define SWIGTYPE_p_wxXPMHandler swig_types[87] | |
1522 | #define SWIGTYPE_ptrdiff_t swig_types[88] | |
1523 | #define SWIGTYPE_std__ptrdiff_t swig_types[89] | |
1524 | #define SWIGTYPE_unsigned_int swig_types[90] | |
1525 | static swig_type_info *swig_types[92]; | |
1526 | static swig_module_info swig_module = {swig_types, 91, 0, 0, 0, 0}; | |
7449af73 RD |
1527 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
1528 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
1529 | |
1530 | /* -------- TYPES TABLE (END) -------- */ | |
1531 | ||
1532 | ||
1533 | /*----------------------------------------------- | |
1534 | @(target):= _media.so | |
1535 | ------------------------------------------------*/ | |
1536 | #define SWIG_init init_media | |
1537 | ||
1538 | #define SWIG_name "_media" | |
1539 | ||
1540 | #include "wx/wxPython/wxPython.h" | |
1541 | #include "wx/wxPython/pyclasses.h" | |
1542 | ||
1543 | #include <wx/mediactrl.h> | |
1544 | #include <wx/uri.h> | |
1545 | ||
1546 | ||
1547 | #if !wxUSE_MEDIACTRL | |
1548 | enum wxMediaState | |
1549 | { | |
1550 | wxMEDIASTATE_STOPPED=0, | |
1551 | wxMEDIASTATE_PAUSED=0, | |
1552 | wxMEDIASTATE_PLAYING=0 | |
1553 | }; | |
1554 | ||
9d7dfdff RD |
1555 | enum wxMediaCtrlPlayerControls |
1556 | { | |
1557 | wxMEDIACTRLPLAYERCONTROLS_NONE, | |
1558 | wxMEDIACTRLPLAYERCONTROLS_STEP, | |
1559 | wxMEDIACTRLPLAYERCONTROLS_VOLUME, | |
1560 | wxMEDIACTRLPLAYERCONTROLS_DEFAULT | |
1561 | }; | |
093d3ff1 | 1562 | |
b1fcee84 RD |
1563 | static wxString wxMEDIABACKEND_DIRECTSHOW(wxEmptyString); |
1564 | static wxString wxMEDIABACKEND_MCI (wxEmptyString); | |
1565 | static wxString wxMEDIABACKEND_QUICKTIME (wxEmptyString); | |
1566 | static wxString wxMEDIABACKEND_GSTREAMER (wxEmptyString); | |
1567 | ||
1568 | ||
093d3ff1 RD |
1569 | class wxMediaEvent : public wxNotifyEvent |
1570 | { | |
1571 | public: | |
1572 | wxMediaEvent(wxEventType, int ) { wxPyRaiseNotImplemented(); } | |
1573 | }; | |
1574 | ||
1575 | class wxMediaCtrl : public wxControl | |
1576 | { | |
1577 | public: | |
a97cefba | 1578 | wxMediaCtrl() { wxPyRaiseNotImplemented(); } |
093d3ff1 RD |
1579 | |
1580 | wxMediaCtrl(wxWindow* , wxWindowID , | |
1581 | const wxString& , | |
1582 | const wxPoint& , | |
1583 | const wxSize& , | |
1584 | long style , | |
1585 | const wxString& , | |
1586 | const wxValidator& , | |
1587 | const wxString& ) { wxPyRaiseNotImplemented(); } | |
1588 | ||
093d3ff1 RD |
1589 | bool Create(wxWindow* , wxWindowID , |
1590 | const wxString& , | |
1591 | const wxPoint& , | |
1592 | const wxSize& , | |
1593 | long style , | |
1594 | const wxString& , | |
1595 | const wxValidator& , | |
1596 | const wxString& ) { return false; } | |
1597 | ||
093d3ff1 RD |
1598 | bool Play() { return false; } |
1599 | bool Pause() { return false; } | |
1600 | bool Stop() { return false; } | |
1601 | ||
093d3ff1 RD |
1602 | wxMediaState GetState() { return wxMEDIASTATE_STOPPED; } |
1603 | ||
1604 | double GetPlaybackRate() { return 0.0; } | |
1605 | bool SetPlaybackRate(double dRate) { return false; } | |
1606 | ||
1607 | wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart) | |
1608 | { return 0; } | |
1609 | ||
1610 | wxFileOffset Tell() { return 0; } | |
1611 | wxFileOffset Length() { return 0; } | |
034e3677 RD |
1612 | |
1613 | double GetVolume() { return 0.0; } | |
1614 | bool SetVolume(double dVolume) { return false; } | |
9d7dfdff RD |
1615 | |
1616 | bool ShowPlayerControls( | |
1617 | wxMediaCtrlPlayerControls flags = wxMEDIACTRLPLAYERCONTROLS_DEFAULT) | |
1618 | { return false; } | |
1619 | ||
1620 | bool Load(const wxString& fileName) { return false; } | |
1621 | bool LoadURI(const wxString& fileName) { return false; } | |
1622 | bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy) { return false; } | |
093d3ff1 RD |
1623 | }; |
1624 | ||
1625 | const wxEventType wxEVT_MEDIA_FINISHED = 0; | |
1626 | const wxEventType wxEVT_MEDIA_STOP = 0; | |
7449af73 | 1627 | const wxEventType wxEVT_MEDIA_LOADED = 0; |
093d3ff1 RD |
1628 | |
1629 | #endif | |
1630 | ||
1631 | ||
7e08d4ef | 1632 | /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1633 | #define SWIG_From_int PyInt_FromLong |
1634 | /*@@*/ | |
8ac8dba0 | 1635 | |
b1fcee84 RD |
1636 | static const wxString wxPyMEDIABACKEND_DIRECTSHOW(wxMEDIABACKEND_DIRECTSHOW); |
1637 | static const wxString wxPyMEDIABACKEND_MCI(wxMEDIABACKEND_MCI); | |
1638 | static const wxString wxPyMEDIABACKEND_QUICKTIME(wxMEDIABACKEND_QUICKTIME); | |
1639 | static const wxString wxPyMEDIABACKEND_GSTREAMER(wxMEDIABACKEND_GSTREAMER); | |
8ac8dba0 RD |
1640 | |
1641 | #include <limits.h> | |
1642 | ||
1643 | ||
093d3ff1 | 1644 | SWIGINTERN int |
8ac8dba0 RD |
1645 | SWIG_CheckLongInRange(long value, long min_value, long max_value, |
1646 | const char *errmsg) | |
1647 | { | |
1648 | if (value < min_value) { | |
1649 | if (errmsg) { | |
1650 | PyErr_Format(PyExc_OverflowError, | |
1651 | "value %ld is less than '%s' minimum %ld", | |
1652 | value, errmsg, min_value); | |
1653 | } | |
1654 | return 0; | |
1655 | } else if (value > max_value) { | |
1656 | if (errmsg) { | |
1657 | PyErr_Format(PyExc_OverflowError, | |
1658 | "value %ld is greater than '%s' maximum %ld", | |
1659 | value, errmsg, max_value); | |
1660 | } | |
1661 | return 0; | |
1662 | } | |
1663 | return 1; | |
1664 | } | |
1665 | ||
1666 | ||
093d3ff1 | 1667 | SWIGINTERN int |
8ac8dba0 RD |
1668 | SWIG_AsVal_long(PyObject* obj, long* val) |
1669 | { | |
1670 | if (PyNumber_Check(obj)) { | |
1671 | if (val) *val = PyInt_AsLong(obj); | |
1672 | return 1; | |
1673 | } | |
1674 | else { | |
7e08d4ef | 1675 | SWIG_Python_TypeError("number", obj); |
8ac8dba0 RD |
1676 | } |
1677 | return 0; | |
1678 | } | |
1679 | ||
1680 | ||
1681 | #if INT_MAX != LONG_MAX | |
093d3ff1 | 1682 | SWIGINTERN int |
8ac8dba0 RD |
1683 | SWIG_AsVal_int(PyObject *obj, int *val) |
1684 | { | |
093d3ff1 | 1685 | const char* errmsg = val ? "int" : (char*)0; |
8ac8dba0 RD |
1686 | long v; |
1687 | if (SWIG_AsVal_long(obj, &v)) { | |
1688 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
7449af73 | 1689 | if (val) *val = static_cast<int >(v); |
8ac8dba0 RD |
1690 | return 1; |
1691 | } else { | |
1692 | return 0; | |
1693 | } | |
1694 | } else { | |
1695 | PyErr_Clear(); | |
1696 | } | |
1697 | if (val) { | |
093d3ff1 | 1698 | SWIG_type_error(errmsg, obj); |
8ac8dba0 RD |
1699 | } |
1700 | return 0; | |
1701 | } | |
1702 | #else | |
7449af73 | 1703 | SWIGINTERNINLINE int |
8ac8dba0 RD |
1704 | SWIG_AsVal_int(PyObject *obj, int *val) |
1705 | { | |
1706 | return SWIG_AsVal_long(obj,(long*)val); | |
1707 | } | |
1708 | #endif | |
1709 | ||
1710 | ||
7449af73 | 1711 | SWIGINTERNINLINE int |
8ac8dba0 RD |
1712 | SWIG_As_int(PyObject* obj) |
1713 | { | |
1714 | int v; | |
1715 | if (!SWIG_AsVal_int(obj, &v)) { | |
1716 | /* | |
093d3ff1 | 1717 | this is needed to make valgrind/purify happier. |
8ac8dba0 RD |
1718 | */ |
1719 | memset((void*)&v, 0, sizeof(int)); | |
1720 | } | |
1721 | return v; | |
1722 | } | |
1723 | ||
1724 | ||
7449af73 | 1725 | SWIGINTERNINLINE int |
8ac8dba0 RD |
1726 | SWIG_Check_int(PyObject* obj) |
1727 | { | |
1728 | return SWIG_AsVal_int(obj, (int*)0); | |
1729 | } | |
1730 | ||
1731 | static const wxString wxPyEmptyString(wxEmptyString); | |
f78cc896 | 1732 | static const wxString wxPyMediaCtrlNameStr(wxT("mediaCtrl")); |
8ac8dba0 | 1733 | |
7449af73 | 1734 | SWIGINTERNINLINE long |
8ac8dba0 RD |
1735 | SWIG_As_long(PyObject* obj) |
1736 | { | |
1737 | long v; | |
1738 | if (!SWIG_AsVal_long(obj, &v)) { | |
1739 | /* | |
093d3ff1 | 1740 | this is needed to make valgrind/purify happier. |
8ac8dba0 RD |
1741 | */ |
1742 | memset((void*)&v, 0, sizeof(long)); | |
1743 | } | |
1744 | return v; | |
1745 | } | |
1746 | ||
1747 | ||
7449af73 | 1748 | SWIGINTERNINLINE int |
8ac8dba0 RD |
1749 | SWIG_Check_long(PyObject* obj) |
1750 | { | |
1751 | return SWIG_AsVal_long(obj, (long*)0); | |
1752 | } | |
1753 | ||
8ac8dba0 | 1754 | |
7e08d4ef | 1755 | /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1756 | #define SWIG_From_double PyFloat_FromDouble |
1757 | /*@@*/ | |
1758 | ||
1759 | ||
1760 | SWIGINTERN int | |
8ac8dba0 RD |
1761 | SWIG_AsVal_double(PyObject *obj, double* val) |
1762 | { | |
1763 | if (PyNumber_Check(obj)) { | |
1764 | if (val) *val = PyFloat_AsDouble(obj); | |
1765 | return 1; | |
1766 | } | |
1767 | else { | |
7e08d4ef | 1768 | SWIG_Python_TypeError("number", obj); |
8ac8dba0 RD |
1769 | } |
1770 | return 0; | |
1771 | } | |
1772 | ||
1773 | ||
7449af73 | 1774 | SWIGINTERNINLINE double |
8ac8dba0 RD |
1775 | SWIG_As_double(PyObject* obj) |
1776 | { | |
1777 | double v; | |
1778 | if (!SWIG_AsVal_double(obj, &v)) { | |
1779 | /* | |
093d3ff1 | 1780 | this is needed to make valgrind/purify happier. |
8ac8dba0 RD |
1781 | */ |
1782 | memset((void*)&v, 0, sizeof(double)); | |
1783 | } | |
1784 | return v; | |
1785 | } | |
1786 | ||
1787 | ||
7449af73 | 1788 | SWIGINTERNINLINE int |
8ac8dba0 RD |
1789 | SWIG_Check_double(PyObject* obj) |
1790 | { | |
1791 | return SWIG_AsVal_double(obj, (double*)0); | |
1792 | } | |
1793 | ||
1794 | #ifdef __cplusplus | |
1795 | extern "C" { | |
1796 | #endif | |
b1fcee84 RD |
1797 | static int _wrap_MEDIABACKEND_DIRECTSHOW_set(PyObject *) { |
1798 | PyErr_SetString(PyExc_TypeError,"Variable MEDIABACKEND_DIRECTSHOW is read-only."); | |
1799 | return 1; | |
1800 | } | |
1801 | ||
1802 | ||
1803 | static PyObject *_wrap_MEDIABACKEND_DIRECTSHOW_get(void) { | |
1804 | PyObject *pyobj = NULL; | |
1805 | ||
1806 | { | |
1807 | #if wxUSE_UNICODE | |
1808 | pyobj = PyUnicode_FromWideChar((&wxPyMEDIABACKEND_DIRECTSHOW)->c_str(), (&wxPyMEDIABACKEND_DIRECTSHOW)->Len()); | |
1809 | #else | |
1810 | pyobj = PyString_FromStringAndSize((&wxPyMEDIABACKEND_DIRECTSHOW)->c_str(), (&wxPyMEDIABACKEND_DIRECTSHOW)->Len()); | |
1811 | #endif | |
1812 | } | |
1813 | return pyobj; | |
1814 | } | |
1815 | ||
1816 | ||
1817 | static int _wrap_MEDIABACKEND_MCI_set(PyObject *) { | |
1818 | PyErr_SetString(PyExc_TypeError,"Variable MEDIABACKEND_MCI is read-only."); | |
1819 | return 1; | |
1820 | } | |
1821 | ||
1822 | ||
1823 | static PyObject *_wrap_MEDIABACKEND_MCI_get(void) { | |
1824 | PyObject *pyobj = NULL; | |
1825 | ||
1826 | { | |
1827 | #if wxUSE_UNICODE | |
1828 | pyobj = PyUnicode_FromWideChar((&wxPyMEDIABACKEND_MCI)->c_str(), (&wxPyMEDIABACKEND_MCI)->Len()); | |
1829 | #else | |
1830 | pyobj = PyString_FromStringAndSize((&wxPyMEDIABACKEND_MCI)->c_str(), (&wxPyMEDIABACKEND_MCI)->Len()); | |
1831 | #endif | |
1832 | } | |
1833 | return pyobj; | |
1834 | } | |
1835 | ||
1836 | ||
1837 | static int _wrap_MEDIABACKEND_QUICKTIME_set(PyObject *) { | |
1838 | PyErr_SetString(PyExc_TypeError,"Variable MEDIABACKEND_QUICKTIME is read-only."); | |
1839 | return 1; | |
1840 | } | |
1841 | ||
1842 | ||
1843 | static PyObject *_wrap_MEDIABACKEND_QUICKTIME_get(void) { | |
1844 | PyObject *pyobj = NULL; | |
1845 | ||
1846 | { | |
1847 | #if wxUSE_UNICODE | |
1848 | pyobj = PyUnicode_FromWideChar((&wxPyMEDIABACKEND_QUICKTIME)->c_str(), (&wxPyMEDIABACKEND_QUICKTIME)->Len()); | |
1849 | #else | |
1850 | pyobj = PyString_FromStringAndSize((&wxPyMEDIABACKEND_QUICKTIME)->c_str(), (&wxPyMEDIABACKEND_QUICKTIME)->Len()); | |
1851 | #endif | |
1852 | } | |
1853 | return pyobj; | |
1854 | } | |
1855 | ||
1856 | ||
1857 | static int _wrap_MEDIABACKEND_GSTREAMER_set(PyObject *) { | |
1858 | PyErr_SetString(PyExc_TypeError,"Variable MEDIABACKEND_GSTREAMER is read-only."); | |
1859 | return 1; | |
1860 | } | |
1861 | ||
1862 | ||
1863 | static PyObject *_wrap_MEDIABACKEND_GSTREAMER_get(void) { | |
1864 | PyObject *pyobj = NULL; | |
1865 | ||
1866 | { | |
1867 | #if wxUSE_UNICODE | |
1868 | pyobj = PyUnicode_FromWideChar((&wxPyMEDIABACKEND_GSTREAMER)->c_str(), (&wxPyMEDIABACKEND_GSTREAMER)->Len()); | |
1869 | #else | |
1870 | pyobj = PyString_FromStringAndSize((&wxPyMEDIABACKEND_GSTREAMER)->c_str(), (&wxPyMEDIABACKEND_GSTREAMER)->Len()); | |
1871 | #endif | |
1872 | } | |
1873 | return pyobj; | |
1874 | } | |
1875 | ||
1876 | ||
8ac8dba0 | 1877 | static PyObject *_wrap_new_MediaEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 1878 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
1879 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
1880 | int arg2 = (int) 0 ; | |
1881 | wxMediaEvent *result; | |
1882 | PyObject * obj0 = 0 ; | |
1883 | PyObject * obj1 = 0 ; | |
1884 | char *kwnames[] = { | |
1885 | (char *) "commandType",(char *) "id", NULL | |
1886 | }; | |
1887 | ||
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MediaEvent",kwnames,&obj0,&obj1)) goto fail; | |
1889 | if (obj0) { | |
093d3ff1 | 1890 | { |
7449af73 | 1891 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
1892 | if (SWIG_arg_fail(1)) SWIG_fail; |
1893 | } | |
8ac8dba0 RD |
1894 | } |
1895 | if (obj1) { | |
093d3ff1 | 1896 | { |
7449af73 | 1897 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
1898 | if (SWIG_arg_fail(2)) SWIG_fail; |
1899 | } | |
8ac8dba0 RD |
1900 | } |
1901 | { | |
1902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1903 | result = (wxMediaEvent *)new wxMediaEvent(arg1,arg2); | |
1904 | ||
1905 | wxPyEndAllowThreads(__tstate); | |
1906 | if (PyErr_Occurred()) SWIG_fail; | |
1907 | } | |
1908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaEvent, 1); | |
1909 | return resultobj; | |
1910 | fail: | |
1911 | return NULL; | |
1912 | } | |
1913 | ||
1914 | ||
1915 | static PyObject * MediaEvent_swigregister(PyObject *, PyObject *args) { | |
1916 | PyObject *obj; | |
1917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1918 | SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent, obj); | |
1919 | Py_INCREF(obj); | |
1920 | return Py_BuildValue((char *)""); | |
1921 | } | |
1922 | static int _wrap_MediaCtrlNameStr_set(PyObject *) { | |
1923 | PyErr_SetString(PyExc_TypeError,"Variable MediaCtrlNameStr is read-only."); | |
1924 | return 1; | |
1925 | } | |
1926 | ||
1927 | ||
093d3ff1 | 1928 | static PyObject *_wrap_MediaCtrlNameStr_get(void) { |
7449af73 | 1929 | PyObject *pyobj = NULL; |
8ac8dba0 RD |
1930 | |
1931 | { | |
1932 | #if wxUSE_UNICODE | |
1933 | pyobj = PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len()); | |
1934 | #else | |
1935 | pyobj = PyString_FromStringAndSize((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len()); | |
1936 | #endif | |
1937 | } | |
1938 | return pyobj; | |
1939 | } | |
1940 | ||
1941 | ||
1942 | static PyObject *_wrap_new_MediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 1943 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
1944 | wxWindow *arg1 = (wxWindow *) 0 ; |
1945 | int arg2 = (int) -1 ; | |
1946 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1947 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
1948 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1949 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1950 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1951 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1952 | long arg6 = (long) 0 ; | |
1953 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
1954 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1955 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1956 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1957 | wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ; | |
1958 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1959 | wxMediaCtrl *result; | |
1960 | bool temp3 = false ; | |
1961 | wxPoint temp4 ; | |
1962 | wxSize temp5 ; | |
1963 | bool temp7 = false ; | |
1964 | bool temp9 = false ; | |
1965 | PyObject * obj0 = 0 ; | |
1966 | PyObject * obj1 = 0 ; | |
1967 | PyObject * obj2 = 0 ; | |
1968 | PyObject * obj3 = 0 ; | |
1969 | PyObject * obj4 = 0 ; | |
1970 | PyObject * obj5 = 0 ; | |
1971 | PyObject * obj6 = 0 ; | |
1972 | PyObject * obj7 = 0 ; | |
1973 | PyObject * obj8 = 0 ; | |
1974 | char *kwnames[] = { | |
1975 | (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL | |
1976 | }; | |
1977 | ||
1978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
093d3ff1 RD |
1979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
1980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 | 1981 | if (obj1) { |
093d3ff1 | 1982 | { |
7449af73 | 1983 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
1984 | if (SWIG_arg_fail(2)) SWIG_fail; |
1985 | } | |
8ac8dba0 RD |
1986 | } |
1987 | if (obj2) { | |
1988 | { | |
1989 | arg3 = wxString_in_helper(obj2); | |
1990 | if (arg3 == NULL) SWIG_fail; | |
1991 | temp3 = true; | |
1992 | } | |
1993 | } | |
1994 | if (obj3) { | |
1995 | { | |
1996 | arg4 = &temp4; | |
1997 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1998 | } | |
1999 | } | |
2000 | if (obj4) { | |
2001 | { | |
2002 | arg5 = &temp5; | |
2003 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2004 | } | |
2005 | } | |
2006 | if (obj5) { | |
093d3ff1 | 2007 | { |
7449af73 | 2008 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
2009 | if (SWIG_arg_fail(6)) SWIG_fail; |
2010 | } | |
8ac8dba0 RD |
2011 | } |
2012 | if (obj6) { | |
2013 | { | |
2014 | arg7 = wxString_in_helper(obj6); | |
2015 | if (arg7 == NULL) SWIG_fail; | |
2016 | temp7 = true; | |
2017 | } | |
2018 | } | |
2019 | if (obj7) { | |
093d3ff1 RD |
2020 | { |
2021 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2022 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2023 | if (arg8 == NULL) { | |
2024 | SWIG_null_ref("wxValidator"); | |
2025 | } | |
2026 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8ac8dba0 RD |
2027 | } |
2028 | } | |
2029 | if (obj8) { | |
2030 | { | |
2031 | arg9 = wxString_in_helper(obj8); | |
2032 | if (arg9 == NULL) SWIG_fail; | |
2033 | temp9 = true; | |
2034 | } | |
2035 | } | |
2036 | { | |
2037 | if (!wxPyCheckForApp()) SWIG_fail; | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | result = (wxMediaCtrl *)new wxMediaCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | } | |
2044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1); | |
2045 | { | |
2046 | if (temp3) | |
2047 | delete arg3; | |
2048 | } | |
2049 | { | |
2050 | if (temp7) | |
2051 | delete arg7; | |
2052 | } | |
2053 | { | |
2054 | if (temp9) | |
2055 | delete arg9; | |
2056 | } | |
2057 | return resultobj; | |
2058 | fail: | |
2059 | { | |
2060 | if (temp3) | |
2061 | delete arg3; | |
2062 | } | |
2063 | { | |
2064 | if (temp7) | |
2065 | delete arg7; | |
2066 | } | |
2067 | { | |
2068 | if (temp9) | |
2069 | delete arg9; | |
2070 | } | |
2071 | return NULL; | |
2072 | } | |
2073 | ||
2074 | ||
2075 | static PyObject *_wrap_new_PreMediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 2076 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
2077 | wxMediaCtrl *result; |
2078 | char *kwnames[] = { | |
2079 | NULL | |
2080 | }; | |
2081 | ||
2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMediaCtrl",kwnames)) goto fail; | |
2083 | { | |
2084 | if (!wxPyCheckForApp()) SWIG_fail; | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | result = (wxMediaCtrl *)new wxMediaCtrl(); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
2091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1); | |
2092 | return resultobj; | |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
093d3ff1 | 2098 | static PyObject *_wrap_MediaCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2099 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
2100 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2101 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2102 | int arg3 = (int) -1 ; | |
2103 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2104 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2105 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2106 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2107 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2108 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2109 | long arg7 = (long) 0 ; | |
2110 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
2111 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2112 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2113 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2114 | wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ; | |
2115 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2116 | bool result; | |
2117 | bool temp4 = false ; | |
2118 | wxPoint temp5 ; | |
2119 | wxSize temp6 ; | |
2120 | bool temp8 = false ; | |
2121 | bool temp10 = false ; | |
2122 | PyObject * obj0 = 0 ; | |
2123 | PyObject * obj1 = 0 ; | |
2124 | PyObject * obj2 = 0 ; | |
2125 | PyObject * obj3 = 0 ; | |
2126 | PyObject * obj4 = 0 ; | |
2127 | PyObject * obj5 = 0 ; | |
2128 | PyObject * obj6 = 0 ; | |
2129 | PyObject * obj7 = 0 ; | |
2130 | PyObject * obj8 = 0 ; | |
2131 | PyObject * obj9 = 0 ; | |
2132 | char *kwnames[] = { | |
2133 | (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL | |
2134 | }; | |
2135 | ||
2136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
093d3ff1 RD |
2137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2139 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2140 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8ac8dba0 | 2141 | if (obj2) { |
093d3ff1 | 2142 | { |
7449af73 | 2143 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
2144 | if (SWIG_arg_fail(3)) SWIG_fail; |
2145 | } | |
8ac8dba0 RD |
2146 | } |
2147 | if (obj3) { | |
2148 | { | |
2149 | arg4 = wxString_in_helper(obj3); | |
2150 | if (arg4 == NULL) SWIG_fail; | |
2151 | temp4 = true; | |
2152 | } | |
2153 | } | |
2154 | if (obj4) { | |
2155 | { | |
2156 | arg5 = &temp5; | |
2157 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2158 | } | |
2159 | } | |
2160 | if (obj5) { | |
2161 | { | |
2162 | arg6 = &temp6; | |
2163 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2164 | } | |
2165 | } | |
2166 | if (obj6) { | |
093d3ff1 | 2167 | { |
7449af73 | 2168 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
2169 | if (SWIG_arg_fail(7)) SWIG_fail; |
2170 | } | |
8ac8dba0 RD |
2171 | } |
2172 | if (obj7) { | |
2173 | { | |
2174 | arg8 = wxString_in_helper(obj7); | |
2175 | if (arg8 == NULL) SWIG_fail; | |
2176 | temp8 = true; | |
2177 | } | |
2178 | } | |
2179 | if (obj8) { | |
093d3ff1 RD |
2180 | { |
2181 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2182 | if (SWIG_arg_fail(9)) SWIG_fail; | |
2183 | if (arg9 == NULL) { | |
2184 | SWIG_null_ref("wxValidator"); | |
2185 | } | |
2186 | if (SWIG_arg_fail(9)) SWIG_fail; | |
8ac8dba0 RD |
2187 | } |
2188 | } | |
2189 | if (obj9) { | |
2190 | { | |
2191 | arg10 = wxString_in_helper(obj9); | |
2192 | if (arg10 == NULL) SWIG_fail; | |
2193 | temp10 = true; | |
2194 | } | |
2195 | } | |
2196 | { | |
2197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2198 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2199 | ||
2200 | wxPyEndAllowThreads(__tstate); | |
2201 | if (PyErr_Occurred()) SWIG_fail; | |
2202 | } | |
2203 | { | |
2204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2205 | } | |
2206 | { | |
2207 | if (temp4) | |
2208 | delete arg4; | |
2209 | } | |
2210 | { | |
2211 | if (temp8) | |
2212 | delete arg8; | |
2213 | } | |
2214 | { | |
2215 | if (temp10) | |
2216 | delete arg10; | |
2217 | } | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | { | |
2221 | if (temp4) | |
2222 | delete arg4; | |
2223 | } | |
2224 | { | |
2225 | if (temp8) | |
2226 | delete arg8; | |
2227 | } | |
2228 | { | |
2229 | if (temp10) | |
2230 | delete arg10; | |
2231 | } | |
2232 | return NULL; | |
2233 | } | |
2234 | ||
2235 | ||
2236 | static PyObject *_wrap_MediaCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 2237 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
2238 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2239 | bool result; | |
2240 | PyObject * obj0 = 0 ; | |
2241 | char *kwnames[] = { | |
2242 | (char *) "self", NULL | |
2243 | }; | |
2244 | ||
2245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Play",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 RD |
2248 | { |
2249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2250 | result = (bool)(arg1)->Play(); | |
2251 | ||
2252 | wxPyEndAllowThreads(__tstate); | |
2253 | if (PyErr_Occurred()) SWIG_fail; | |
2254 | } | |
2255 | { | |
2256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2257 | } | |
2258 | return resultobj; | |
2259 | fail: | |
2260 | return NULL; | |
2261 | } | |
2262 | ||
2263 | ||
2264 | static PyObject *_wrap_MediaCtrl_Pause(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 2265 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
2266 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2267 | bool result; | |
2268 | PyObject * obj0 = 0 ; | |
2269 | char *kwnames[] = { | |
2270 | (char *) "self", NULL | |
2271 | }; | |
2272 | ||
2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Pause",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 RD |
2276 | { |
2277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2278 | result = (bool)(arg1)->Pause(); | |
2279 | ||
2280 | wxPyEndAllowThreads(__tstate); | |
2281 | if (PyErr_Occurred()) SWIG_fail; | |
2282 | } | |
2283 | { | |
2284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2285 | } | |
2286 | return resultobj; | |
2287 | fail: | |
2288 | return NULL; | |
2289 | } | |
2290 | ||
2291 | ||
2292 | static PyObject *_wrap_MediaCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 2293 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
2294 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2295 | bool result; | |
2296 | PyObject * obj0 = 0 ; | |
2297 | char *kwnames[] = { | |
2298 | (char *) "self", NULL | |
2299 | }; | |
2300 | ||
2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Stop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 RD |
2304 | { |
2305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2306 | result = (bool)(arg1)->Stop(); | |
2307 | ||
2308 | wxPyEndAllowThreads(__tstate); | |
2309 | if (PyErr_Occurred()) SWIG_fail; | |
2310 | } | |
2311 | { | |
2312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2313 | } | |
2314 | return resultobj; | |
2315 | fail: | |
2316 | return NULL; | |
2317 | } | |
2318 | ||
2319 | ||
9d7dfdff | 2320 | static PyObject *_wrap_MediaCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2321 | PyObject *resultobj = NULL; |
9d7dfdff RD |
2322 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2323 | wxMediaState result; | |
2324 | PyObject * obj0 = 0 ; | |
2325 | char *kwnames[] = { | |
2326 | (char *) "self", NULL | |
2327 | }; | |
2328 | ||
2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetState",kwnames,&obj0)) goto fail; | |
2330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2332 | { | |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2334 | result = (wxMediaState)(arg1)->GetState(); | |
2335 | ||
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
2339 | resultobj = SWIG_From_int((result)); | |
2340 | return resultobj; | |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
2346 | static PyObject *_wrap_MediaCtrl_GetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 2347 | PyObject *resultobj = NULL; |
034e3677 RD |
2348 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2349 | double result; | |
2350 | PyObject * obj0 = 0 ; | |
2351 | char *kwnames[] = { | |
2352 | (char *) "self", NULL | |
2353 | }; | |
2354 | ||
9d7dfdff | 2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames,&obj0)) goto fail; |
034e3677 RD |
2356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2358 | { | |
2359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2360 | result = (double)(arg1)->GetPlaybackRate(); |
034e3677 RD |
2361 | |
2362 | wxPyEndAllowThreads(__tstate); | |
2363 | if (PyErr_Occurred()) SWIG_fail; | |
2364 | } | |
2365 | { | |
7449af73 | 2366 | resultobj = SWIG_From_double(static_cast<double >(result)); |
034e3677 RD |
2367 | } |
2368 | return resultobj; | |
2369 | fail: | |
2370 | return NULL; | |
2371 | } | |
2372 | ||
2373 | ||
9d7dfdff | 2374 | static PyObject *_wrap_MediaCtrl_SetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2375 | PyObject *resultobj = NULL; |
034e3677 RD |
2376 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2377 | double arg2 ; | |
2378 | bool result; | |
2379 | PyObject * obj0 = 0 ; | |
2380 | PyObject * obj1 = 0 ; | |
2381 | char *kwnames[] = { | |
9d7dfdff | 2382 | (char *) "self",(char *) "dRate", NULL |
034e3677 RD |
2383 | }; |
2384 | ||
9d7dfdff | 2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames,&obj0,&obj1)) goto fail; |
034e3677 RD |
2386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2388 | { | |
7449af73 | 2389 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
034e3677 RD |
2390 | if (SWIG_arg_fail(2)) SWIG_fail; |
2391 | } | |
2392 | { | |
2393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2394 | result = (bool)(arg1)->SetPlaybackRate(arg2); |
034e3677 RD |
2395 | |
2396 | wxPyEndAllowThreads(__tstate); | |
2397 | if (PyErr_Occurred()) SWIG_fail; | |
2398 | } | |
2399 | { | |
2400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2401 | } | |
2402 | return resultobj; | |
2403 | fail: | |
2404 | return NULL; | |
2405 | } | |
2406 | ||
2407 | ||
9d7dfdff | 2408 | static PyObject *_wrap_MediaCtrl_Seek(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2409 | PyObject *resultobj = NULL; |
8ac8dba0 | 2410 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
9d7dfdff RD |
2411 | wxFileOffset arg2 ; |
2412 | wxSeekMode arg3 = (wxSeekMode) wxFromStart ; | |
2413 | wxFileOffset result; | |
8ac8dba0 RD |
2414 | PyObject * obj0 = 0 ; |
2415 | PyObject * obj1 = 0 ; | |
9d7dfdff | 2416 | PyObject * obj2 = 0 ; |
8ac8dba0 | 2417 | char *kwnames[] = { |
9d7dfdff | 2418 | (char *) "self",(char *) "where",(char *) "mode", NULL |
8ac8dba0 RD |
2419 | }; |
2420 | ||
9d7dfdff | 2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MediaCtrl_Seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
2422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 | 2424 | { |
9d7dfdff RD |
2425 | if (sizeof(wxFileOffset) > sizeof(long)) |
2426 | arg2 = PyLong_AsLongLong(obj1); | |
2427 | else | |
2428 | arg2 = PyInt_AsLong(obj1); | |
2429 | } | |
2430 | if (obj2) { | |
2431 | { | |
7449af73 | 2432 | arg3 = static_cast<wxSeekMode >(SWIG_As_int(obj2)); |
9d7dfdff RD |
2433 | if (SWIG_arg_fail(3)) SWIG_fail; |
2434 | } | |
8ac8dba0 RD |
2435 | } |
2436 | { | |
2437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7449af73 | 2438 | result = (arg1)->Seek(arg2,arg3); |
8ac8dba0 RD |
2439 | |
2440 | wxPyEndAllowThreads(__tstate); | |
2441 | if (PyErr_Occurred()) SWIG_fail; | |
2442 | } | |
2443 | { | |
9d7dfdff RD |
2444 | if (sizeof(wxFileOffset) > sizeof(long)) |
2445 | resultobj = PyLong_FromLongLong(result); | |
2446 | else | |
2447 | resultobj = PyInt_FromLong(result); | |
8ac8dba0 RD |
2448 | } |
2449 | return resultobj; | |
2450 | fail: | |
8ac8dba0 RD |
2451 | return NULL; |
2452 | } | |
2453 | ||
2454 | ||
9d7dfdff | 2455 | static PyObject *_wrap_MediaCtrl_Tell(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2456 | PyObject *resultobj = NULL; |
8ac8dba0 | 2457 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
9d7dfdff | 2458 | wxFileOffset result; |
8ac8dba0 | 2459 | PyObject * obj0 = 0 ; |
8ac8dba0 | 2460 | char *kwnames[] = { |
9d7dfdff | 2461 | (char *) "self", NULL |
8ac8dba0 RD |
2462 | }; |
2463 | ||
9d7dfdff | 2464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Tell",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
2465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 RD |
2467 | { |
2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2469 | result = (arg1)->Tell(); |
8ac8dba0 RD |
2470 | |
2471 | wxPyEndAllowThreads(__tstate); | |
2472 | if (PyErr_Occurred()) SWIG_fail; | |
2473 | } | |
2474 | { | |
9d7dfdff RD |
2475 | if (sizeof(wxFileOffset) > sizeof(long)) |
2476 | resultobj = PyLong_FromLongLong(result); | |
2477 | else | |
2478 | resultobj = PyInt_FromLong(result); | |
8ac8dba0 RD |
2479 | } |
2480 | return resultobj; | |
2481 | fail: | |
8ac8dba0 RD |
2482 | return NULL; |
2483 | } | |
2484 | ||
2485 | ||
9d7dfdff | 2486 | static PyObject *_wrap_MediaCtrl_Length(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2487 | PyObject *resultobj = NULL; |
8ac8dba0 | 2488 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
9d7dfdff | 2489 | wxFileOffset result; |
8ac8dba0 RD |
2490 | PyObject * obj0 = 0 ; |
2491 | char *kwnames[] = { | |
2492 | (char *) "self", NULL | |
2493 | }; | |
2494 | ||
9d7dfdff | 2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Length",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
2496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 RD |
2498 | { |
2499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2500 | result = (arg1)->Length(); |
8ac8dba0 RD |
2501 | |
2502 | wxPyEndAllowThreads(__tstate); | |
2503 | if (PyErr_Occurred()) SWIG_fail; | |
2504 | } | |
9d7dfdff RD |
2505 | { |
2506 | if (sizeof(wxFileOffset) > sizeof(long)) | |
2507 | resultobj = PyLong_FromLongLong(result); | |
2508 | else | |
2509 | resultobj = PyInt_FromLong(result); | |
2510 | } | |
8ac8dba0 RD |
2511 | return resultobj; |
2512 | fail: | |
2513 | return NULL; | |
2514 | } | |
2515 | ||
2516 | ||
9d7dfdff | 2517 | static PyObject *_wrap_MediaCtrl_GetVolume(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2518 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
2519 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2520 | double result; | |
2521 | PyObject * obj0 = 0 ; | |
2522 | char *kwnames[] = { | |
2523 | (char *) "self", NULL | |
2524 | }; | |
2525 | ||
9d7dfdff | 2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetVolume",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
2527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8ac8dba0 RD |
2529 | { |
2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2531 | result = (double)(arg1)->GetVolume(); |
8ac8dba0 RD |
2532 | |
2533 | wxPyEndAllowThreads(__tstate); | |
2534 | if (PyErr_Occurred()) SWIG_fail; | |
2535 | } | |
093d3ff1 | 2536 | { |
7449af73 | 2537 | resultobj = SWIG_From_double(static_cast<double >(result)); |
093d3ff1 | 2538 | } |
8ac8dba0 RD |
2539 | return resultobj; |
2540 | fail: | |
2541 | return NULL; | |
2542 | } | |
2543 | ||
2544 | ||
9d7dfdff | 2545 | static PyObject *_wrap_MediaCtrl_SetVolume(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2546 | PyObject *resultobj = NULL; |
8ac8dba0 RD |
2547 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2548 | double arg2 ; | |
2549 | bool result; | |
2550 | PyObject * obj0 = 0 ; | |
2551 | PyObject * obj1 = 0 ; | |
2552 | char *kwnames[] = { | |
9d7dfdff | 2553 | (char *) "self",(char *) "dVolume", NULL |
8ac8dba0 RD |
2554 | }; |
2555 | ||
9d7dfdff | 2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetVolume",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
2557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2559 | { | |
7449af73 | 2560 | arg2 = static_cast<double >(SWIG_As_double(obj1)); |
093d3ff1 RD |
2561 | if (SWIG_arg_fail(2)) SWIG_fail; |
2562 | } | |
8ac8dba0 RD |
2563 | { |
2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2565 | result = (bool)(arg1)->SetVolume(arg2); |
8ac8dba0 RD |
2566 | |
2567 | wxPyEndAllowThreads(__tstate); | |
2568 | if (PyErr_Occurred()) SWIG_fail; | |
2569 | } | |
2570 | { | |
2571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2572 | } | |
2573 | return resultobj; | |
2574 | fail: | |
2575 | return NULL; | |
2576 | } | |
2577 | ||
2578 | ||
9d7dfdff | 2579 | static PyObject *_wrap_MediaCtrl_ShowPlayerControls(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2580 | PyObject *resultobj = NULL; |
8ac8dba0 | 2581 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
9d7dfdff RD |
2582 | wxMediaCtrlPlayerControls arg2 = (wxMediaCtrlPlayerControls) wxMEDIACTRLPLAYERCONTROLS_DEFAULT ; |
2583 | bool result; | |
8ac8dba0 RD |
2584 | PyObject * obj0 = 0 ; |
2585 | PyObject * obj1 = 0 ; | |
2586 | char *kwnames[] = { | |
9d7dfdff | 2587 | (char *) "self",(char *) "flags", NULL |
8ac8dba0 RD |
2588 | }; |
2589 | ||
9d7dfdff | 2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MediaCtrl_ShowPlayerControls",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
2591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9d7dfdff | 2593 | if (obj1) { |
093d3ff1 | 2594 | { |
b1fcee84 | 2595 | arg2 = static_cast<wxMediaCtrlPlayerControls >(SWIG_As_int(obj1)); |
9d7dfdff | 2596 | if (SWIG_arg_fail(2)) SWIG_fail; |
093d3ff1 | 2597 | } |
8ac8dba0 RD |
2598 | } |
2599 | { | |
2600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2601 | result = (bool)(arg1)->ShowPlayerControls(arg2); |
8ac8dba0 RD |
2602 | |
2603 | wxPyEndAllowThreads(__tstate); | |
2604 | if (PyErr_Occurred()) SWIG_fail; | |
2605 | } | |
2606 | { | |
9d7dfdff | 2607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
8ac8dba0 RD |
2608 | } |
2609 | return resultobj; | |
2610 | fail: | |
2611 | return NULL; | |
2612 | } | |
2613 | ||
2614 | ||
9d7dfdff | 2615 | static PyObject *_wrap_MediaCtrl_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2616 | PyObject *resultobj = NULL; |
8ac8dba0 | 2617 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
9d7dfdff RD |
2618 | wxString *arg2 = 0 ; |
2619 | bool result; | |
2620 | bool temp2 = false ; | |
8ac8dba0 | 2621 | PyObject * obj0 = 0 ; |
9d7dfdff | 2622 | PyObject * obj1 = 0 ; |
8ac8dba0 | 2623 | char *kwnames[] = { |
9d7dfdff | 2624 | (char *) "self",(char *) "fileName", NULL |
8ac8dba0 RD |
2625 | }; |
2626 | ||
9d7dfdff | 2627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_Load",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
2628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9d7dfdff RD |
2630 | { |
2631 | arg2 = wxString_in_helper(obj1); | |
2632 | if (arg2 == NULL) SWIG_fail; | |
2633 | temp2 = true; | |
2634 | } | |
8ac8dba0 RD |
2635 | { |
2636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2637 | result = (bool)(arg1)->Load((wxString const &)*arg2); |
8ac8dba0 RD |
2638 | |
2639 | wxPyEndAllowThreads(__tstate); | |
2640 | if (PyErr_Occurred()) SWIG_fail; | |
2641 | } | |
2642 | { | |
9d7dfdff RD |
2643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
2644 | } | |
2645 | { | |
2646 | if (temp2) | |
2647 | delete arg2; | |
8ac8dba0 RD |
2648 | } |
2649 | return resultobj; | |
2650 | fail: | |
9d7dfdff RD |
2651 | { |
2652 | if (temp2) | |
2653 | delete arg2; | |
2654 | } | |
8ac8dba0 RD |
2655 | return NULL; |
2656 | } | |
2657 | ||
2658 | ||
9d7dfdff | 2659 | static PyObject *_wrap_MediaCtrl_LoadURI(PyObject *, PyObject *args, PyObject *kwargs) { |
7449af73 | 2660 | PyObject *resultobj = NULL; |
8ac8dba0 | 2661 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
9d7dfdff RD |
2662 | wxString *arg2 = 0 ; |
2663 | bool result; | |
2664 | bool temp2 = false ; | |
8ac8dba0 | 2665 | PyObject * obj0 = 0 ; |
9d7dfdff | 2666 | PyObject * obj1 = 0 ; |
8ac8dba0 | 2667 | char *kwnames[] = { |
9d7dfdff | 2668 | (char *) "self",(char *) "fileName", NULL |
8ac8dba0 RD |
2669 | }; |
2670 | ||
9d7dfdff | 2671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_LoadURI",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
2672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); |
2673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9d7dfdff RD |
2674 | { |
2675 | arg2 = wxString_in_helper(obj1); | |
2676 | if (arg2 == NULL) SWIG_fail; | |
2677 | temp2 = true; | |
2678 | } | |
8ac8dba0 RD |
2679 | { |
2680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9d7dfdff | 2681 | result = (bool)(arg1)->LoadURI((wxString const &)*arg2); |
8ac8dba0 RD |
2682 | |
2683 | wxPyEndAllowThreads(__tstate); | |
2684 | if (PyErr_Occurred()) SWIG_fail; | |
2685 | } | |
2686 | { | |
9d7dfdff RD |
2687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
2688 | } | |
2689 | { | |
2690 | if (temp2) | |
2691 | delete arg2; | |
8ac8dba0 RD |
2692 | } |
2693 | return resultobj; | |
2694 | fail: | |
9d7dfdff RD |
2695 | { |
2696 | if (temp2) | |
2697 | delete arg2; | |
2698 | } | |
2699 | return NULL; | |
2700 | } | |
2701 | ||
2702 | ||
2703 | static PyObject *_wrap_MediaCtrl_LoadURIWithProxy(PyObject *, PyObject *args, PyObject *kwargs) { | |
7449af73 | 2704 | PyObject *resultobj = NULL; |
9d7dfdff RD |
2705 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; |
2706 | wxString *arg2 = 0 ; | |
2707 | wxString *arg3 = 0 ; | |
2708 | bool result; | |
2709 | bool temp2 = false ; | |
2710 | bool temp3 = false ; | |
2711 | PyObject * obj0 = 0 ; | |
2712 | PyObject * obj1 = 0 ; | |
2713 | PyObject * obj2 = 0 ; | |
2714 | char *kwnames[] = { | |
2715 | (char *) "self",(char *) "fileName",(char *) "proxy", NULL | |
2716 | }; | |
2717 | ||
2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MediaCtrl_LoadURIWithProxy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0); | |
2720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2721 | { | |
2722 | arg2 = wxString_in_helper(obj1); | |
2723 | if (arg2 == NULL) SWIG_fail; | |
2724 | temp2 = true; | |
2725 | } | |
2726 | { | |
2727 | arg3 = wxString_in_helper(obj2); | |
2728 | if (arg3 == NULL) SWIG_fail; | |
2729 | temp3 = true; | |
2730 | } | |
2731 | { | |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2733 | result = (bool)(arg1)->LoadURIWithProxy((wxString const &)*arg2,(wxString const &)*arg3); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | { | |
2739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2740 | } | |
2741 | { | |
2742 | if (temp2) | |
2743 | delete arg2; | |
2744 | } | |
2745 | { | |
2746 | if (temp3) | |
2747 | delete arg3; | |
2748 | } | |
2749 | return resultobj; | |
2750 | fail: | |
2751 | { | |
2752 | if (temp2) | |
2753 | delete arg2; | |
2754 | } | |
2755 | { | |
2756 | if (temp3) | |
2757 | delete arg3; | |
2758 | } | |
8ac8dba0 RD |
2759 | return NULL; |
2760 | } | |
2761 | ||
2762 | ||
2763 | static PyObject * MediaCtrl_swigregister(PyObject *, PyObject *args) { | |
2764 | PyObject *obj; | |
2765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2766 | SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl, obj); | |
2767 | Py_INCREF(obj); | |
2768 | return Py_BuildValue((char *)""); | |
2769 | } | |
2770 | static PyMethodDef SwigMethods[] = { | |
093d3ff1 RD |
2771 | { (char *)"new_MediaEvent", (PyCFunction) _wrap_new_MediaEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
2772 | { (char *)"MediaEvent_swigregister", MediaEvent_swigregister, METH_VARARGS, NULL}, | |
2773 | { (char *)"new_MediaCtrl", (PyCFunction) _wrap_new_MediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2774 | { (char *)"new_PreMediaCtrl", (PyCFunction) _wrap_new_PreMediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2775 | { (char *)"MediaCtrl_Create", (PyCFunction) _wrap_MediaCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2776 | { (char *)"MediaCtrl_Play", (PyCFunction) _wrap_MediaCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2777 | { (char *)"MediaCtrl_Pause", (PyCFunction) _wrap_MediaCtrl_Pause, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2778 | { (char *)"MediaCtrl_Stop", (PyCFunction) _wrap_MediaCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
2779 | { (char *)"MediaCtrl_GetState", (PyCFunction) _wrap_MediaCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, |
2780 | { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_GetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2781 | { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_SetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2782 | { (char *)"MediaCtrl_Seek", (PyCFunction) _wrap_MediaCtrl_Seek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2783 | { (char *)"MediaCtrl_Tell", (PyCFunction) _wrap_MediaCtrl_Tell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2784 | { (char *)"MediaCtrl_Length", (PyCFunction) _wrap_MediaCtrl_Length, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff RD |
2785 | { (char *)"MediaCtrl_GetVolume", (PyCFunction) _wrap_MediaCtrl_GetVolume, METH_VARARGS | METH_KEYWORDS, NULL}, |
2786 | { (char *)"MediaCtrl_SetVolume", (PyCFunction) _wrap_MediaCtrl_SetVolume, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2787 | { (char *)"MediaCtrl_ShowPlayerControls", (PyCFunction) _wrap_MediaCtrl_ShowPlayerControls, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2788 | { (char *)"MediaCtrl_Load", (PyCFunction) _wrap_MediaCtrl_Load, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2789 | { (char *)"MediaCtrl_LoadURI", (PyCFunction) _wrap_MediaCtrl_LoadURI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
2790 | { (char *)"MediaCtrl_LoadURIWithProxy", (PyCFunction) _wrap_MediaCtrl_LoadURIWithProxy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 2791 | { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister, METH_VARARGS, NULL}, |
8ac8dba0 RD |
2792 | { NULL, NULL, 0, NULL } |
2793 | }; | |
2794 | ||
2795 | ||
2796 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
2797 | ||
093d3ff1 RD |
2798 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
2799 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
8ac8dba0 | 2800 | } |
093d3ff1 RD |
2801 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
2802 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
8ac8dba0 RD |
2803 | } |
2804 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
2805 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
2806 | } | |
2807 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
2808 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
2809 | } | |
2810 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
2811 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
2812 | } | |
2813 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
2814 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
2815 | } | |
2816 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
2817 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
2818 | } | |
2819 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
2820 | return (void *)((wxObject *) ((wxSizer *) x)); | |
2821 | } | |
2822 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
2823 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
2824 | } | |
2825 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
2826 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2827 | } | |
2828 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
2829 | return (void *)((wxObject *) ((wxEvent *) x)); | |
2830 | } | |
2831 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
2832 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
2833 | } | |
2834 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
2835 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
2836 | } | |
2837 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
2838 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
2839 | } | |
2840 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
2841 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
2842 | } | |
2843 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
2844 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
2845 | } | |
2846 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
2847 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
2848 | } | |
2849 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
2850 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
2851 | } | |
2852 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
2853 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
2854 | } | |
2855 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
2856 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
2857 | } | |
2858 | static void *_p_wxMediaCtrlTo_p_wxObject(void *x) { | |
2859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxMediaCtrl *) x)); | |
2860 | } | |
2861 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
2862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
2863 | } | |
2864 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
2865 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
2866 | } | |
8ac8dba0 RD |
2867 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
2868 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
2869 | } | |
51b83b37 RD |
2870 | static void *_p_wxMediaEventTo_p_wxObject(void *x) { |
2871 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x)); | |
2872 | } | |
8ac8dba0 RD |
2873 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
2874 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
2875 | } | |
2876 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
2877 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
2878 | } | |
2879 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
2880 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2881 | } | |
2882 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
2883 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
2884 | } | |
2885 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
2886 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
2887 | } | |
53aa7709 RD |
2888 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
2889 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
2890 | } | |
8ac8dba0 RD |
2891 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
2892 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
2893 | } | |
2894 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
2895 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2896 | } | |
2897 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
2898 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
2899 | } | |
2900 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
2901 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
2902 | } | |
2903 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
2904 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
2905 | } | |
2906 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
2907 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
2908 | } | |
2909 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
2910 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
2911 | } | |
2912 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
2913 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
2914 | } | |
8ac8dba0 RD |
2915 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
2916 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
2917 | } | |
2918 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
2919 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
2920 | } | |
2921 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
2922 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
2923 | } | |
2924 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
2925 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
2926 | } | |
2927 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
2928 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
2929 | } | |
2930 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
2931 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
2932 | } | |
2933 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
2934 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
2935 | } | |
2936 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
2937 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
2938 | } | |
2939 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
2940 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
2941 | } | |
9d7dfdff RD |
2942 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
2943 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
2944 | } | |
8ac8dba0 RD |
2945 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
2946 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
2947 | } | |
9d7dfdff RD |
2948 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
2949 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
2950 | } | |
8ac8dba0 RD |
2951 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
2952 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
2953 | } | |
2954 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
2955 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
2956 | } | |
51b83b37 RD |
2957 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
2958 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
2959 | } | |
8ac8dba0 RD |
2960 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
2961 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
2962 | } | |
2963 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
2964 | return (void *)((wxObject *) ((wxImage *) x)); | |
2965 | } | |
2966 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
2967 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
2968 | } | |
2969 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
2970 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2971 | } | |
2972 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
2973 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
2974 | } | |
2975 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
2976 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
2977 | } | |
2978 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
2979 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
2980 | } | |
2981 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
2982 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
2983 | } | |
2984 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
2985 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
2986 | } | |
2987 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
2988 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
2989 | } | |
2990 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
2991 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2992 | } | |
2993 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
2994 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
2995 | } | |
2996 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
2997 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
2998 | } | |
2999 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
3000 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
3001 | } | |
3002 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
3003 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
3004 | } | |
3005 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
3006 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
3007 | } | |
3008 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
3009 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
3010 | } | |
3011 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
3012 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
3013 | } | |
3014 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
3015 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
3016 | } | |
3017 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
3018 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
3019 | } | |
3020 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
3021 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
3022 | } | |
3023 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
3024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
3025 | } | |
3026 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
3027 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
3028 | } | |
3029 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
3030 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
3031 | } | |
093d3ff1 RD |
3032 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
3033 | return (void *)((wxWindow *) ((wxControl *) x)); | |
3034 | } | |
3035 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
3036 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
3037 | } | |
3038 | static void *_p_wxMediaCtrlTo_p_wxWindow(void *x) { | |
3039 | return (void *)((wxWindow *) (wxControl *) ((wxMediaCtrl *) x)); | |
3040 | } | |
3041 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
3042 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
3043 | } | |
3044 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
3045 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
3046 | } | |
3047 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
3048 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
3049 | } | |
3050 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
3051 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
3052 | } | |
3053 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
3054 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
3055 | } | |
53aa7709 RD |
3056 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
3057 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
3058 | } | |
093d3ff1 RD |
3059 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
3060 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
3061 | } | |
3062 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
3063 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
3064 | } | |
3065 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
3066 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
3067 | } | |
3068 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
3069 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
3070 | } | |
3071 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
3072 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
3073 | } | |
3074 | static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x) { | |
3075 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxMediaEvent *) x)); | |
3076 | } | |
8ac8dba0 RD |
3077 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
3078 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
3079 | } | |
3080 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
3081 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
3082 | } | |
3083 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
3084 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
3085 | } | |
3086 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
3087 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
3088 | } | |
3089 | static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x) { | |
3090 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxMediaCtrl *) x)); | |
3091 | } | |
3092 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
3093 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
3094 | } | |
3095 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
3096 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
3097 | } | |
3098 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
3099 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
3100 | } | |
3101 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
3102 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
3103 | } | |
8ac8dba0 RD |
3104 | static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x) { |
3105 | return (void *)((wxNotifyEvent *) ((wxMediaEvent *) x)); | |
3106 | } | |
093d3ff1 RD |
3107 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
3108 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
8ac8dba0 | 3109 | } |
093d3ff1 RD |
3110 | static void *_p_wxMediaCtrlTo_p_wxControl(void *x) { |
3111 | return (void *)((wxControl *) ((wxMediaCtrl *) x)); | |
8ac8dba0 | 3112 | } |
093d3ff1 RD |
3113 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
3114 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
8ac8dba0 | 3115 | } |
093d3ff1 RD |
3116 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { |
3117 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
8ac8dba0 | 3118 | } |
093d3ff1 RD |
3119 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { |
3120 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
8ac8dba0 | 3121 | } |
093d3ff1 RD |
3122 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { |
3123 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
8ac8dba0 | 3124 | } |
093d3ff1 RD |
3125 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { |
3126 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
8ac8dba0 | 3127 | } |
093d3ff1 RD |
3128 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { |
3129 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
8ac8dba0 | 3130 | } |
093d3ff1 RD |
3131 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { |
3132 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
3133 | } | |
3134 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
3135 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
3136 | } | |
3137 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
3138 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
3139 | } | |
3140 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
3141 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
3142 | } | |
3143 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
3144 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
3145 | } | |
3146 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
3147 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
3148 | } | |
3149 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
3150 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
3151 | } | |
3152 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
3153 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
3154 | } | |
3155 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
3156 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
3157 | } | |
3158 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
3159 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
3160 | } | |
3161 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
3162 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
3163 | } | |
3164 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
3165 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
3166 | } | |
53aa7709 RD |
3167 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
3168 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
3169 | } | |
093d3ff1 RD |
3170 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
3171 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
3172 | } | |
3173 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
3174 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
3175 | } | |
3176 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
3177 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
3178 | } | |
3179 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
3180 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
3181 | } | |
3182 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
3183 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
3184 | } | |
3185 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
3186 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
3187 | } | |
3188 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
3189 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
3190 | } | |
3191 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
3192 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
3193 | } | |
3194 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
3195 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
3196 | } | |
3197 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
3198 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
3199 | } | |
3200 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
3201 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
3202 | } | |
3203 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
3204 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
3205 | } | |
3206 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
3207 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
3208 | } | |
3209 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
3210 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
3211 | } | |
3212 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
3213 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
3214 | } | |
3215 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
3216 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
3217 | } | |
3218 | static void *_p_wxMediaEventTo_p_wxEvent(void *x) { | |
3219 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x)); | |
3220 | } | |
3221 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
3222 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
8ac8dba0 | 3223 | } |
7449af73 RD |
3224 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; |
3225 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
3226 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0}; | |
3227 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
3228 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
3229 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
3230 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0}; | |
3231 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
3232 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
3233 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
3234 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
3235 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
3236 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
3237 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
3238 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
3239 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0}; | |
3240 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0}; | |
3241 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
3242 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0}; | |
3243 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
3244 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
3245 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0}; | |
3246 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
3247 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
3248 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
3249 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
3250 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
3251 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
3252 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
3253 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
3254 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
3255 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
3256 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
3257 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
3258 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
3259 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; | |
3260 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; | |
3261 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
3262 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; | |
3263 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
3264 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
3265 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
3266 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
3267 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0}; | |
3268 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
3269 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
3270 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
3271 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
3272 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
3273 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
3274 | static swig_type_info _swigt__p_wxFileOffset = {"_p_wxFileOffset", "wxFileOffset *", 0, 0, 0}; | |
3275 | static swig_type_info _swigt__p_wxMediaCtrl = {"_p_wxMediaCtrl", "wxMediaCtrl *", 0, 0, 0}; | |
7449af73 RD |
3276 | static swig_type_info _swigt__p_wxMediaEvent = {"_p_wxMediaEvent", "wxMediaEvent *", 0, 0, 0}; |
3277 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, 0}; | |
3278 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
3279 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
3280 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
3281 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
3282 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
3283 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
3284 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
3285 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
3286 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
3287 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
3288 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
3289 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
3290 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
3291 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
3292 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
3293 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
3294 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
3295 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
3296 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
3297 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
3298 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
3299 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
3300 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
3301 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; | |
3302 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; | |
3303 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
3304 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
3305 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; | |
3306 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
3307 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
3308 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
3309 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
3310 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, 0}; | |
3311 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
3312 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
3313 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
3314 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
3315 | ||
3316 | static swig_type_info *swig_type_initial[] = { | |
3317 | &_swigt__p_char, | |
3318 | &_swigt__p_form_ops_t, | |
3319 | &_swigt__p_int, | |
3320 | &_swigt__p_unsigned_char, | |
3321 | &_swigt__p_unsigned_int, | |
3322 | &_swigt__p_unsigned_long, | |
3323 | &_swigt__p_wxANIHandler, | |
3324 | &_swigt__p_wxAcceleratorTable, | |
3325 | &_swigt__p_wxActivateEvent, | |
3326 | &_swigt__p_wxBMPHandler, | |
3327 | &_swigt__p_wxBoxSizer, | |
3328 | &_swigt__p_wxCURHandler, | |
3329 | &_swigt__p_wxChildFocusEvent, | |
3330 | &_swigt__p_wxCloseEvent, | |
3331 | &_swigt__p_wxCommandEvent, | |
3332 | &_swigt__p_wxContextMenuEvent, | |
3333 | &_swigt__p_wxControl, | |
3334 | &_swigt__p_wxControlWithItems, | |
3335 | &_swigt__p_wxDateEvent, | |
3336 | &_swigt__p_wxDisplayChangedEvent, | |
3337 | &_swigt__p_wxDropFilesEvent, | |
3338 | &_swigt__p_wxDuplexMode, | |
3339 | &_swigt__p_wxEraseEvent, | |
3340 | &_swigt__p_wxEvent, | |
3341 | &_swigt__p_wxEvtHandler, | |
3342 | &_swigt__p_wxFSFile, | |
3343 | &_swigt__p_wxFileOffset, | |
3344 | &_swigt__p_wxFileSystem, | |
3345 | &_swigt__p_wxFlexGridSizer, | |
3346 | &_swigt__p_wxFocusEvent, | |
3347 | &_swigt__p_wxGBSizerItem, | |
3348 | &_swigt__p_wxGIFHandler, | |
3349 | &_swigt__p_wxGridBagSizer, | |
3350 | &_swigt__p_wxGridSizer, | |
3351 | &_swigt__p_wxICOHandler, | |
3352 | &_swigt__p_wxIconizeEvent, | |
3353 | &_swigt__p_wxIdleEvent, | |
3354 | &_swigt__p_wxImage, | |
3355 | &_swigt__p_wxImageHandler, | |
3356 | &_swigt__p_wxIndividualLayoutConstraint, | |
3357 | &_swigt__p_wxInitDialogEvent, | |
3358 | &_swigt__p_wxJPEGHandler, | |
3359 | &_swigt__p_wxKeyEvent, | |
3360 | &_swigt__p_wxLayoutConstraints, | |
3361 | &_swigt__p_wxMaximizeEvent, | |
3362 | &_swigt__p_wxMediaCtrl, | |
7449af73 RD |
3363 | &_swigt__p_wxMediaEvent, |
3364 | &_swigt__p_wxMenu, | |
3365 | &_swigt__p_wxMenuBar, | |
3366 | &_swigt__p_wxMenuEvent, | |
3367 | &_swigt__p_wxMenuItem, | |
3368 | &_swigt__p_wxMouseCaptureChangedEvent, | |
3369 | &_swigt__p_wxMouseEvent, | |
3370 | &_swigt__p_wxMoveEvent, | |
3371 | &_swigt__p_wxNavigationKeyEvent, | |
3372 | &_swigt__p_wxNcPaintEvent, | |
3373 | &_swigt__p_wxNotifyEvent, | |
3374 | &_swigt__p_wxObject, | |
3375 | &_swigt__p_wxPCXHandler, | |
3376 | &_swigt__p_wxPNGHandler, | |
3377 | &_swigt__p_wxPNMHandler, | |
3378 | &_swigt__p_wxPaintEvent, | |
3379 | &_swigt__p_wxPaletteChangedEvent, | |
3380 | &_swigt__p_wxPaperSize, | |
3381 | &_swigt__p_wxPyApp, | |
3382 | &_swigt__p_wxPyCommandEvent, | |
3383 | &_swigt__p_wxPyEvent, | |
3384 | &_swigt__p_wxPyImageHandler, | |
3385 | &_swigt__p_wxPySizer, | |
3386 | &_swigt__p_wxPyValidator, | |
3387 | &_swigt__p_wxQueryNewPaletteEvent, | |
3388 | &_swigt__p_wxScrollEvent, | |
3389 | &_swigt__p_wxScrollWinEvent, | |
3390 | &_swigt__p_wxSetCursorEvent, | |
3391 | &_swigt__p_wxShowEvent, | |
3392 | &_swigt__p_wxSizeEvent, | |
3393 | &_swigt__p_wxSizer, | |
3394 | &_swigt__p_wxSizerItem, | |
3395 | &_swigt__p_wxStaticBoxSizer, | |
3396 | &_swigt__p_wxStdDialogButtonSizer, | |
3397 | &_swigt__p_wxSysColourChangedEvent, | |
3398 | &_swigt__p_wxTIFFHandler, | |
3399 | &_swigt__p_wxUpdateUIEvent, | |
3400 | &_swigt__p_wxValidator, | |
3401 | &_swigt__p_wxWindow, | |
3402 | &_swigt__p_wxWindowCreateEvent, | |
3403 | &_swigt__p_wxWindowDestroyEvent, | |
3404 | &_swigt__p_wxXPMHandler, | |
3405 | &_swigt__ptrdiff_t, | |
3406 | &_swigt__std__ptrdiff_t, | |
3407 | &_swigt__unsigned_int, | |
3408 | }; | |
3409 | ||
3410 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
3411 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
3412 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
3413 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
3414 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
3415 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
3416 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3417 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3418 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3419 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3420 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3421 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3422 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3423 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3424 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; | |
3425 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
3426 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxMediaCtrl, _p_wxMediaCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}}; | |
3427 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
3428 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3429 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3430 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3431 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3432 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3433 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3434 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3435 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3436 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3437 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3438 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3439 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3440 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3441 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3442 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3443 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3444 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3445 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3446 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3447 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3448 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3449 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3450 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3451 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3452 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3453 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
3454 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; | |
3455 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
3456 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
3457 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
3458 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
3459 | 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_wxMediaCtrl, _p_wxMediaCtrlTo_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}}; | |
3460 | static swig_cast_info _swigc__p_wxFileOffset[] = { {&_swigt__p_wxFileOffset, 0, 0, 0},{0, 0, 0, 0}}; | |
3461 | static swig_cast_info _swigc__p_wxMediaCtrl[] = { {&_swigt__p_wxMediaCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
3462 | static swig_cast_info _swigc__p_wxMediaEvent[] = { {&_swigt__p_wxMediaEvent, 0, 0, 0},{0, 0, 0, 0}}; |
3463 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxNotifyEvent, 0, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_p_wxNotifyEvent, 0, 0},{0, 0, 0, 0}}; | |
3464 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
3465 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
3466 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
3467 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
3468 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3469 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3470 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3471 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3472 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3473 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3474 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
3475 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3476 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
3477 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3478 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3479 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3480 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3481 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3482 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3483 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3484 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3485 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3486 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3487 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3488 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3489 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
3490 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
3491 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
3492 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
3493 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
3494 | 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_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_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_wxMediaCtrl, _p_wxMediaCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_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_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_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_wxPNMHandler, _p_wxPNMHandlerTo_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_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_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_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_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_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_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}}; | |
3495 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
3496 | static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}}; | |
3497 | 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_wxMediaCtrl, _p_wxMediaCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
3498 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
3499 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
3500 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
3501 | ||
3502 | static swig_cast_info *swig_cast_initial[] = { | |
3503 | _swigc__p_char, | |
3504 | _swigc__p_form_ops_t, | |
3505 | _swigc__p_int, | |
3506 | _swigc__p_unsigned_char, | |
3507 | _swigc__p_unsigned_int, | |
3508 | _swigc__p_unsigned_long, | |
3509 | _swigc__p_wxANIHandler, | |
3510 | _swigc__p_wxAcceleratorTable, | |
3511 | _swigc__p_wxActivateEvent, | |
3512 | _swigc__p_wxBMPHandler, | |
3513 | _swigc__p_wxBoxSizer, | |
3514 | _swigc__p_wxCURHandler, | |
3515 | _swigc__p_wxChildFocusEvent, | |
3516 | _swigc__p_wxCloseEvent, | |
3517 | _swigc__p_wxCommandEvent, | |
3518 | _swigc__p_wxContextMenuEvent, | |
3519 | _swigc__p_wxControl, | |
3520 | _swigc__p_wxControlWithItems, | |
3521 | _swigc__p_wxDateEvent, | |
3522 | _swigc__p_wxDisplayChangedEvent, | |
3523 | _swigc__p_wxDropFilesEvent, | |
3524 | _swigc__p_wxDuplexMode, | |
3525 | _swigc__p_wxEraseEvent, | |
3526 | _swigc__p_wxEvent, | |
3527 | _swigc__p_wxEvtHandler, | |
3528 | _swigc__p_wxFSFile, | |
3529 | _swigc__p_wxFileOffset, | |
3530 | _swigc__p_wxFileSystem, | |
3531 | _swigc__p_wxFlexGridSizer, | |
3532 | _swigc__p_wxFocusEvent, | |
3533 | _swigc__p_wxGBSizerItem, | |
3534 | _swigc__p_wxGIFHandler, | |
3535 | _swigc__p_wxGridBagSizer, | |
3536 | _swigc__p_wxGridSizer, | |
3537 | _swigc__p_wxICOHandler, | |
3538 | _swigc__p_wxIconizeEvent, | |
3539 | _swigc__p_wxIdleEvent, | |
3540 | _swigc__p_wxImage, | |
3541 | _swigc__p_wxImageHandler, | |
3542 | _swigc__p_wxIndividualLayoutConstraint, | |
3543 | _swigc__p_wxInitDialogEvent, | |
3544 | _swigc__p_wxJPEGHandler, | |
3545 | _swigc__p_wxKeyEvent, | |
3546 | _swigc__p_wxLayoutConstraints, | |
3547 | _swigc__p_wxMaximizeEvent, | |
3548 | _swigc__p_wxMediaCtrl, | |
7449af73 RD |
3549 | _swigc__p_wxMediaEvent, |
3550 | _swigc__p_wxMenu, | |
3551 | _swigc__p_wxMenuBar, | |
3552 | _swigc__p_wxMenuEvent, | |
3553 | _swigc__p_wxMenuItem, | |
3554 | _swigc__p_wxMouseCaptureChangedEvent, | |
3555 | _swigc__p_wxMouseEvent, | |
3556 | _swigc__p_wxMoveEvent, | |
3557 | _swigc__p_wxNavigationKeyEvent, | |
3558 | _swigc__p_wxNcPaintEvent, | |
3559 | _swigc__p_wxNotifyEvent, | |
3560 | _swigc__p_wxObject, | |
3561 | _swigc__p_wxPCXHandler, | |
3562 | _swigc__p_wxPNGHandler, | |
3563 | _swigc__p_wxPNMHandler, | |
3564 | _swigc__p_wxPaintEvent, | |
3565 | _swigc__p_wxPaletteChangedEvent, | |
3566 | _swigc__p_wxPaperSize, | |
3567 | _swigc__p_wxPyApp, | |
3568 | _swigc__p_wxPyCommandEvent, | |
3569 | _swigc__p_wxPyEvent, | |
3570 | _swigc__p_wxPyImageHandler, | |
3571 | _swigc__p_wxPySizer, | |
3572 | _swigc__p_wxPyValidator, | |
3573 | _swigc__p_wxQueryNewPaletteEvent, | |
3574 | _swigc__p_wxScrollEvent, | |
3575 | _swigc__p_wxScrollWinEvent, | |
3576 | _swigc__p_wxSetCursorEvent, | |
3577 | _swigc__p_wxShowEvent, | |
3578 | _swigc__p_wxSizeEvent, | |
3579 | _swigc__p_wxSizer, | |
3580 | _swigc__p_wxSizerItem, | |
3581 | _swigc__p_wxStaticBoxSizer, | |
3582 | _swigc__p_wxStdDialogButtonSizer, | |
3583 | _swigc__p_wxSysColourChangedEvent, | |
3584 | _swigc__p_wxTIFFHandler, | |
3585 | _swigc__p_wxUpdateUIEvent, | |
3586 | _swigc__p_wxValidator, | |
3587 | _swigc__p_wxWindow, | |
3588 | _swigc__p_wxWindowCreateEvent, | |
3589 | _swigc__p_wxWindowDestroyEvent, | |
3590 | _swigc__p_wxXPMHandler, | |
3591 | _swigc__ptrdiff_t, | |
3592 | _swigc__std__ptrdiff_t, | |
3593 | _swigc__unsigned_int, | |
8ac8dba0 RD |
3594 | }; |
3595 | ||
3596 | ||
3597 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
3598 | ||
3599 | static swig_const_info swig_const_table[] = { | |
3600 | {0, 0, 0, 0.0, 0, 0}}; | |
3601 | ||
3602 | #ifdef __cplusplus | |
3603 | } | |
3604 | #endif | |
7449af73 RD |
3605 | /************************************************************************* |
3606 | * Type initialization: | |
3607 | * This problem is tough by the requirement that no dynamic | |
3608 | * memory is used. Also, since swig_type_info structures store pointers to | |
3609 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
3610 | * to swig_type_info structures, we need some lookup code at initialization. | |
3611 | * The idea is that swig generates all the structures that are needed. | |
3612 | * The runtime then collects these partially filled structures. | |
3613 | * The SWIG_InitializeModule function takes these initial arrays out of | |
3614 | * swig_module, and does all the lookup, filling in the swig_module.types | |
3615 | * array with the correct data and linking the correct swig_cast_info | |
3616 | * structures together. | |
3617 | ||
3618 | * The generated swig_type_info structures are assigned staticly to an initial | |
3619 | * array. We just loop though that array, and handle each type individually. | |
3620 | * First we lookup if this type has been already loaded, and if so, use the | |
3621 | * loaded structure instead of the generated one. Then we have to fill in the | |
3622 | * cast linked list. The cast data is initially stored in something like a | |
3623 | * two-dimensional array. Each row corresponds to a type (there are the same | |
3624 | * number of rows as there are in the swig_type_initial array). Each entry in | |
3625 | * a column is one of the swig_cast_info structures for that type. | |
3626 | * The cast_initial array is actually an array of arrays, because each row has | |
3627 | * a variable number of columns. So to actually build the cast linked list, | |
3628 | * we find the array of casts associated with the type, and loop through it | |
3629 | * adding the casts to the list. The one last trick we need to do is making | |
3630 | * sure the type pointer in the swig_cast_info struct is correct. | |
3631 | ||
3632 | * First off, we lookup the cast->type name to see if it is already loaded. | |
3633 | * There are three cases to handle: | |
3634 | * 1) If the cast->type has already been loaded AND the type we are adding | |
3635 | * casting info to has not been loaded (it is in this module), THEN we | |
3636 | * replace the cast->type pointer with the type pointer that has already | |
3637 | * been loaded. | |
3638 | * 2) If BOTH types (the one we are adding casting info to, and the | |
3639 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
3640 | * the previous module so we just ignore it. | |
3641 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
3642 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
3643 | * be correct. | |
3644 | **/ | |
3645 | ||
3646 | #ifdef __cplusplus | |
3647 | extern "C" { | |
3648 | #if 0 | |
3649 | } /* c-mode */ | |
3650 | #endif | |
3651 | #endif | |
3652 | ||
3653 | #if 0 | |
3654 | #define SWIGRUNTIME_DEBUG | |
3655 | #endif | |
3656 | ||
3657 | SWIGRUNTIME void | |
3658 | SWIG_InitializeModule(void *clientdata) { | |
3659 | size_t i; | |
3660 | swig_module_info *module_head; | |
3661 | static int init_run = 0; | |
3662 | ||
3663 | clientdata = clientdata; | |
3664 | ||
3665 | if (init_run) return; | |
3666 | init_run = 1; | |
3667 | ||
3668 | /* Initialize the swig_module */ | |
3669 | swig_module.type_initial = swig_type_initial; | |
3670 | swig_module.cast_initial = swig_cast_initial; | |
3671 | ||
3672 | /* Try and load any already created modules */ | |
3673 | module_head = SWIG_GetModule(clientdata); | |
3674 | if (module_head) { | |
3675 | swig_module.next = module_head->next; | |
3676 | module_head->next = &swig_module; | |
3677 | } else { | |
3678 | /* This is the first module loaded */ | |
3679 | swig_module.next = &swig_module; | |
3680 | SWIG_SetModule(clientdata, &swig_module); | |
3681 | } | |
3682 | ||
3683 | /* Now work on filling in swig_module.types */ | |
3684 | #ifdef SWIGRUNTIME_DEBUG | |
3685 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
3686 | #endif | |
3687 | for (i = 0; i < swig_module.size; ++i) { | |
3688 | swig_type_info *type = 0; | |
3689 | swig_type_info *ret; | |
3690 | swig_cast_info *cast; | |
3691 | ||
3692 | #ifdef SWIGRUNTIME_DEBUG | |
3693 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
3694 | #endif | |
3695 | ||
3696 | /* if there is another module already loaded */ | |
3697 | if (swig_module.next != &swig_module) { | |
3698 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
3699 | } | |
3700 | if (type) { | |
3701 | /* Overwrite clientdata field */ | |
3702 | #ifdef SWIGRUNTIME_DEBUG | |
3703 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
3704 | #endif | |
3705 | if (swig_module.type_initial[i]->clientdata) { | |
3706 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
3707 | #ifdef SWIGRUNTIME_DEBUG | |
3708 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
3709 | #endif | |
3710 | } | |
3711 | } else { | |
3712 | type = swig_module.type_initial[i]; | |
3713 | } | |
3714 | ||
3715 | /* Insert casting types */ | |
3716 | cast = swig_module.cast_initial[i]; | |
3717 | while (cast->type) { | |
3718 | /* Don't need to add information already in the list */ | |
3719 | ret = 0; | |
3720 | #ifdef SWIGRUNTIME_DEBUG | |
3721 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
3722 | #endif | |
3723 | if (swig_module.next != &swig_module) { | |
3724 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
3725 | #ifdef SWIGRUNTIME_DEBUG | |
3726 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
3727 | #endif | |
3728 | } | |
3729 | if (ret) { | |
3730 | if (type == swig_module.type_initial[i]) { | |
3731 | #ifdef SWIGRUNTIME_DEBUG | |
3732 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
3733 | #endif | |
3734 | cast->type = ret; | |
3735 | ret = 0; | |
3736 | } else { | |
3737 | /* Check for casting already in the list */ | |
3738 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
3739 | #ifdef SWIGRUNTIME_DEBUG | |
3740 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
3741 | #endif | |
3742 | if (!ocast) ret = 0; | |
3743 | } | |
3744 | } | |
3745 | ||
3746 | if (!ret) { | |
3747 | #ifdef SWIGRUNTIME_DEBUG | |
3748 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
3749 | #endif | |
3750 | if (type->cast) { | |
3751 | type->cast->prev = cast; | |
3752 | cast->next = type->cast; | |
3753 | } | |
3754 | type->cast = cast; | |
3755 | } | |
3756 | cast++; | |
3757 | } | |
3758 | /* Set entry in modules->types array equal to the type */ | |
3759 | swig_module.types[i] = type; | |
3760 | } | |
3761 | swig_module.types[i] = 0; | |
3762 | ||
3763 | #ifdef SWIGRUNTIME_DEBUG | |
3764 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
3765 | for (i = 0; i < swig_module.size; ++i) { | |
3766 | int j = 0; | |
3767 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
3768 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
3769 | while (cast->type) { | |
3770 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
3771 | cast++; | |
3772 | ++j; | |
3773 | } | |
3774 | printf("---- Total casts: %d\n",j); | |
3775 | } | |
3776 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
3777 | #endif | |
3778 | } | |
3779 | ||
3780 | /* This function will propagate the clientdata field of type to | |
3781 | * any new swig_type_info structures that have been added into the list | |
3782 | * of equivalent types. It is like calling | |
3783 | * SWIG_TypeClientData(type, clientdata) a second time. | |
3784 | */ | |
3785 | SWIGRUNTIME void | |
3786 | SWIG_PropagateClientData(void) { | |
3787 | size_t i; | |
3788 | swig_cast_info *equiv; | |
3789 | static int init_run = 0; | |
3790 | ||
3791 | if (init_run) return; | |
3792 | init_run = 1; | |
3793 | ||
3794 | for (i = 0; i < swig_module.size; i++) { | |
3795 | if (swig_module.types[i]->clientdata) { | |
3796 | equiv = swig_module.types[i]->cast; | |
3797 | while (equiv) { | |
3798 | if (!equiv->converter) { | |
3799 | if (equiv->type && !equiv->type->clientdata) | |
3800 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
3801 | } | |
3802 | equiv = equiv->next; | |
3803 | } | |
3804 | } | |
3805 | } | |
3806 | } | |
3807 | ||
3808 | #ifdef __cplusplus | |
3809 | #if 0 | |
3810 | { | |
3811 | /* c-mode */ | |
3812 | #endif | |
3813 | } | |
3814 | #endif | |
3815 | ||
8ac8dba0 | 3816 | |
093d3ff1 RD |
3817 | |
3818 | #ifdef __cplusplus | |
3819 | extern "C" { | |
3820 | #endif | |
3821 | ||
3822 | /* Python-specific SWIG API */ | |
3823 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
3824 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
3825 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
3826 | ||
3827 | /* ----------------------------------------------------------------------------- | |
3828 | * global variable support code. | |
3829 | * ----------------------------------------------------------------------------- */ | |
3830 | ||
3831 | typedef struct swig_globalvar { | |
3832 | char *name; /* Name of global variable */ | |
7449af73 | 3833 | PyObject *(*get_attr)(void); /* Return the current value */ |
093d3ff1 RD |
3834 | int (*set_attr)(PyObject *); /* Set the value */ |
3835 | struct swig_globalvar *next; | |
3836 | } swig_globalvar; | |
3837 | ||
3838 | typedef struct swig_varlinkobject { | |
3839 | PyObject_HEAD | |
3840 | swig_globalvar *vars; | |
3841 | } swig_varlinkobject; | |
3842 | ||
7449af73 | 3843 | SWIGINTERN PyObject * |
093d3ff1 RD |
3844 | swig_varlink_repr(swig_varlinkobject *v) { |
3845 | v = v; | |
3846 | return PyString_FromString("<Swig global variables>"); | |
3847 | } | |
3848 | ||
7449af73 | 3849 | SWIGINTERN int |
093d3ff1 RD |
3850 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
3851 | swig_globalvar *var; | |
3852 | flags = flags; | |
3853 | fprintf(fp,"Swig global variables { "); | |
3854 | for (var = v->vars; var; var=var->next) { | |
3855 | fprintf(fp,"%s", var->name); | |
3856 | if (var->next) fprintf(fp,", "); | |
3857 | } | |
3858 | fprintf(fp," }\n"); | |
3859 | return 0; | |
3860 | } | |
3861 | ||
7449af73 | 3862 | SWIGINTERN PyObject * |
093d3ff1 RD |
3863 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
3864 | swig_globalvar *var = v->vars; | |
3865 | while (var) { | |
3866 | if (strcmp(var->name,n) == 0) { | |
3867 | return (*var->get_attr)(); | |
3868 | } | |
3869 | var = var->next; | |
3870 | } | |
3871 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
3872 | return NULL; | |
3873 | } | |
3874 | ||
7449af73 | 3875 | SWIGINTERN int |
093d3ff1 RD |
3876 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
3877 | swig_globalvar *var = v->vars; | |
3878 | while (var) { | |
3879 | if (strcmp(var->name,n) == 0) { | |
3880 | return (*var->set_attr)(p); | |
3881 | } | |
3882 | var = var->next; | |
3883 | } | |
3884 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
3885 | return 1; | |
3886 | } | |
3887 | ||
7449af73 RD |
3888 | SWIGINTERN PyTypeObject* |
3889 | swig_varlink_type(void) { | |
3890 | static char varlink__doc__[] = "Swig var link object"; | |
3891 | static PyTypeObject varlink_type | |
3892 | #if !defined(__cplusplus) | |
3893 | ; | |
3894 | static int type_init = 0; | |
3895 | if (!type_init) { | |
3896 | PyTypeObject tmp | |
3897 | #endif | |
3898 | = { | |
3899 | PyObject_HEAD_INIT(&PyType_Type) | |
3900 | 0, /* Number of items in variable part (ob_size) */ | |
3901 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
3902 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
3903 | 0, /* Itemsize (tp_itemsize) */ | |
3904 | 0, /* Deallocator (tp_dealloc) */ | |
3905 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
3906 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
3907 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
3908 | 0, /* tp_compare */ | |
3909 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
3910 | 0, /* tp_as_number */ | |
3911 | 0, /* tp_as_sequence */ | |
3912 | 0, /* tp_as_mapping */ | |
3913 | 0, /* tp_hash */ | |
3914 | 0, /* tp_call */ | |
3915 | 0, /* tp_str */ | |
3916 | 0, /* tp_getattro */ | |
3917 | 0, /* tp_setattro */ | |
3918 | 0, /* tp_as_buffer */ | |
3919 | 0, /* tp_flags */ | |
3920 | varlink__doc__, /* tp_doc */ | |
093d3ff1 | 3921 | #if PY_VERSION_HEX >= 0x02000000 |
7449af73 RD |
3922 | 0, /* tp_traverse */ |
3923 | 0, /* tp_clear */ | |
093d3ff1 RD |
3924 | #endif |
3925 | #if PY_VERSION_HEX >= 0x02010000 | |
7449af73 RD |
3926 | 0, /* tp_richcompare */ |
3927 | 0, /* tp_weaklistoffset */ | |
093d3ff1 RD |
3928 | #endif |
3929 | #if PY_VERSION_HEX >= 0x02020000 | |
7449af73 | 3930 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
093d3ff1 RD |
3931 | #endif |
3932 | #if PY_VERSION_HEX >= 0x02030000 | |
7449af73 | 3933 | 0, /* tp_del */ |
093d3ff1 RD |
3934 | #endif |
3935 | #ifdef COUNT_ALLOCS | |
7449af73 | 3936 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 3937 | #endif |
7449af73 RD |
3938 | }; |
3939 | #if !defined(__cplusplus) | |
3940 | varlink_type = tmp; | |
3941 | type_init = 1; | |
3942 | } | |
3943 | #endif | |
3944 | return &varlink_type; | |
3945 | } | |
093d3ff1 RD |
3946 | |
3947 | /* Create a variable linking object for use later */ | |
7449af73 | 3948 | SWIGINTERN PyObject * |
093d3ff1 | 3949 | SWIG_Python_newvarlink(void) { |
7449af73 RD |
3950 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
3951 | if (result) { | |
3952 | result->vars = 0; | |
3953 | } | |
093d3ff1 RD |
3954 | return ((PyObject*) result); |
3955 | } | |
3956 | ||
7449af73 | 3957 | SWIGINTERN void |
093d3ff1 | 3958 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
7449af73 RD |
3959 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
3960 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
3961 | if (gv) { | |
3962 | size_t size = strlen(name)+1; | |
3963 | gv->name = (char *)malloc(size); | |
3964 | if (gv->name) { | |
3965 | strncpy(gv->name,name,size); | |
3966 | gv->get_attr = get_attr; | |
3967 | gv->set_attr = set_attr; | |
3968 | gv->next = v->vars; | |
3969 | } | |
3970 | } | |
093d3ff1 RD |
3971 | v->vars = gv; |
3972 | } | |
3973 | ||
3974 | /* ----------------------------------------------------------------------------- | |
3975 | * constants/methods manipulation | |
3976 | * ----------------------------------------------------------------------------- */ | |
3977 | ||
3978 | /* Install Constants */ | |
7449af73 | 3979 | SWIGINTERN void |
093d3ff1 RD |
3980 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
3981 | PyObject *obj = 0; | |
3982 | size_t i; | |
7449af73 | 3983 | for (i = 0; constants[i].type; ++i) { |
093d3ff1 RD |
3984 | switch(constants[i].type) { |
3985 | case SWIG_PY_INT: | |
3986 | obj = PyInt_FromLong(constants[i].lvalue); | |
3987 | break; | |
3988 | case SWIG_PY_FLOAT: | |
3989 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
3990 | break; | |
3991 | case SWIG_PY_STRING: | |
3992 | if (constants[i].pvalue) { | |
3993 | obj = PyString_FromString((char *) constants[i].pvalue); | |
3994 | } else { | |
3995 | Py_INCREF(Py_None); | |
3996 | obj = Py_None; | |
3997 | } | |
3998 | break; | |
3999 | case SWIG_PY_POINTER: | |
4000 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
4001 | break; | |
4002 | case SWIG_PY_BINARY: | |
4003 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
4004 | break; | |
4005 | default: | |
4006 | obj = 0; | |
4007 | break; | |
4008 | } | |
4009 | if (obj) { | |
4010 | PyDict_SetItemString(d,constants[i].name,obj); | |
4011 | Py_DECREF(obj); | |
4012 | } | |
4013 | } | |
4014 | } | |
4015 | ||
4016 | /* -----------------------------------------------------------------------------*/ | |
4017 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
4018 | /* -----------------------------------------------------------------------------*/ | |
4019 | ||
7449af73 | 4020 | SWIGINTERN void |
093d3ff1 RD |
4021 | SWIG_Python_FixMethods(PyMethodDef *methods, |
4022 | swig_const_info *const_table, | |
4023 | swig_type_info **types, | |
4024 | swig_type_info **types_initial) { | |
4025 | size_t i; | |
4026 | for (i = 0; methods[i].ml_name; ++i) { | |
4027 | char *c = methods[i].ml_doc; | |
4028 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
4029 | int j; | |
4030 | swig_const_info *ci = 0; | |
4031 | char *name = c + 10; | |
7449af73 | 4032 | for (j = 0; const_table[j].type; ++j) { |
093d3ff1 RD |
4033 | if (strncmp(const_table[j].name, name, |
4034 | strlen(const_table[j].name)) == 0) { | |
4035 | ci = &(const_table[j]); | |
4036 | break; | |
4037 | } | |
4038 | } | |
4039 | if (ci) { | |
4040 | size_t shift = (ci->ptype) - types; | |
4041 | swig_type_info *ty = types_initial[shift]; | |
4042 | size_t ldoc = (c - methods[i].ml_doc); | |
4043 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
4044 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
7449af73 RD |
4045 | if (ndoc) { |
4046 | char *buff = ndoc; | |
4047 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
4048 | if (ptr) { | |
4049 | strncpy(buff, methods[i].ml_doc, ldoc); | |
4050 | buff += ldoc; | |
4051 | strncpy(buff, "swig_ptr: ", 10); | |
4052 | buff += 10; | |
4053 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
4054 | methods[i].ml_doc = ndoc; | |
4055 | } | |
4056 | } | |
093d3ff1 RD |
4057 | } |
4058 | } | |
4059 | } | |
4060 | } | |
4061 | ||
4062 | /* -----------------------------------------------------------------------------* | |
4063 | * Initialize type list | |
4064 | * -----------------------------------------------------------------------------*/ | |
4065 | ||
093d3ff1 RD |
4066 | #ifdef __cplusplus |
4067 | } | |
4068 | #endif | |
4069 | ||
4070 | /* -----------------------------------------------------------------------------* | |
4071 | * Partial Init method | |
4072 | * -----------------------------------------------------------------------------*/ | |
4073 | ||
8ac8dba0 RD |
4074 | #ifdef __cplusplus |
4075 | extern "C" | |
4076 | #endif | |
7449af73 | 4077 | SWIGEXPORT void SWIG_init(void) { |
8ac8dba0 | 4078 | static PyObject *SWIG_globals = 0; |
8ac8dba0 | 4079 | PyObject *m, *d; |
8ac8dba0 | 4080 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
093d3ff1 RD |
4081 | |
4082 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
7449af73 | 4083 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
093d3ff1 | 4084 | |
8ac8dba0 RD |
4085 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
4086 | d = PyModule_GetDict(m); | |
4087 | ||
7449af73 | 4088 | SWIG_InitializeModule(0); |
8ac8dba0 RD |
4089 | SWIG_InstallConstants(d,swig_const_table); |
4090 | ||
093d3ff1 | 4091 | { |
7449af73 | 4092 | PyDict_SetItemString(d,"MEDIASTATE_STOPPED", SWIG_From_int(static_cast<int >(wxMEDIASTATE_STOPPED))); |
093d3ff1 RD |
4093 | } |
4094 | { | |
7449af73 | 4095 | PyDict_SetItemString(d,"MEDIASTATE_PAUSED", SWIG_From_int(static_cast<int >(wxMEDIASTATE_PAUSED))); |
093d3ff1 RD |
4096 | } |
4097 | { | |
7449af73 | 4098 | PyDict_SetItemString(d,"MEDIASTATE_PLAYING", SWIG_From_int(static_cast<int >(wxMEDIASTATE_PLAYING))); |
093d3ff1 | 4099 | } |
b1fcee84 RD |
4100 | { |
4101 | PyDict_SetItemString(d,"MEDIACTRLPLAYERCONTROLS_NONE", SWIG_From_int(static_cast<int >(wxMEDIACTRLPLAYERCONTROLS_NONE))); | |
4102 | } | |
4103 | { | |
4104 | PyDict_SetItemString(d,"MEDIACTRLPLAYERCONTROLS_STEP", SWIG_From_int(static_cast<int >(wxMEDIACTRLPLAYERCONTROLS_STEP))); | |
4105 | } | |
4106 | { | |
4107 | PyDict_SetItemString(d,"MEDIACTRLPLAYERCONTROLS_VOLUME", SWIG_From_int(static_cast<int >(wxMEDIACTRLPLAYERCONTROLS_VOLUME))); | |
4108 | } | |
4109 | { | |
4110 | PyDict_SetItemString(d,"MEDIACTRLPLAYERCONTROLS_DEFAULT", SWIG_From_int(static_cast<int >(wxMEDIACTRLPLAYERCONTROLS_DEFAULT))); | |
4111 | } | |
8ac8dba0 | 4112 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
b1fcee84 RD |
4113 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIABACKEND_DIRECTSHOW",_wrap_MEDIABACKEND_DIRECTSHOW_get, _wrap_MEDIABACKEND_DIRECTSHOW_set); |
4114 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIABACKEND_MCI",_wrap_MEDIABACKEND_MCI_get, _wrap_MEDIABACKEND_MCI_set); | |
4115 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIABACKEND_QUICKTIME",_wrap_MEDIABACKEND_QUICKTIME_get, _wrap_MEDIABACKEND_QUICKTIME_set); | |
4116 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIABACKEND_GSTREAMER",_wrap_MEDIABACKEND_GSTREAMER_get, _wrap_MEDIABACKEND_GSTREAMER_set); | |
8ac8dba0 RD |
4117 | SWIG_addvarlink(SWIG_globals,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get, _wrap_MediaCtrlNameStr_set); |
4118 | PyDict_SetItemString(d, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED)); | |
4119 | PyDict_SetItemString(d, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP)); | |
7449af73 | 4120 | PyDict_SetItemString(d, "wxEVT_MEDIA_LOADED", PyInt_FromLong(wxEVT_MEDIA_LOADED)); |
8ac8dba0 RD |
4121 | |
4122 | ||
4123 | } | |
4124 |