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