]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/media_wrap.cpp
Remove old Makefile.ins
[wxWidgets.git] / wxPython / src / mac / media_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.24
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24 private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
26 };
27 #endif
28
29
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
33 # else
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
35 # endif
36 #endif
37
38
39 #include <Python.h>
40
41 /***********************************************************************
42 * swigrun.swg
43 *
44 * This file contains generic CAPI SWIG runtime support for pointer
45 * type checking.
46 *
47 ************************************************************************/
48
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
52
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
58 #else
59 #define SWIG_TYPE_TABLE_NAME
60 #endif
61
62 #include <string.h>
63
64 #ifndef SWIGINLINE
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
67 #else
68 # define SWIGINLINE
69 #endif
70 #endif
71
72 /*
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
76
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
79 */
80 #ifndef SWIGRUNTIME
81 #define SWIGRUNTIME static
82 #endif
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
85 #endif
86
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90
91 typedef void *(*swig_converter_func)(void *);
92 typedef struct swig_type_info *(*swig_dycast_func)(void **);
93
94 typedef struct swig_type_info {
95 const char *name;
96 swig_converter_func converter;
97 const char *str;
98 void *clientdata;
99 swig_dycast_func dcast;
100 struct swig_type_info *next;
101 struct swig_type_info *prev;
102 } swig_type_info;
103
104 /*
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
107
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
110 */
111 SWIGRUNTIME int
112 SWIG_TypeNameComp(const char *f1, const char *l1,
113 const char *f2, const char *l2) {
114 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
115 while ((*f1 == ' ') && (f1 != l1)) ++f1;
116 while ((*f2 == ' ') && (f2 != l2)) ++f2;
117 if (*f1 != *f2) return *f1 - *f2;
118 }
119 return (l1 - f1) - (l2 - f2);
120 }
121
122 /*
123 Check type equivalence in a name list like <name1>|<name2>|...
124 */
125 SWIGRUNTIME int
126 SWIG_TypeEquiv(const char *nb, const char *tb) {
127 int equiv = 0;
128 const char* te = tb + strlen(tb);
129 const char* ne = nb;
130 while (!equiv && *ne) {
131 for (nb = ne; *ne; ++ne) {
132 if (*ne == '|') break;
133 }
134 equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
135 if (*ne) ++ne;
136 }
137 return equiv;
138 }
139
140 /*
141 Register a type mapping with the type-checking
142 */
143 SWIGRUNTIME swig_type_info *
144 SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) {
145 swig_type_info *tc, *head, *ret, *next;
146 /* Check to see if this type has already been registered */
147 tc = *tl;
148 while (tc) {
149 /* check simple type equivalence */
150 int typeequiv = (strcmp(tc->name, ti->name) == 0);
151 /* check full type equivalence, resolving typedefs */
152 if (!typeequiv) {
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc->str && ti->str && !strstr(tc->str,"|")) {
155 typeequiv = SWIG_TypeEquiv(ti->str,tc->str);
156 }
157 }
158 if (typeequiv) {
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti->clientdata) tc->clientdata = ti->clientdata;
161 head = tc;
162 next = tc->next;
163 goto l1;
164 }
165 tc = tc->prev;
166 }
167 head = ti;
168 next = 0;
169
170 /* Place in list */
171 ti->prev = *tl;
172 *tl = ti;
173
174 /* Build linked lists */
175 l1:
176 ret = head;
177 tc = ti + 1;
178 /* Patch up the rest of the links */
179 while (tc->name) {
180 head->next = tc;
181 tc->prev = head;
182 head = tc;
183 tc++;
184 }
185 if (next) next->prev = head;
186 head->next = next;
187
188 return ret;
189 }
190
191 /*
192 Check the typename
193 */
194 SWIGRUNTIME swig_type_info *
195 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
196 swig_type_info *s;
197 if (!ty) return 0; /* Void pointer */
198 s = ty->next; /* First element always just a name */
199 do {
200 if (strcmp(s->name,c) == 0) {
201 if (s == ty->next) return s;
202 /* Move s to the top of the linked list */
203 s->prev->next = s->next;
204 if (s->next) {
205 s->next->prev = s->prev;
206 }
207 /* Insert s as second element in the list */
208 s->next = ty->next;
209 if (ty->next) ty->next->prev = s;
210 ty->next = s;
211 s->prev = ty;
212 return s;
213 }
214 s = s->next;
215 } while (s && (s != ty->next));
216 return 0;
217 }
218
219 /*
220 Cast a pointer up an inheritance hierarchy
221 */
222 SWIGRUNTIMEINLINE void *
223 SWIG_TypeCast(swig_type_info *ty, void *ptr) {
224 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
225 }
226
227 /*
228 Dynamic pointer casting. Down an inheritance hierarchy
229 */
230 SWIGRUNTIME swig_type_info *
231 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
232 swig_type_info *lastty = ty;
233 if (!ty || !ty->dcast) return ty;
234 while (ty && (ty->dcast)) {
235 ty = (*ty->dcast)(ptr);
236 if (ty) lastty = ty;
237 }
238 return lastty;
239 }
240
241 /*
242 Return the name associated with this type
243 */
244 SWIGRUNTIMEINLINE const char *
245 SWIG_TypeName(const swig_type_info *ty) {
246 return ty->name;
247 }
248
249 /*
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
252 */
253 SWIGRUNTIME const char *
254 SWIG_TypePrettyName(const swig_type_info *type) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
258 specific. */
259 if (type->str != NULL) {
260 const char *last_name = type->str;
261 const char *s;
262 for (s = type->str; *s; s++)
263 if (*s == '|') last_name = s+1;
264 return last_name;
265 }
266 else
267 return type->name;
268 }
269
270 /*
271 Search for a swig_type_info structure
272 */
273 SWIGRUNTIME swig_type_info *
274 SWIG_TypeQueryTL(swig_type_info *tl, const char *name) {
275 swig_type_info *ty = tl;
276 while (ty) {
277 if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
278 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
279 ty = ty->prev;
280 }
281 return 0;
282 }
283
284 /*
285 Set the clientdata field for a type
286 */
287 SWIGRUNTIME void
288 SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) {
289 swig_type_info *tc, *equiv;
290 if (ti->clientdata) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti->clientdata = clientdata;
293 equiv = ti->next;
294 while (equiv) {
295 if (!equiv->converter) {
296 tc = tl;
297 while (tc) {
298 if ((strcmp(tc->name, equiv->name) == 0))
299 SWIG_TypeClientDataTL(tl,tc,clientdata);
300 tc = tc->prev;
301 }
302 }
303 equiv = equiv->next;
304 }
305 }
306
307 /*
308 Pack binary data into a string
309 */
310 SWIGRUNTIME char *
311 SWIG_PackData(char *c, void *ptr, size_t sz) {
312 static char hex[17] = "0123456789abcdef";
313 unsigned char *u = (unsigned char *) ptr;
314 const unsigned char *eu = u + sz;
315 register unsigned char uu;
316 for (; u != eu; ++u) {
317 uu = *u;
318 *(c++) = hex[(uu & 0xf0) >> 4];
319 *(c++) = hex[uu & 0xf];
320 }
321 return c;
322 }
323
324 /*
325 Unpack binary data from a string
326 */
327 SWIGRUNTIME const char *
328 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
329 register unsigned char *u = (unsigned char *) ptr;
330 register const unsigned char *eu = u + sz;
331 for (; u != eu; ++u) {
332 register int d = *(c++);
333 register unsigned char uu = 0;
334 if ((d >= '0') && (d <= '9'))
335 uu = ((d - '0') << 4);
336 else if ((d >= 'a') && (d <= 'f'))
337 uu = ((d - ('a'-10)) << 4);
338 else
339 return (char *) 0;
340 d = *(c++);
341 if ((d >= '0') && (d <= '9'))
342 uu |= (d - '0');
343 else if ((d >= 'a') && (d <= 'f'))
344 uu |= (d - ('a'-10));
345 else
346 return (char *) 0;
347 *u = uu;
348 }
349 return c;
350 }
351
352 /*
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
357 */
358 SWIGRUNTIME void
359 SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) {
360 swig_type_info *equiv = type->next;
361 swig_type_info *tc;
362 if (!type->clientdata) return;
363 while (equiv) {
364 if (!equiv->converter) {
365 tc = tl;
366 while (tc) {
367 if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata)
368 SWIG_TypeClientDataTL(tl,tc, type->clientdata);
369 tc = tc->prev;
370 }
371 }
372 equiv = equiv->next;
373 }
374 }
375
376 /*
377 Pack 'void *' into a string buffer.
378 */
379 SWIGRUNTIME char *
380 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
381 char *r = buff;
382 if ((2*sizeof(void *) + 2) > bsz) return 0;
383 *(r++) = '_';
384 r = SWIG_PackData(r,&ptr,sizeof(void *));
385 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
386 strcpy(r,name);
387 return buff;
388 }
389
390 SWIGRUNTIME const char *
391 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
392 if (*c != '_') {
393 if (strcmp(c,"NULL") == 0) {
394 *ptr = (void *) 0;
395 return name;
396 } else {
397 return 0;
398 }
399 }
400 return SWIG_UnpackData(++c,ptr,sizeof(void *));
401 }
402
403 SWIGRUNTIME char *
404 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
405 char *r = buff;
406 size_t lname = (name ? strlen(name) : 0);
407 if ((2*sz + 2 + lname) > bsz) return 0;
408 *(r++) = '_';
409 r = SWIG_PackData(r,ptr,sz);
410 if (lname) {
411 strncpy(r,name,lname+1);
412 } else {
413 *r = 0;
414 }
415 return buff;
416 }
417
418 SWIGRUNTIME const char *
419 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
420 if (*c != '_') {
421 if (strcmp(c,"NULL") == 0) {
422 memset(ptr,0,sz);
423 return name;
424 } else {
425 return 0;
426 }
427 }
428 return SWIG_UnpackData(++c,ptr,sz);
429 }
430
431 #ifdef __cplusplus
432 }
433 #endif
434
435 /***********************************************************************
436 * common.swg
437 *
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
440 * external linkage.
441 *
442 * Author : David Beazley (beazley@cs.uchicago.edu)
443 *
444 * Copyright (c) 1999-2000, The University of Chicago
445 *
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
449
450
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
454 # else
455 # define SWIGEXPORT(a) a
456 # endif
457 #else
458 # define SWIGEXPORT(a) a
459 #endif
460
461 #ifdef __cplusplus
462 extern "C" {
463 #endif
464
465
466 /*************************************************************************/
467
468
469 /* The static type info list */
470
471 static swig_type_info *swig_type_list = 0;
472 static swig_type_info **swig_type_list_handle = &swig_type_list;
473
474
475 /* Register a type mapping with the type-checking */
476 static swig_type_info *
477 SWIG_TypeRegister(swig_type_info *ti) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle, ti);
479 }
480
481 /* Search for a swig_type_info structure */
482 static swig_type_info *
483 SWIG_TypeQuery(const char *name) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle, name);
485 }
486
487 /* Set the clientdata field for a type */
488 static void
489 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata);
491 }
492
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
497 */
498 static void
499 SWIG_PropagateClientData(swig_type_info *type) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle, type);
501 }
502
503 #ifdef __cplusplus
504 }
505 #endif
506
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
510
511 #ifdef __cplusplus
512 extern "C" {
513 #endif
514
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
518
519 #ifndef SWIGINTERN
520 #define SWIGINTERN static
521 #endif
522
523 #ifndef SWIGINTERNSHORT
524 #ifdef __cplusplus
525 #define SWIGINTERNSHORT static inline
526 #else /* C case */
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
529 #endif
530
531
532 /*
533 Exception handling in wrappers
534 */
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
541
542 /*
543 Contract support
544 */
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
547
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
551
552 /* Constant Types */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
558
559 /* Constant information structure */
560 typedef struct swig_const_info {
561 int type;
562 char *name;
563 long lvalue;
564 double dvalue;
565 void *pvalue;
566 swig_type_info **ptype;
567 } swig_const_info;
568
569
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
576
577 #ifdef __cplusplus
578 }
579 #endif
580
581
582 /***********************************************************************
583 * pyrun.swg
584 *
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
587 * type checking.
588 *
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
591
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
596
597
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
601
602
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
606 /*
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
609 not always safe.
610 */
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
613 #endif
614
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
618
619
620 #ifdef __cplusplus
621 extern "C" {
622 #endif
623
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
627
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
630 #endif
631
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
637
638 typedef struct {
639 PyObject_HEAD
640 void *ptr;
641 const char *desc;
642 } PySwigObject;
643
644 /* Declarations for objects of type PySwigObject */
645
646 SWIGRUNTIME int
647 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
648 {
649 char result[SWIG_BUFFER_SIZE];
650 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
651 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
652 return 0;
653 } else {
654 return 1;
655 }
656 }
657
658 SWIGRUNTIME PyObject *
659 PySwigObject_repr(PySwigObject *v)
660 {
661 char result[SWIG_BUFFER_SIZE];
662 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
663 PyString_FromFormat("<Swig Object at %s>", result) : 0;
664 }
665
666 SWIGRUNTIME PyObject *
667 PySwigObject_str(PySwigObject *v)
668 {
669 char result[SWIG_BUFFER_SIZE];
670 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
671 PyString_FromString(result) : 0;
672 }
673
674 SWIGRUNTIME PyObject *
675 PySwigObject_long(PySwigObject *v)
676 {
677 return PyLong_FromUnsignedLong((unsigned long) v->ptr);
678 }
679
680 SWIGRUNTIME PyObject *
681 PySwigObject_oct(PySwigObject *v)
682 {
683 char buf[100];
684 unsigned long x = (unsigned long)v->ptr;
685 if (x == 0)
686 strcpy(buf, "0");
687 else
688 PyOS_snprintf(buf, sizeof(buf), "0%lo", x);
689 return PyString_FromString(buf);
690 }
691
692 SWIGRUNTIME PyObject *
693 PySwigObject_hex(PySwigObject *v)
694 {
695 char buf[100];
696 PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr);
697 return PyString_FromString(buf);
698 }
699
700 SWIGRUNTIME int
701 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
702 {
703 int c = strcmp(v->desc, w->desc);
704 if (c) {
705 return c;
706 } else {
707 void *i = v->ptr;
708 void *j = w->ptr;
709 return (i < j) ? -1 : (i > j) ? 1 : 0;
710 }
711 }
712
713 SWIGRUNTIME void
714 PySwigObject_dealloc(PySwigObject *self)
715 {
716 PyObject_DEL(self);
717 }
718
719 SWIGRUNTIME PyTypeObject*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__[] =
722 "Swig object carries a C/C++ instance pointer";
723
724 static PyNumberMethods PySwigObject_as_number = {
725 (binaryfunc)0, /*nb_add*/
726 (binaryfunc)0, /*nb_subtract*/
727 (binaryfunc)0, /*nb_multiply*/
728 (binaryfunc)0, /*nb_divide*/
729 (binaryfunc)0, /*nb_remainder*/
730 (binaryfunc)0, /*nb_divmod*/
731 (ternaryfunc)0,/*nb_power*/
732 (unaryfunc)0, /*nb_negative*/
733 (unaryfunc)0, /*nb_positive*/
734 (unaryfunc)0, /*nb_absolute*/
735 (inquiry)0, /*nb_nonzero*/
736 0, /*nb_invert*/
737 0, /*nb_lshift*/
738 0, /*nb_rshift*/
739 0, /*nb_and*/
740 0, /*nb_xor*/
741 0, /*nb_or*/
742 (coercion)0, /*nb_coerce*/
743 (unaryfunc)PySwigObject_long, /*nb_int*/
744 (unaryfunc)PySwigObject_long, /*nb_long*/
745 (unaryfunc)0, /*nb_float*/
746 (unaryfunc)PySwigObject_oct, /*nb_oct*/
747 (unaryfunc)PySwigObject_hex, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
750 #endif
751 };
752
753 static int type_init = 0;
754 static PyTypeObject PySwigObject_Type;
755
756 if (!type_init) {
757 PyTypeObject tmp = {
758 PyObject_HEAD_INIT(&PyType_Type)
759 0, /*ob_size*/
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject), /*tp_basicsize*/
762 0, /*tp_itemsize*/
763 /* methods */
764 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
765 (printfunc)PySwigObject_print, /*tp_print*/
766 (getattrfunc)0, /*tp_getattr*/
767 (setattrfunc)0, /*tp_setattr*/
768 (cmpfunc)PySwigObject_compare, /*tp_compare*/
769 (reprfunc)PySwigObject_repr, /*tp_repr*/
770 &PySwigObject_as_number, /*tp_as_number*/
771 0, /*tp_as_sequence*/
772 0, /*tp_as_mapping*/
773 (hashfunc)0, /*tp_hash*/
774 (ternaryfunc)0, /*tp_call*/
775 (reprfunc)PySwigObject_str, /*tp_str*/
776 /* Space for future expansion */
777 0L,0L,0L,0L,
778 PySwigObject_Type__doc__, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
780 0, /* tp_traverse */
781 0, /* tp_clear */
782 #endif
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
786 #endif
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
789 #endif
790 #if PY_VERSION_HEX >= 0x02030000
791 0, /* tp_del */
792 #endif
793 #ifdef COUNT_ALLOCS
794 0,0,0,0 /* tp_alloc -> tp_next */
795 #endif
796 };
797
798 PySwigObject_Type = tmp;
799 type_init = 1;
800 }
801
802 return &PySwigObject_Type;
803 }
804
805 SWIGRUNTIME PyObject *
806 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
807 {
808 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType());
809 if (self == NULL) return NULL;
810 self->ptr = ptr;
811 self->desc = desc;
812 return (PyObject *)self;
813 }
814
815 SWIGRUNTIMEINLINE void *
816 PySwigObject_AsVoidPtr(PyObject *self)
817 {
818 return ((PySwigObject *)self)->ptr;
819 }
820
821 SWIGRUNTIMEINLINE const char *
822 PySwigObject_GetDesc(PyObject *self)
823 {
824 return ((PySwigObject *)self)->desc;
825 }
826
827 SWIGRUNTIMEINLINE int
828 PySwigObject_Check(PyObject *op) {
829 return ((op)->ob_type == PySwigObject_GetType())
830 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
831 }
832
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
836
837 typedef struct {
838 PyObject_HEAD
839 void *pack;
840 const char *desc;
841 size_t size;
842 } PySwigPacked;
843
844 SWIGRUNTIME int
845 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
846 {
847 char result[SWIG_BUFFER_SIZE];
848 fputs("<Swig Packed ", fp);
849 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
850 fputs("at ", fp);
851 fputs(result, fp);
852 }
853 fputs(v->desc,fp);
854 fputs(">", fp);
855 return 0;
856 }
857
858 SWIGRUNTIME PyObject *
859 PySwigPacked_repr(PySwigPacked *v)
860 {
861 char result[SWIG_BUFFER_SIZE];
862 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
864 } else {
865 return PyString_FromFormat("<Swig Packed %s>", v->desc);
866 }
867 }
868
869 SWIGRUNTIME PyObject *
870 PySwigPacked_str(PySwigPacked *v)
871 {
872 char result[SWIG_BUFFER_SIZE];
873 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
874 return PyString_FromFormat("%s%s", result, v->desc);
875 } else {
876 return PyString_FromFormat("%s", v->desc);
877 }
878 }
879
880 SWIGRUNTIME int
881 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
882 {
883 int c = strcmp(v->desc, w->desc);
884 if (c) {
885 return c;
886 } else {
887 size_t i = v->size;
888 size_t j = w->size;
889 int s = (i < j) ? -1 : (i > j) ? 1 : 0;
890 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
891 }
892 }
893
894 SWIGRUNTIME void
895 PySwigPacked_dealloc(PySwigPacked *self)
896 {
897 free(self->pack);
898 PyObject_DEL(self);
899 }
900
901 SWIGRUNTIME PyTypeObject*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init = 0;
906
907 static PyTypeObject PySwigPacked_Type;
908 if (!type_init) {
909 PyTypeObject tmp = {
910 PyObject_HEAD_INIT(&PyType_Type)
911 0, /*ob_size*/
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked), /*tp_basicsize*/
914 0, /*tp_itemsize*/
915 /* methods */
916 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
917 (printfunc)PySwigPacked_print, /*tp_print*/
918 (getattrfunc)0, /*tp_getattr*/
919 (setattrfunc)0, /*tp_setattr*/
920 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
921 (reprfunc)PySwigPacked_repr, /*tp_repr*/
922 0, /*tp_as_number*/
923 0, /*tp_as_sequence*/
924 0, /*tp_as_mapping*/
925 (hashfunc)0, /*tp_hash*/
926 (ternaryfunc)0, /*tp_call*/
927 (reprfunc)PySwigPacked_str, /*tp_str*/
928 /* Space for future expansion */
929 0L,0L,0L,0L,
930 PySwigPacked_Type__doc__, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
932 0, /* tp_traverse */
933 0, /* tp_clear */
934 #endif
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
938 #endif
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
941 #endif
942 #if PY_VERSION_HEX >= 0x02030000
943 0, /* tp_del */
944 #endif
945 #ifdef COUNT_ALLOCS
946 0,0,0,0 /* tp_alloc -> tp_next */
947 #endif
948 };
949
950 PySwigPacked_Type = tmp;
951 type_init = 1;
952 }
953
954
955
956 return &PySwigPacked_Type;
957 }
958
959 SWIGRUNTIME PyObject *
960 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
961 {
962 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType());
963 if (self == NULL) {
964 return NULL;
965 } else {
966 void *pack = malloc(size);
967 memcpy(pack, ptr, size);
968 self->pack = pack;
969 self->desc = desc;
970 self->size = size;
971 return (PyObject *) self;
972 }
973 }
974
975 SWIGRUNTIMEINLINE const char *
976 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
977 {
978 PySwigPacked *self = (PySwigPacked *)obj;
979 if (self->size != size) return 0;
980 memcpy(ptr, self->pack, size);
981 return self->desc;
982 }
983
984 SWIGRUNTIMEINLINE const char *
985 PySwigPacked_GetDesc(PyObject *self)
986 {
987 return ((PySwigPacked *)self)->desc;
988 }
989
990 SWIGRUNTIMEINLINE int
991 PySwigPacked_Check(PyObject *op) {
992 return ((op)->ob_type == PySwigPacked_GetType())
993 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
994 }
995
996 #else
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1000
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1005
1006 #endif
1007
1008 #endif
1009
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1013
1014 SWIGRUNTIME void
1015 SWIG_Python_TypeError(const char *type, PyObject *obj)
1016 {
1017 if (type) {
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj)) {
1020 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1021 if (otype) {
1022 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1023 type, otype);
1024 return;
1025 }
1026 } else
1027 #endif
1028 {
1029 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1030 if (otype) {
1031 PyObject *str = PyObject_Str(obj);
1032 const char *cstr = str ? PyString_AsString(str) : 0;
1033 if (cstr) {
1034 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1035 type, otype, cstr);
1036 } else {
1037 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1038 type, otype);
1039 }
1040 if (str)
1041 Py_DECREF(str);
1042 return;
1043 }
1044 }
1045 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1046 } else {
1047 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1048 }
1049 }
1050
1051 SWIGRUNTIMEINLINE void
1052 SWIG_Python_NullRef(const char *type)
1053 {
1054 if (type) {
1055 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1056 } else {
1057 PyErr_Format(PyExc_TypeError, "null reference was received");
1058 }
1059 }
1060
1061 SWIGRUNTIME int
1062 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1063 {
1064 if (PyErr_Occurred()) {
1065 PyObject *type = 0;
1066 PyObject *value = 0;
1067 PyObject *traceback = 0;
1068 PyErr_Fetch(&type, &value, &traceback);
1069 if (value) {
1070 PyObject *old_str = PyObject_Str(value);
1071 Py_XINCREF(type);
1072 PyErr_Clear();
1073 if (infront) {
1074 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1075 } else {
1076 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1077 }
1078 Py_DECREF(old_str);
1079 }
1080 return 1;
1081 } else {
1082 return 0;
1083 }
1084 }
1085
1086 SWIGRUNTIME int
1087 SWIG_Python_ArgFail(int argnum)
1088 {
1089 if (PyErr_Occurred()) {
1090 /* add information about failing argument */
1091 char mesg[256];
1092 sprintf(mesg, "argument number %d:", argnum);
1093 return SWIG_Python_AddErrMesg(mesg, 1);
1094 } else {
1095 return 0;
1096 }
1097 }
1098
1099
1100 /* -----------------------------------------------------------------------------
1101 * pointers/data manipulation
1102 * ----------------------------------------------------------------------------- */
1103
1104 /* Convert a pointer value */
1105 SWIGRUNTIME int
1106 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1107 swig_type_info *tc;
1108 const char *c = 0;
1109 static PyObject *SWIG_this = 0;
1110 int newref = 0;
1111 PyObject *pyobj = 0;
1112 void *vptr;
1113
1114 if (!obj) return 0;
1115 if (obj == Py_None) {
1116 *ptr = 0;
1117 return 0;
1118 }
1119
1120 #ifdef SWIG_COBJECT_TYPES
1121 if (!(PySwigObject_Check(obj))) {
1122 if (!SWIG_this)
1123 SWIG_this = PyString_FromString("this");
1124 pyobj = obj;
1125 obj = PyObject_GetAttr(obj,SWIG_this);
1126 newref = 1;
1127 if (!obj) goto type_error;
1128 if (!PySwigObject_Check(obj)) {
1129 Py_DECREF(obj);
1130 goto type_error;
1131 }
1132 }
1133 vptr = PySwigObject_AsVoidPtr(obj);
1134 c = (const char *) PySwigObject_GetDesc(obj);
1135 if (newref) { Py_DECREF(obj); }
1136 goto type_check;
1137 #else
1138 if (!(PyString_Check(obj))) {
1139 if (!SWIG_this)
1140 SWIG_this = PyString_FromString("this");
1141 pyobj = obj;
1142 obj = PyObject_GetAttr(obj,SWIG_this);
1143 newref = 1;
1144 if (!obj) goto type_error;
1145 if (!PyString_Check(obj)) {
1146 Py_DECREF(obj);
1147 goto type_error;
1148 }
1149 }
1150 c = PyString_AS_STRING(obj);
1151 /* Pointer values must start with leading underscore */
1152 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1153 if (newref) { Py_DECREF(obj); }
1154 if (!c) goto type_error;
1155 #endif
1156
1157 type_check:
1158
1159 if (ty) {
1160 tc = SWIG_TypeCheck(c,ty);
1161 if (!tc) goto type_error;
1162 *ptr = SWIG_TypeCast(tc,vptr);
1163 } else {
1164 *ptr = vptr;
1165 }
1166
1167 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1168 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1169 }
1170 return 0;
1171
1172 type_error:
1173 PyErr_Clear();
1174 if (pyobj && !obj) {
1175 obj = pyobj;
1176 if (PyCFunction_Check(obj)) {
1177 /* here we get the method pointer for callbacks */
1178 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1179 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1180 if (c) {
1181 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1182 if (!c) goto type_error;
1183 goto type_check;
1184 }
1185 }
1186 }
1187 if (flags & SWIG_POINTER_EXCEPTION) {
1188 if (ty) {
1189 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1190 } else {
1191 SWIG_Python_TypeError("C/C++ pointer", obj);
1192 }
1193 }
1194 return -1;
1195 }
1196
1197 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIGRUNTIME void *
1199 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1200 void *result;
1201 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1202 PyErr_Clear();
1203 if (flags & SWIG_POINTER_EXCEPTION) {
1204 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1205 SWIG_Python_ArgFail(argnum);
1206 }
1207 }
1208 return result;
1209 }
1210
1211 /* Convert a packed value value */
1212 SWIGRUNTIME int
1213 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1214 swig_type_info *tc;
1215 const char *c = 0;
1216
1217 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1218 c = PySwigPacked_UnpackData(obj, ptr, sz);
1219 #else
1220 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1221 c = PyString_AS_STRING(obj);
1222 /* Pointer values must start with leading underscore */
1223 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1224 #endif
1225 if (!c) goto type_error;
1226 if (ty) {
1227 tc = SWIG_TypeCheck(c,ty);
1228 if (!tc) goto type_error;
1229 }
1230 return 0;
1231
1232 type_error:
1233 PyErr_Clear();
1234 if (flags & SWIG_POINTER_EXCEPTION) {
1235 if (ty) {
1236 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1237 } else {
1238 SWIG_Python_TypeError("C/C++ packed data", obj);
1239 }
1240 }
1241 return -1;
1242 }
1243
1244 /* Create a new array object */
1245 SWIGRUNTIME PyObject *
1246 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1247 PyObject *robj = 0;
1248 if (!ptr) {
1249 Py_INCREF(Py_None);
1250 return Py_None;
1251 }
1252 #ifdef SWIG_COBJECT_TYPES
1253 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1254 #else
1255 {
1256 char result[SWIG_BUFFER_SIZE];
1257 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1258 PyString_FromString(result) : 0;
1259 }
1260 #endif
1261 if (!robj || (robj == Py_None)) return robj;
1262 if (type->clientdata) {
1263 PyObject *inst;
1264 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1265 Py_DECREF(robj);
1266 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1267 Py_DECREF(args);
1268 if (inst) {
1269 if (own) {
1270 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1271 }
1272 robj = inst;
1273 }
1274 }
1275 return robj;
1276 }
1277
1278 SWIGRUNTIME PyObject *
1279 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1280 PyObject *robj = 0;
1281 if (!ptr) {
1282 Py_INCREF(Py_None);
1283 return Py_None;
1284 }
1285 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1286 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1287 #else
1288 {
1289 char result[SWIG_BUFFER_SIZE];
1290 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1291 PyString_FromString(result) : 0;
1292 }
1293 #endif
1294 return robj;
1295 }
1296
1297 /* -----------------------------------------------------------------------------*
1298 * Get type list
1299 * -----------------------------------------------------------------------------*/
1300
1301 #ifdef SWIG_LINK_RUNTIME
1302 void *SWIG_ReturnGlobalTypeList(void *);
1303 #endif
1304
1305 SWIGRUNTIME swig_type_info **
1306 SWIG_Python_GetTypeListHandle() {
1307 static void *type_pointer = (void *)0;
1308 /* first check if module already created */
1309 if (!type_pointer) {
1310 #ifdef SWIG_LINK_RUNTIME
1311 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1312 #else
1313 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1314 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1315 if (PyErr_Occurred()) {
1316 PyErr_Clear();
1317 type_pointer = (void *)0;
1318 }
1319 }
1320 #endif
1321 return (swig_type_info **) type_pointer;
1322 }
1323
1324 /*
1325 Search for a swig_type_info structure
1326 */
1327 SWIGRUNTIMEINLINE swig_type_info *
1328 SWIG_Python_GetTypeList() {
1329 swig_type_info **tlh = SWIG_Python_GetTypeListHandle();
1330 return tlh ? *tlh : (swig_type_info*)0;
1331 }
1332
1333 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1334
1335 #ifdef __cplusplus
1336 }
1337 #endif
1338
1339
1340 /* -------- TYPES TABLE (BEGIN) -------- */
1341
1342 #define SWIGTYPE_p_wxObject swig_types[0]
1343 #define SWIGTYPE_p_unsigned_char swig_types[1]
1344 #define SWIGTYPE_p_wxMediaEvent swig_types[2]
1345 #define SWIGTYPE_p_wxWindow swig_types[3]
1346 #define SWIGTYPE_p_wxValidator swig_types[4]
1347 #define SWIGTYPE_p_wxCommandEvent swig_types[5]
1348 #define SWIGTYPE_p_unsigned_long swig_types[6]
1349 #define SWIGTYPE_p_unsigned_int swig_types[7]
1350 #define SWIGTYPE_unsigned_int swig_types[8]
1351 #define SWIGTYPE_p_form_ops_t swig_types[9]
1352 #define SWIGTYPE_p_wxDuplexMode swig_types[10]
1353 #define SWIGTYPE_p_wxMediaCtrlPlayerControls swig_types[11]
1354 #define SWIGTYPE_p_char swig_types[12]
1355 #define SWIGTYPE_p_wxFileOffset swig_types[13]
1356 #define SWIGTYPE_p_wxEvtHandler swig_types[14]
1357 #define SWIGTYPE_std__ptrdiff_t swig_types[15]
1358 #define SWIGTYPE_ptrdiff_t swig_types[16]
1359 #define SWIGTYPE_p_wxNotifyEvent swig_types[17]
1360 #define SWIGTYPE_p_wxControl swig_types[18]
1361 #define SWIGTYPE_p_wxMediaCtrl swig_types[19]
1362 #define SWIGTYPE_p_wxEvent swig_types[20]
1363 #define SWIGTYPE_p_wxPaperSize swig_types[21]
1364 #define SWIGTYPE_p_int swig_types[22]
1365 static swig_type_info *swig_types[24];
1366
1367 /* -------- TYPES TABLE (END) -------- */
1368
1369
1370 /*-----------------------------------------------
1371 @(target):= _media.so
1372 ------------------------------------------------*/
1373 #define SWIG_init init_media
1374
1375 #define SWIG_name "_media"
1376
1377 #include "wx/wxPython/wxPython.h"
1378 #include "wx/wxPython/pyclasses.h"
1379
1380 #include <wx/mediactrl.h>
1381 #include <wx/uri.h>
1382
1383
1384 #if !wxUSE_MEDIACTRL
1385 enum wxMediaState
1386 {
1387 wxMEDIASTATE_STOPPED=0,
1388 wxMEDIASTATE_PAUSED=0,
1389 wxMEDIASTATE_PLAYING=0
1390 };
1391
1392 enum wxMediaCtrlPlayerControls
1393 {
1394 wxMEDIACTRLPLAYERCONTROLS_NONE,
1395 wxMEDIACTRLPLAYERCONTROLS_STEP,
1396 wxMEDIACTRLPLAYERCONTROLS_VOLUME,
1397 wxMEDIACTRLPLAYERCONTROLS_DEFAULT
1398 };
1399
1400
1401 class wxMediaEvent : public wxNotifyEvent
1402 {
1403 public:
1404 wxMediaEvent(wxEventType, int ) { wxPyRaiseNotImplemented(); }
1405 };
1406
1407 class wxMediaCtrl : public wxControl
1408 {
1409 public:
1410 wxMediaCtrl() { wxPyRaiseNotImplemented(); }
1411
1412 wxMediaCtrl(wxWindow* , wxWindowID ,
1413 const wxString& ,
1414 const wxPoint& ,
1415 const wxSize& ,
1416 long style ,
1417 const wxString& ,
1418 const wxValidator& ,
1419 const wxString& ) { wxPyRaiseNotImplemented(); }
1420
1421 bool Create(wxWindow* , wxWindowID ,
1422 const wxString& ,
1423 const wxPoint& ,
1424 const wxSize& ,
1425 long style ,
1426 const wxString& ,
1427 const wxValidator& ,
1428 const wxString& ) { return false; }
1429
1430 bool Play() { return false; }
1431 bool Pause() { return false; }
1432 bool Stop() { return false; }
1433
1434 wxMediaState GetState() { return wxMEDIASTATE_STOPPED; }
1435
1436 double GetPlaybackRate() { return 0.0; }
1437 bool SetPlaybackRate(double dRate) { return false; }
1438
1439 wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart)
1440 { return 0; }
1441
1442 wxFileOffset Tell() { return 0; }
1443 wxFileOffset Length() { return 0; }
1444
1445 double GetVolume() { return 0.0; }
1446 bool SetVolume(double dVolume) { return false; }
1447
1448 bool ShowPlayerControls(
1449 wxMediaCtrlPlayerControls flags = wxMEDIACTRLPLAYERCONTROLS_DEFAULT)
1450 { return false; }
1451
1452 bool Load(const wxString& fileName) { return false; }
1453 bool LoadURI(const wxString& fileName) { return false; }
1454 bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy) { return false; }
1455 };
1456
1457 const wxEventType wxEVT_MEDIA_FINISHED = 0;
1458 const wxEventType wxEVT_MEDIA_STOP = 0;
1459
1460 #endif
1461
1462
1463 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1464 #define SWIG_From_int PyInt_FromLong
1465 /*@@*/
1466
1467
1468 #include <limits.h>
1469
1470
1471 SWIGINTERN int
1472 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1473 const char *errmsg)
1474 {
1475 if (value < min_value) {
1476 if (errmsg) {
1477 PyErr_Format(PyExc_OverflowError,
1478 "value %ld is less than '%s' minimum %ld",
1479 value, errmsg, min_value);
1480 }
1481 return 0;
1482 } else if (value > max_value) {
1483 if (errmsg) {
1484 PyErr_Format(PyExc_OverflowError,
1485 "value %ld is greater than '%s' maximum %ld",
1486 value, errmsg, max_value);
1487 }
1488 return 0;
1489 }
1490 return 1;
1491 }
1492
1493
1494 SWIGINTERN int
1495 SWIG_AsVal_long(PyObject* obj, long* val)
1496 {
1497 if (PyNumber_Check(obj)) {
1498 if (val) *val = PyInt_AsLong(obj);
1499 return 1;
1500 }
1501 else {
1502 SWIG_type_error("number", obj);
1503 }
1504 return 0;
1505 }
1506
1507
1508 #if INT_MAX != LONG_MAX
1509 SWIGINTERN int
1510 SWIG_AsVal_int(PyObject *obj, int *val)
1511 {
1512 const char* errmsg = val ? "int" : (char*)0;
1513 long v;
1514 if (SWIG_AsVal_long(obj, &v)) {
1515 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1516 if (val) *val = (int)(v);
1517 return 1;
1518 } else {
1519 return 0;
1520 }
1521 } else {
1522 PyErr_Clear();
1523 }
1524 if (val) {
1525 SWIG_type_error(errmsg, obj);
1526 }
1527 return 0;
1528 }
1529 #else
1530 SWIGINTERNSHORT int
1531 SWIG_AsVal_int(PyObject *obj, int *val)
1532 {
1533 return SWIG_AsVal_long(obj,(long*)val);
1534 }
1535 #endif
1536
1537
1538 SWIGINTERNSHORT int
1539 SWIG_As_int(PyObject* obj)
1540 {
1541 int v;
1542 if (!SWIG_AsVal_int(obj, &v)) {
1543 /*
1544 this is needed to make valgrind/purify happier.
1545 */
1546 memset((void*)&v, 0, sizeof(int));
1547 }
1548 return v;
1549 }
1550
1551
1552 SWIGINTERNSHORT int
1553 SWIG_Check_int(PyObject* obj)
1554 {
1555 return SWIG_AsVal_int(obj, (int*)0);
1556 }
1557
1558 static const wxString wxPyEmptyString(wxEmptyString);
1559 static const wxString wxPyMediaCtrlNameStr(wxT("mediaCtrl"));
1560
1561 SWIGINTERNSHORT long
1562 SWIG_As_long(PyObject* obj)
1563 {
1564 long v;
1565 if (!SWIG_AsVal_long(obj, &v)) {
1566 /*
1567 this is needed to make valgrind/purify happier.
1568 */
1569 memset((void*)&v, 0, sizeof(long));
1570 }
1571 return v;
1572 }
1573
1574
1575 SWIGINTERNSHORT int
1576 SWIG_Check_long(PyObject* obj)
1577 {
1578 return SWIG_AsVal_long(obj, (long*)0);
1579 }
1580
1581
1582 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1583 #define SWIG_From_double PyFloat_FromDouble
1584 /*@@*/
1585
1586
1587 SWIGINTERN int
1588 SWIG_AsVal_double(PyObject *obj, double* val)
1589 {
1590 if (PyNumber_Check(obj)) {
1591 if (val) *val = PyFloat_AsDouble(obj);
1592 return 1;
1593 }
1594 else {
1595 SWIG_type_error("number", obj);
1596 }
1597 return 0;
1598 }
1599
1600
1601 SWIGINTERNSHORT double
1602 SWIG_As_double(PyObject* obj)
1603 {
1604 double v;
1605 if (!SWIG_AsVal_double(obj, &v)) {
1606 /*
1607 this is needed to make valgrind/purify happier.
1608 */
1609 memset((void*)&v, 0, sizeof(double));
1610 }
1611 return v;
1612 }
1613
1614
1615 SWIGINTERNSHORT int
1616 SWIG_Check_double(PyObject* obj)
1617 {
1618 return SWIG_AsVal_double(obj, (double*)0);
1619 }
1620
1621 #ifdef __cplusplus
1622 extern "C" {
1623 #endif
1624 static PyObject *_wrap_new_MediaEvent(PyObject *, PyObject *args, PyObject *kwargs) {
1625 PyObject *resultobj;
1626 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
1627 int arg2 = (int) 0 ;
1628 wxMediaEvent *result;
1629 PyObject * obj0 = 0 ;
1630 PyObject * obj1 = 0 ;
1631 char *kwnames[] = {
1632 (char *) "commandType",(char *) "id", NULL
1633 };
1634
1635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MediaEvent",kwnames,&obj0,&obj1)) goto fail;
1636 if (obj0) {
1637 {
1638 arg1 = (wxEventType)(SWIG_As_int(obj0));
1639 if (SWIG_arg_fail(1)) SWIG_fail;
1640 }
1641 }
1642 if (obj1) {
1643 {
1644 arg2 = (int)(SWIG_As_int(obj1));
1645 if (SWIG_arg_fail(2)) SWIG_fail;
1646 }
1647 }
1648 {
1649 PyThreadState* __tstate = wxPyBeginAllowThreads();
1650 result = (wxMediaEvent *)new wxMediaEvent(arg1,arg2);
1651
1652 wxPyEndAllowThreads(__tstate);
1653 if (PyErr_Occurred()) SWIG_fail;
1654 }
1655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaEvent, 1);
1656 return resultobj;
1657 fail:
1658 return NULL;
1659 }
1660
1661
1662 static PyObject * MediaEvent_swigregister(PyObject *, PyObject *args) {
1663 PyObject *obj;
1664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1665 SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent, obj);
1666 Py_INCREF(obj);
1667 return Py_BuildValue((char *)"");
1668 }
1669 static int _wrap_MediaCtrlNameStr_set(PyObject *) {
1670 PyErr_SetString(PyExc_TypeError,"Variable MediaCtrlNameStr is read-only.");
1671 return 1;
1672 }
1673
1674
1675 static PyObject *_wrap_MediaCtrlNameStr_get(void) {
1676 PyObject *pyobj;
1677
1678 {
1679 #if wxUSE_UNICODE
1680 pyobj = PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
1681 #else
1682 pyobj = PyString_FromStringAndSize((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
1683 #endif
1684 }
1685 return pyobj;
1686 }
1687
1688
1689 static PyObject *_wrap_new_MediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 wxWindow *arg1 = (wxWindow *) 0 ;
1692 int arg2 = (int) -1 ;
1693 wxString const &arg3_defvalue = wxPyEmptyString ;
1694 wxString *arg3 = (wxString *) &arg3_defvalue ;
1695 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1696 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1697 wxSize const &arg5_defvalue = wxDefaultSize ;
1698 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1699 long arg6 = (long) 0 ;
1700 wxString const &arg7_defvalue = wxPyEmptyString ;
1701 wxString *arg7 = (wxString *) &arg7_defvalue ;
1702 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1703 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1704 wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ;
1705 wxString *arg9 = (wxString *) &arg9_defvalue ;
1706 wxMediaCtrl *result;
1707 bool temp3 = false ;
1708 wxPoint temp4 ;
1709 wxSize temp5 ;
1710 bool temp7 = false ;
1711 bool temp9 = false ;
1712 PyObject * obj0 = 0 ;
1713 PyObject * obj1 = 0 ;
1714 PyObject * obj2 = 0 ;
1715 PyObject * obj3 = 0 ;
1716 PyObject * obj4 = 0 ;
1717 PyObject * obj5 = 0 ;
1718 PyObject * obj6 = 0 ;
1719 PyObject * obj7 = 0 ;
1720 PyObject * obj8 = 0 ;
1721 char *kwnames[] = {
1722 (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
1723 };
1724
1725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1726 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1727 if (SWIG_arg_fail(1)) SWIG_fail;
1728 if (obj1) {
1729 {
1730 arg2 = (int)(SWIG_As_int(obj1));
1731 if (SWIG_arg_fail(2)) SWIG_fail;
1732 }
1733 }
1734 if (obj2) {
1735 {
1736 arg3 = wxString_in_helper(obj2);
1737 if (arg3 == NULL) SWIG_fail;
1738 temp3 = true;
1739 }
1740 }
1741 if (obj3) {
1742 {
1743 arg4 = &temp4;
1744 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1745 }
1746 }
1747 if (obj4) {
1748 {
1749 arg5 = &temp5;
1750 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1751 }
1752 }
1753 if (obj5) {
1754 {
1755 arg6 = (long)(SWIG_As_long(obj5));
1756 if (SWIG_arg_fail(6)) SWIG_fail;
1757 }
1758 }
1759 if (obj6) {
1760 {
1761 arg7 = wxString_in_helper(obj6);
1762 if (arg7 == NULL) SWIG_fail;
1763 temp7 = true;
1764 }
1765 }
1766 if (obj7) {
1767 {
1768 SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
1769 if (SWIG_arg_fail(8)) SWIG_fail;
1770 if (arg8 == NULL) {
1771 SWIG_null_ref("wxValidator");
1772 }
1773 if (SWIG_arg_fail(8)) SWIG_fail;
1774 }
1775 }
1776 if (obj8) {
1777 {
1778 arg9 = wxString_in_helper(obj8);
1779 if (arg9 == NULL) SWIG_fail;
1780 temp9 = true;
1781 }
1782 }
1783 {
1784 if (!wxPyCheckForApp()) SWIG_fail;
1785 PyThreadState* __tstate = wxPyBeginAllowThreads();
1786 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);
1787
1788 wxPyEndAllowThreads(__tstate);
1789 if (PyErr_Occurred()) SWIG_fail;
1790 }
1791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
1792 {
1793 if (temp3)
1794 delete arg3;
1795 }
1796 {
1797 if (temp7)
1798 delete arg7;
1799 }
1800 {
1801 if (temp9)
1802 delete arg9;
1803 }
1804 return resultobj;
1805 fail:
1806 {
1807 if (temp3)
1808 delete arg3;
1809 }
1810 {
1811 if (temp7)
1812 delete arg7;
1813 }
1814 {
1815 if (temp9)
1816 delete arg9;
1817 }
1818 return NULL;
1819 }
1820
1821
1822 static PyObject *_wrap_new_PreMediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
1823 PyObject *resultobj;
1824 wxMediaCtrl *result;
1825 char *kwnames[] = {
1826 NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMediaCtrl",kwnames)) goto fail;
1830 {
1831 if (!wxPyCheckForApp()) SWIG_fail;
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 result = (wxMediaCtrl *)new wxMediaCtrl();
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_MediaCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1848 wxWindow *arg2 = (wxWindow *) 0 ;
1849 int arg3 = (int) -1 ;
1850 wxString const &arg4_defvalue = wxPyEmptyString ;
1851 wxString *arg4 = (wxString *) &arg4_defvalue ;
1852 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1853 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1854 wxSize const &arg6_defvalue = wxDefaultSize ;
1855 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1856 long arg7 = (long) 0 ;
1857 wxString const &arg8_defvalue = wxPyEmptyString ;
1858 wxString *arg8 = (wxString *) &arg8_defvalue ;
1859 wxValidator const &arg9_defvalue = wxDefaultValidator ;
1860 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
1861 wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ;
1862 wxString *arg10 = (wxString *) &arg10_defvalue ;
1863 bool result;
1864 bool temp4 = false ;
1865 wxPoint temp5 ;
1866 wxSize temp6 ;
1867 bool temp8 = false ;
1868 bool temp10 = false ;
1869 PyObject * obj0 = 0 ;
1870 PyObject * obj1 = 0 ;
1871 PyObject * obj2 = 0 ;
1872 PyObject * obj3 = 0 ;
1873 PyObject * obj4 = 0 ;
1874 PyObject * obj5 = 0 ;
1875 PyObject * obj6 = 0 ;
1876 PyObject * obj7 = 0 ;
1877 PyObject * obj8 = 0 ;
1878 PyObject * obj9 = 0 ;
1879 char *kwnames[] = {
1880 (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
1881 };
1882
1883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
1884 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
1885 if (SWIG_arg_fail(1)) SWIG_fail;
1886 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1887 if (SWIG_arg_fail(2)) SWIG_fail;
1888 if (obj2) {
1889 {
1890 arg3 = (int)(SWIG_As_int(obj2));
1891 if (SWIG_arg_fail(3)) SWIG_fail;
1892 }
1893 }
1894 if (obj3) {
1895 {
1896 arg4 = wxString_in_helper(obj3);
1897 if (arg4 == NULL) SWIG_fail;
1898 temp4 = true;
1899 }
1900 }
1901 if (obj4) {
1902 {
1903 arg5 = &temp5;
1904 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1905 }
1906 }
1907 if (obj5) {
1908 {
1909 arg6 = &temp6;
1910 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1911 }
1912 }
1913 if (obj6) {
1914 {
1915 arg7 = (long)(SWIG_As_long(obj6));
1916 if (SWIG_arg_fail(7)) SWIG_fail;
1917 }
1918 }
1919 if (obj7) {
1920 {
1921 arg8 = wxString_in_helper(obj7);
1922 if (arg8 == NULL) SWIG_fail;
1923 temp8 = true;
1924 }
1925 }
1926 if (obj8) {
1927 {
1928 SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
1929 if (SWIG_arg_fail(9)) SWIG_fail;
1930 if (arg9 == NULL) {
1931 SWIG_null_ref("wxValidator");
1932 }
1933 if (SWIG_arg_fail(9)) SWIG_fail;
1934 }
1935 }
1936 if (obj9) {
1937 {
1938 arg10 = wxString_in_helper(obj9);
1939 if (arg10 == NULL) SWIG_fail;
1940 temp10 = true;
1941 }
1942 }
1943 {
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 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);
1946
1947 wxPyEndAllowThreads(__tstate);
1948 if (PyErr_Occurred()) SWIG_fail;
1949 }
1950 {
1951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1952 }
1953 {
1954 if (temp4)
1955 delete arg4;
1956 }
1957 {
1958 if (temp8)
1959 delete arg8;
1960 }
1961 {
1962 if (temp10)
1963 delete arg10;
1964 }
1965 return resultobj;
1966 fail:
1967 {
1968 if (temp4)
1969 delete arg4;
1970 }
1971 {
1972 if (temp8)
1973 delete arg8;
1974 }
1975 {
1976 if (temp10)
1977 delete arg10;
1978 }
1979 return NULL;
1980 }
1981
1982
1983 static PyObject *_wrap_MediaCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) {
1984 PyObject *resultobj;
1985 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1986 bool result;
1987 PyObject * obj0 = 0 ;
1988 char *kwnames[] = {
1989 (char *) "self", NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Play",kwnames,&obj0)) goto fail;
1993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
1994 if (SWIG_arg_fail(1)) SWIG_fail;
1995 {
1996 PyThreadState* __tstate = wxPyBeginAllowThreads();
1997 result = (bool)(arg1)->Play();
1998
1999 wxPyEndAllowThreads(__tstate);
2000 if (PyErr_Occurred()) SWIG_fail;
2001 }
2002 {
2003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2004 }
2005 return resultobj;
2006 fail:
2007 return NULL;
2008 }
2009
2010
2011 static PyObject *_wrap_MediaCtrl_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
2012 PyObject *resultobj;
2013 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2014 bool result;
2015 PyObject * obj0 = 0 ;
2016 char *kwnames[] = {
2017 (char *) "self", NULL
2018 };
2019
2020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Pause",kwnames,&obj0)) goto fail;
2021 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2022 if (SWIG_arg_fail(1)) SWIG_fail;
2023 {
2024 PyThreadState* __tstate = wxPyBeginAllowThreads();
2025 result = (bool)(arg1)->Pause();
2026
2027 wxPyEndAllowThreads(__tstate);
2028 if (PyErr_Occurred()) SWIG_fail;
2029 }
2030 {
2031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2032 }
2033 return resultobj;
2034 fail:
2035 return NULL;
2036 }
2037
2038
2039 static PyObject *_wrap_MediaCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
2040 PyObject *resultobj;
2041 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2042 bool result;
2043 PyObject * obj0 = 0 ;
2044 char *kwnames[] = {
2045 (char *) "self", NULL
2046 };
2047
2048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Stop",kwnames,&obj0)) goto fail;
2049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2050 if (SWIG_arg_fail(1)) SWIG_fail;
2051 {
2052 PyThreadState* __tstate = wxPyBeginAllowThreads();
2053 result = (bool)(arg1)->Stop();
2054
2055 wxPyEndAllowThreads(__tstate);
2056 if (PyErr_Occurred()) SWIG_fail;
2057 }
2058 {
2059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2060 }
2061 return resultobj;
2062 fail:
2063 return NULL;
2064 }
2065
2066
2067 static PyObject *_wrap_MediaCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
2068 PyObject *resultobj;
2069 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2070 wxMediaState result;
2071 PyObject * obj0 = 0 ;
2072 char *kwnames[] = {
2073 (char *) "self", NULL
2074 };
2075
2076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetState",kwnames,&obj0)) goto fail;
2077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2078 if (SWIG_arg_fail(1)) SWIG_fail;
2079 {
2080 PyThreadState* __tstate = wxPyBeginAllowThreads();
2081 result = (wxMediaState)(arg1)->GetState();
2082
2083 wxPyEndAllowThreads(__tstate);
2084 if (PyErr_Occurred()) SWIG_fail;
2085 }
2086 resultobj = SWIG_From_int((result));
2087 return resultobj;
2088 fail:
2089 return NULL;
2090 }
2091
2092
2093 static PyObject *_wrap_MediaCtrl_GetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
2094 PyObject *resultobj;
2095 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2096 double result;
2097 PyObject * obj0 = 0 ;
2098 char *kwnames[] = {
2099 (char *) "self", NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames,&obj0)) goto fail;
2103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2104 if (SWIG_arg_fail(1)) SWIG_fail;
2105 {
2106 PyThreadState* __tstate = wxPyBeginAllowThreads();
2107 result = (double)(arg1)->GetPlaybackRate();
2108
2109 wxPyEndAllowThreads(__tstate);
2110 if (PyErr_Occurred()) SWIG_fail;
2111 }
2112 {
2113 resultobj = SWIG_From_double((double)(result));
2114 }
2115 return resultobj;
2116 fail:
2117 return NULL;
2118 }
2119
2120
2121 static PyObject *_wrap_MediaCtrl_SetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
2122 PyObject *resultobj;
2123 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2124 double arg2 ;
2125 bool result;
2126 PyObject * obj0 = 0 ;
2127 PyObject * obj1 = 0 ;
2128 char *kwnames[] = {
2129 (char *) "self",(char *) "dRate", NULL
2130 };
2131
2132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames,&obj0,&obj1)) goto fail;
2133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2134 if (SWIG_arg_fail(1)) SWIG_fail;
2135 {
2136 arg2 = (double)(SWIG_As_double(obj1));
2137 if (SWIG_arg_fail(2)) SWIG_fail;
2138 }
2139 {
2140 PyThreadState* __tstate = wxPyBeginAllowThreads();
2141 result = (bool)(arg1)->SetPlaybackRate(arg2);
2142
2143 wxPyEndAllowThreads(__tstate);
2144 if (PyErr_Occurred()) SWIG_fail;
2145 }
2146 {
2147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2148 }
2149 return resultobj;
2150 fail:
2151 return NULL;
2152 }
2153
2154
2155 static PyObject *_wrap_MediaCtrl_Seek(PyObject *, PyObject *args, PyObject *kwargs) {
2156 PyObject *resultobj;
2157 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2158 wxFileOffset arg2 ;
2159 wxSeekMode arg3 = (wxSeekMode) wxFromStart ;
2160 wxFileOffset result;
2161 PyObject * obj0 = 0 ;
2162 PyObject * obj1 = 0 ;
2163 PyObject * obj2 = 0 ;
2164 char *kwnames[] = {
2165 (char *) "self",(char *) "where",(char *) "mode", NULL
2166 };
2167
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MediaCtrl_Seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
2169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2170 if (SWIG_arg_fail(1)) SWIG_fail;
2171 {
2172 if (sizeof(wxFileOffset) > sizeof(long))
2173 arg2 = PyLong_AsLongLong(obj1);
2174 else
2175 arg2 = PyInt_AsLong(obj1);
2176 }
2177 if (obj2) {
2178 {
2179 arg3 = (wxSeekMode)(SWIG_As_int(obj2));
2180 if (SWIG_arg_fail(3)) SWIG_fail;
2181 }
2182 }
2183 {
2184 PyThreadState* __tstate = wxPyBeginAllowThreads();
2185 result = (arg1)->Seek(arg2,(wxSeekMode )arg3);
2186
2187 wxPyEndAllowThreads(__tstate);
2188 if (PyErr_Occurred()) SWIG_fail;
2189 }
2190 {
2191 if (sizeof(wxFileOffset) > sizeof(long))
2192 resultobj = PyLong_FromLongLong(result);
2193 else
2194 resultobj = PyInt_FromLong(result);
2195 }
2196 return resultobj;
2197 fail:
2198 return NULL;
2199 }
2200
2201
2202 static PyObject *_wrap_MediaCtrl_Tell(PyObject *, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2205 wxFileOffset result;
2206 PyObject * obj0 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "self", NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Tell",kwnames,&obj0)) goto fail;
2212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2213 if (SWIG_arg_fail(1)) SWIG_fail;
2214 {
2215 PyThreadState* __tstate = wxPyBeginAllowThreads();
2216 result = (arg1)->Tell();
2217
2218 wxPyEndAllowThreads(__tstate);
2219 if (PyErr_Occurred()) SWIG_fail;
2220 }
2221 {
2222 if (sizeof(wxFileOffset) > sizeof(long))
2223 resultobj = PyLong_FromLongLong(result);
2224 else
2225 resultobj = PyInt_FromLong(result);
2226 }
2227 return resultobj;
2228 fail:
2229 return NULL;
2230 }
2231
2232
2233 static PyObject *_wrap_MediaCtrl_Length(PyObject *, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2236 wxFileOffset result;
2237 PyObject * obj0 = 0 ;
2238 char *kwnames[] = {
2239 (char *) "self", NULL
2240 };
2241
2242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Length",kwnames,&obj0)) goto fail;
2243 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2244 if (SWIG_arg_fail(1)) SWIG_fail;
2245 {
2246 PyThreadState* __tstate = wxPyBeginAllowThreads();
2247 result = (arg1)->Length();
2248
2249 wxPyEndAllowThreads(__tstate);
2250 if (PyErr_Occurred()) SWIG_fail;
2251 }
2252 {
2253 if (sizeof(wxFileOffset) > sizeof(long))
2254 resultobj = PyLong_FromLongLong(result);
2255 else
2256 resultobj = PyInt_FromLong(result);
2257 }
2258 return resultobj;
2259 fail:
2260 return NULL;
2261 }
2262
2263
2264 static PyObject *_wrap_MediaCtrl_GetVolume(PyObject *, PyObject *args, PyObject *kwargs) {
2265 PyObject *resultobj;
2266 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2267 double result;
2268 PyObject * obj0 = 0 ;
2269 char *kwnames[] = {
2270 (char *) "self", NULL
2271 };
2272
2273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetVolume",kwnames,&obj0)) goto fail;
2274 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2275 if (SWIG_arg_fail(1)) SWIG_fail;
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = (double)(arg1)->GetVolume();
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 {
2284 resultobj = SWIG_From_double((double)(result));
2285 }
2286 return resultobj;
2287 fail:
2288 return NULL;
2289 }
2290
2291
2292 static PyObject *_wrap_MediaCtrl_SetVolume(PyObject *, PyObject *args, PyObject *kwargs) {
2293 PyObject *resultobj;
2294 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2295 double arg2 ;
2296 bool result;
2297 PyObject * obj0 = 0 ;
2298 PyObject * obj1 = 0 ;
2299 char *kwnames[] = {
2300 (char *) "self",(char *) "dVolume", NULL
2301 };
2302
2303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetVolume",kwnames,&obj0,&obj1)) goto fail;
2304 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2305 if (SWIG_arg_fail(1)) SWIG_fail;
2306 {
2307 arg2 = (double)(SWIG_As_double(obj1));
2308 if (SWIG_arg_fail(2)) SWIG_fail;
2309 }
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 result = (bool)(arg1)->SetVolume(arg2);
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 {
2318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2319 }
2320 return resultobj;
2321 fail:
2322 return NULL;
2323 }
2324
2325
2326 static PyObject *_wrap_MediaCtrl_ShowPlayerControls(PyObject *, PyObject *args, PyObject *kwargs) {
2327 PyObject *resultobj;
2328 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2329 wxMediaCtrlPlayerControls arg2 = (wxMediaCtrlPlayerControls) wxMEDIACTRLPLAYERCONTROLS_DEFAULT ;
2330 bool result;
2331 PyObject * obj0 = 0 ;
2332 PyObject * obj1 = 0 ;
2333 char *kwnames[] = {
2334 (char *) "self",(char *) "flags", NULL
2335 };
2336
2337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MediaCtrl_ShowPlayerControls",kwnames,&obj0,&obj1)) goto fail;
2338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2339 if (SWIG_arg_fail(1)) SWIG_fail;
2340 if (obj1) {
2341 {
2342 wxMediaCtrlPlayerControls * argp;
2343 SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxMediaCtrlPlayerControls, SWIG_POINTER_EXCEPTION);
2344 if (SWIG_arg_fail(2)) SWIG_fail;
2345 if (argp == NULL) {
2346 SWIG_null_ref("wxMediaCtrlPlayerControls");
2347 }
2348 if (SWIG_arg_fail(2)) SWIG_fail;
2349 arg2 = *argp;
2350 }
2351 }
2352 {
2353 PyThreadState* __tstate = wxPyBeginAllowThreads();
2354 result = (bool)(arg1)->ShowPlayerControls(arg2);
2355
2356 wxPyEndAllowThreads(__tstate);
2357 if (PyErr_Occurred()) SWIG_fail;
2358 }
2359 {
2360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2361 }
2362 return resultobj;
2363 fail:
2364 return NULL;
2365 }
2366
2367
2368 static PyObject *_wrap_MediaCtrl_Load(PyObject *, PyObject *args, PyObject *kwargs) {
2369 PyObject *resultobj;
2370 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2371 wxString *arg2 = 0 ;
2372 bool result;
2373 bool temp2 = false ;
2374 PyObject * obj0 = 0 ;
2375 PyObject * obj1 = 0 ;
2376 char *kwnames[] = {
2377 (char *) "self",(char *) "fileName", NULL
2378 };
2379
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_Load",kwnames,&obj0,&obj1)) 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 arg2 = wxString_in_helper(obj1);
2385 if (arg2 == NULL) SWIG_fail;
2386 temp2 = true;
2387 }
2388 {
2389 PyThreadState* __tstate = wxPyBeginAllowThreads();
2390 result = (bool)(arg1)->Load((wxString const &)*arg2);
2391
2392 wxPyEndAllowThreads(__tstate);
2393 if (PyErr_Occurred()) SWIG_fail;
2394 }
2395 {
2396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2397 }
2398 {
2399 if (temp2)
2400 delete arg2;
2401 }
2402 return resultobj;
2403 fail:
2404 {
2405 if (temp2)
2406 delete arg2;
2407 }
2408 return NULL;
2409 }
2410
2411
2412 static PyObject *_wrap_MediaCtrl_LoadURI(PyObject *, PyObject *args, PyObject *kwargs) {
2413 PyObject *resultobj;
2414 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2415 wxString *arg2 = 0 ;
2416 bool result;
2417 bool temp2 = false ;
2418 PyObject * obj0 = 0 ;
2419 PyObject * obj1 = 0 ;
2420 char *kwnames[] = {
2421 (char *) "self",(char *) "fileName", NULL
2422 };
2423
2424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_LoadURI",kwnames,&obj0,&obj1)) goto fail;
2425 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2426 if (SWIG_arg_fail(1)) SWIG_fail;
2427 {
2428 arg2 = wxString_in_helper(obj1);
2429 if (arg2 == NULL) SWIG_fail;
2430 temp2 = true;
2431 }
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 result = (bool)(arg1)->LoadURI((wxString const &)*arg2);
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 {
2440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2441 }
2442 {
2443 if (temp2)
2444 delete arg2;
2445 }
2446 return resultobj;
2447 fail:
2448 {
2449 if (temp2)
2450 delete arg2;
2451 }
2452 return NULL;
2453 }
2454
2455
2456 static PyObject *_wrap_MediaCtrl_LoadURIWithProxy(PyObject *, PyObject *args, PyObject *kwargs) {
2457 PyObject *resultobj;
2458 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2459 wxString *arg2 = 0 ;
2460 wxString *arg3 = 0 ;
2461 bool result;
2462 bool temp2 = false ;
2463 bool temp3 = false ;
2464 PyObject * obj0 = 0 ;
2465 PyObject * obj1 = 0 ;
2466 PyObject * obj2 = 0 ;
2467 char *kwnames[] = {
2468 (char *) "self",(char *) "fileName",(char *) "proxy", NULL
2469 };
2470
2471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MediaCtrl_LoadURIWithProxy",kwnames,&obj0,&obj1,&obj2)) goto fail;
2472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2473 if (SWIG_arg_fail(1)) SWIG_fail;
2474 {
2475 arg2 = wxString_in_helper(obj1);
2476 if (arg2 == NULL) SWIG_fail;
2477 temp2 = true;
2478 }
2479 {
2480 arg3 = wxString_in_helper(obj2);
2481 if (arg3 == NULL) SWIG_fail;
2482 temp3 = true;
2483 }
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 result = (bool)(arg1)->LoadURIWithProxy((wxString const &)*arg2,(wxString const &)*arg3);
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 {
2492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2493 }
2494 {
2495 if (temp2)
2496 delete arg2;
2497 }
2498 {
2499 if (temp3)
2500 delete arg3;
2501 }
2502 return resultobj;
2503 fail:
2504 {
2505 if (temp2)
2506 delete arg2;
2507 }
2508 {
2509 if (temp3)
2510 delete arg3;
2511 }
2512 return NULL;
2513 }
2514
2515
2516 static PyObject * MediaCtrl_swigregister(PyObject *, PyObject *args) {
2517 PyObject *obj;
2518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2519 SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl, obj);
2520 Py_INCREF(obj);
2521 return Py_BuildValue((char *)"");
2522 }
2523 static PyMethodDef SwigMethods[] = {
2524 { (char *)"new_MediaEvent", (PyCFunction) _wrap_new_MediaEvent, METH_VARARGS | METH_KEYWORDS, NULL},
2525 { (char *)"MediaEvent_swigregister", MediaEvent_swigregister, METH_VARARGS, NULL},
2526 { (char *)"new_MediaCtrl", (PyCFunction) _wrap_new_MediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2527 { (char *)"new_PreMediaCtrl", (PyCFunction) _wrap_new_PreMediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2528 { (char *)"MediaCtrl_Create", (PyCFunction) _wrap_MediaCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
2529 { (char *)"MediaCtrl_Play", (PyCFunction) _wrap_MediaCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL},
2530 { (char *)"MediaCtrl_Pause", (PyCFunction) _wrap_MediaCtrl_Pause, METH_VARARGS | METH_KEYWORDS, NULL},
2531 { (char *)"MediaCtrl_Stop", (PyCFunction) _wrap_MediaCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
2532 { (char *)"MediaCtrl_GetState", (PyCFunction) _wrap_MediaCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
2533 { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_GetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL},
2534 { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_SetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL},
2535 { (char *)"MediaCtrl_Seek", (PyCFunction) _wrap_MediaCtrl_Seek, METH_VARARGS | METH_KEYWORDS, NULL},
2536 { (char *)"MediaCtrl_Tell", (PyCFunction) _wrap_MediaCtrl_Tell, METH_VARARGS | METH_KEYWORDS, NULL},
2537 { (char *)"MediaCtrl_Length", (PyCFunction) _wrap_MediaCtrl_Length, METH_VARARGS | METH_KEYWORDS, NULL},
2538 { (char *)"MediaCtrl_GetVolume", (PyCFunction) _wrap_MediaCtrl_GetVolume, METH_VARARGS | METH_KEYWORDS, NULL},
2539 { (char *)"MediaCtrl_SetVolume", (PyCFunction) _wrap_MediaCtrl_SetVolume, METH_VARARGS | METH_KEYWORDS, NULL},
2540 { (char *)"MediaCtrl_ShowPlayerControls", (PyCFunction) _wrap_MediaCtrl_ShowPlayerControls, METH_VARARGS | METH_KEYWORDS, NULL},
2541 { (char *)"MediaCtrl_Load", (PyCFunction) _wrap_MediaCtrl_Load, METH_VARARGS | METH_KEYWORDS, NULL},
2542 { (char *)"MediaCtrl_LoadURI", (PyCFunction) _wrap_MediaCtrl_LoadURI, METH_VARARGS | METH_KEYWORDS, NULL},
2543 { (char *)"MediaCtrl_LoadURIWithProxy", (PyCFunction) _wrap_MediaCtrl_LoadURIWithProxy, METH_VARARGS | METH_KEYWORDS, NULL},
2544 { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister, METH_VARARGS, NULL},
2545 { NULL, NULL, 0, NULL }
2546 };
2547
2548
2549 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2550
2551 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
2552 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
2553 }
2554 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
2555 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
2556 }
2557 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
2558 return (void *)((wxObject *) ((wxSizerItem *) x));
2559 }
2560 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
2561 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
2562 }
2563 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
2564 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
2565 }
2566 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
2567 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
2568 }
2569 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
2570 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
2571 }
2572 static void *_p_wxSizerTo_p_wxObject(void *x) {
2573 return (void *)((wxObject *) ((wxSizer *) x));
2574 }
2575 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2576 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2577 }
2578 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2579 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2580 }
2581 static void *_p_wxEventTo_p_wxObject(void *x) {
2582 return (void *)((wxObject *) ((wxEvent *) x));
2583 }
2584 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2585 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2586 }
2587 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2588 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2589 }
2590 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2591 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2592 }
2593 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2594 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2595 }
2596 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2597 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2598 }
2599 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2600 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2601 }
2602 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2603 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2604 }
2605 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2606 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2607 }
2608 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2609 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2610 }
2611 static void *_p_wxMediaCtrlTo_p_wxObject(void *x) {
2612 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
2613 }
2614 static void *_p_wxControlTo_p_wxObject(void *x) {
2615 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2616 }
2617 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2618 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2619 }
2620 static void *_p_wxFSFileTo_p_wxObject(void *x) {
2621 return (void *)((wxObject *) ((wxFSFile *) x));
2622 }
2623 static void *_p_wxMediaEventTo_p_wxObject(void *x) {
2624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
2625 }
2626 static void *_p_wxPySizerTo_p_wxObject(void *x) {
2627 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2628 }
2629 static void *_p_wxPyEventTo_p_wxObject(void *x) {
2630 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2631 }
2632 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2633 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2634 }
2635 static void *_p_wxShowEventTo_p_wxObject(void *x) {
2636 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2637 }
2638 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2639 return (void *)((wxObject *) ((wxMenuItem *) x));
2640 }
2641 static void *_p_wxDateEventTo_p_wxObject(void *x) {
2642 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
2643 }
2644 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2645 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2646 }
2647 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2648 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2649 }
2650 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2651 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2652 }
2653 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2654 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2655 }
2656 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2657 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2658 }
2659 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2660 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2661 }
2662 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2663 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2664 }
2665 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2666 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2667 }
2668 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2669 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2670 }
2671 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2672 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2673 }
2674 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2675 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2676 }
2677 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2678 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2679 }
2680 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2681 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2682 }
2683 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2684 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2685 }
2686 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2687 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2688 }
2689 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2690 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2691 }
2692 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2693 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2694 }
2695 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
2696 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
2697 }
2698 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2699 return (void *)((wxObject *) ((wxImageHandler *) x));
2700 }
2701 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2702 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2703 }
2704 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2705 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2706 }
2707 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2708 return (void *)((wxObject *) ((wxEvtHandler *) x));
2709 }
2710 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
2711 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
2712 }
2713 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
2714 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
2715 }
2716 static void *_p_wxImageTo_p_wxObject(void *x) {
2717 return (void *)((wxObject *) ((wxImage *) x));
2718 }
2719 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2720 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2721 }
2722 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2723 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2724 }
2725 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2726 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2727 }
2728 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2729 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2730 }
2731 static void *_p_wxWindowTo_p_wxObject(void *x) {
2732 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2733 }
2734 static void *_p_wxMenuTo_p_wxObject(void *x) {
2735 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2736 }
2737 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2739 }
2740 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2741 return (void *)((wxObject *) ((wxFileSystem *) x));
2742 }
2743 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2745 }
2746 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2747 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2748 }
2749 static void *_p_wxPyAppTo_p_wxObject(void *x) {
2750 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2751 }
2752 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2753 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2754 }
2755 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2756 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2757 }
2758 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2759 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2760 }
2761 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2762 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2763 }
2764 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2765 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2766 }
2767 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2768 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2769 }
2770 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2771 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2772 }
2773 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2775 }
2776 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2777 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2778 }
2779 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2780 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2781 }
2782 static void *_p_wxValidatorTo_p_wxObject(void *x) {
2783 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2784 }
2785 static void *_p_wxControlTo_p_wxWindow(void *x) {
2786 return (void *)((wxWindow *) ((wxControl *) x));
2787 }
2788 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2789 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2790 }
2791 static void *_p_wxMediaCtrlTo_p_wxWindow(void *x) {
2792 return (void *)((wxWindow *) (wxControl *) ((wxMediaCtrl *) x));
2793 }
2794 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2795 return (void *)((wxWindow *) ((wxMenuBar *) x));
2796 }
2797 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
2798 return (void *)((wxValidator *) ((wxPyValidator *) x));
2799 }
2800 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2801 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2802 }
2803 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2804 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2805 }
2806 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2807 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2808 }
2809 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
2810 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
2811 }
2812 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2813 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2814 }
2815 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2816 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2817 }
2818 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2819 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2820 }
2821 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2822 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2823 }
2824 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2825 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2826 }
2827 static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x) {
2828 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxMediaEvent *) x));
2829 }
2830 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2831 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2832 }
2833 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2834 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2835 }
2836 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2837 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2838 }
2839 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2840 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2841 }
2842 static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x) {
2843 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
2844 }
2845 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2846 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2847 }
2848 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2849 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2850 }
2851 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2852 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2853 }
2854 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2855 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2856 }
2857 static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x) {
2858 return (void *)((wxNotifyEvent *) ((wxMediaEvent *) x));
2859 }
2860 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
2861 return (void *)((wxControl *) ((wxControlWithItems *) x));
2862 }
2863 static void *_p_wxMediaCtrlTo_p_wxControl(void *x) {
2864 return (void *)((wxControl *) ((wxMediaCtrl *) x));
2865 }
2866 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
2867 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
2868 }
2869 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
2870 return (void *)((wxEvent *) ((wxMenuEvent *) x));
2871 }
2872 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
2873 return (void *)((wxEvent *) ((wxCloseEvent *) x));
2874 }
2875 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
2876 return (void *)((wxEvent *) ((wxMouseEvent *) x));
2877 }
2878 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
2879 return (void *)((wxEvent *) ((wxEraseEvent *) x));
2880 }
2881 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
2882 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
2883 }
2884 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
2885 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
2886 }
2887 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
2888 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
2889 }
2890 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
2891 return (void *)((wxEvent *) ((wxPyEvent *) x));
2892 }
2893 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
2894 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
2895 }
2896 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
2897 return (void *)((wxEvent *) ((wxIdleEvent *) x));
2898 }
2899 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
2900 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
2901 }
2902 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
2903 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
2904 }
2905 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
2906 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
2907 }
2908 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
2909 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
2910 }
2911 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
2912 return (void *)((wxEvent *) ((wxActivateEvent *) x));
2913 }
2914 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
2915 return (void *)((wxEvent *) ((wxSizeEvent *) x));
2916 }
2917 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
2918 return (void *)((wxEvent *) ((wxMoveEvent *) x));
2919 }
2920 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
2921 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
2922 }
2923 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
2924 return (void *)((wxEvent *) ((wxPaintEvent *) x));
2925 }
2926 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
2927 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
2928 }
2929 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
2930 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
2931 }
2932 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
2933 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
2934 }
2935 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
2936 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
2937 }
2938 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
2939 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2940 }
2941 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
2942 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
2943 }
2944 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
2945 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
2946 }
2947 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
2948 return (void *)((wxEvent *) ((wxFocusEvent *) x));
2949 }
2950 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
2951 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
2952 }
2953 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
2954 return (void *)((wxEvent *) ((wxShowEvent *) x));
2955 }
2956 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
2957 return (void *)((wxEvent *) ((wxCommandEvent *) x));
2958 }
2959 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
2960 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
2961 }
2962 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
2963 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2964 }
2965 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
2966 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
2967 }
2968 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
2969 return (void *)((wxEvent *) ((wxKeyEvent *) x));
2970 }
2971 static void *_p_wxMediaEventTo_p_wxEvent(void *x) {
2972 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
2973 }
2974 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
2975 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
2976 }
2977 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyImageHandler", _p_wxPyImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2978 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2979 static swig_type_info _swigt__p_wxMediaEvent[] = {{"_p_wxMediaEvent", 0, "wxMediaEvent *", 0, 0, 0, 0},{"_p_wxMediaEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2980 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2981 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2982 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2983 static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2984 static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2985 static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2986 static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2987 static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2988 static swig_type_info _swigt__p_wxMediaCtrlPlayerControls[] = {{"_p_wxMediaCtrlPlayerControls", 0, "wxMediaCtrlPlayerControls *", 0, 0, 0, 0},{"_p_wxMediaCtrlPlayerControls", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2989 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2990 static swig_type_info _swigt__p_wxFileOffset[] = {{"_p_wxFileOffset", 0, "wxFileOffset *", 0, 0, 0, 0},{"_p_wxFileOffset", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2991 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2992 static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2993 static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2994 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2995 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2996 static swig_type_info _swigt__p_wxMediaCtrl[] = {{"_p_wxMediaCtrl", 0, "wxMediaCtrl *", 0, 0, 0, 0},{"_p_wxMediaCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2997 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2998 static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2999 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3000
3001 static swig_type_info *swig_types_initial[] = {
3002 _swigt__p_wxObject,
3003 _swigt__p_unsigned_char,
3004 _swigt__p_wxMediaEvent,
3005 _swigt__p_wxWindow,
3006 _swigt__p_wxValidator,
3007 _swigt__p_wxCommandEvent,
3008 _swigt__p_unsigned_long,
3009 _swigt__p_unsigned_int,
3010 _swigt__unsigned_int,
3011 _swigt__p_form_ops_t,
3012 _swigt__p_wxDuplexMode,
3013 _swigt__p_wxMediaCtrlPlayerControls,
3014 _swigt__p_char,
3015 _swigt__p_wxFileOffset,
3016 _swigt__p_wxEvtHandler,
3017 _swigt__std__ptrdiff_t,
3018 _swigt__ptrdiff_t,
3019 _swigt__p_wxNotifyEvent,
3020 _swigt__p_wxControl,
3021 _swigt__p_wxMediaCtrl,
3022 _swigt__p_wxEvent,
3023 _swigt__p_wxPaperSize,
3024 _swigt__p_int,
3025 0
3026 };
3027
3028
3029 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3030
3031 static swig_const_info swig_const_table[] = {
3032 {0, 0, 0, 0.0, 0, 0}};
3033
3034 #ifdef __cplusplus
3035 }
3036 #endif
3037
3038
3039 #ifdef __cplusplus
3040 extern "C" {
3041 #endif
3042
3043 /* Python-specific SWIG API */
3044 #define SWIG_newvarlink() SWIG_Python_newvarlink()
3045 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
3046 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
3047
3048 /* -----------------------------------------------------------------------------
3049 * global variable support code.
3050 * ----------------------------------------------------------------------------- */
3051
3052 typedef struct swig_globalvar {
3053 char *name; /* Name of global variable */
3054 PyObject *(*get_attr)(); /* Return the current value */
3055 int (*set_attr)(PyObject *); /* Set the value */
3056 struct swig_globalvar *next;
3057 } swig_globalvar;
3058
3059 typedef struct swig_varlinkobject {
3060 PyObject_HEAD
3061 swig_globalvar *vars;
3062 } swig_varlinkobject;
3063
3064 static PyObject *
3065 swig_varlink_repr(swig_varlinkobject *v) {
3066 v = v;
3067 return PyString_FromString("<Swig global variables>");
3068 }
3069
3070 static int
3071 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
3072 swig_globalvar *var;
3073 flags = flags;
3074 fprintf(fp,"Swig global variables { ");
3075 for (var = v->vars; var; var=var->next) {
3076 fprintf(fp,"%s", var->name);
3077 if (var->next) fprintf(fp,", ");
3078 }
3079 fprintf(fp," }\n");
3080 return 0;
3081 }
3082
3083 static PyObject *
3084 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
3085 swig_globalvar *var = v->vars;
3086 while (var) {
3087 if (strcmp(var->name,n) == 0) {
3088 return (*var->get_attr)();
3089 }
3090 var = var->next;
3091 }
3092 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3093 return NULL;
3094 }
3095
3096 static int
3097 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
3098 swig_globalvar *var = v->vars;
3099 while (var) {
3100 if (strcmp(var->name,n) == 0) {
3101 return (*var->set_attr)(p);
3102 }
3103 var = var->next;
3104 }
3105 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3106 return 1;
3107 }
3108
3109 static PyTypeObject varlinktype = {
3110 PyObject_HEAD_INIT(0)
3111 0, /* Number of items in variable part (ob_size) */
3112 (char *)"swigvarlink", /* Type name (tp_name) */
3113 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
3114 0, /* Itemsize (tp_itemsize) */
3115 0, /* Deallocator (tp_dealloc) */
3116 (printfunc) swig_varlink_print, /* Print (tp_print) */
3117 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
3118 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
3119 0, /* tp_compare */
3120 (reprfunc) swig_varlink_repr, /* tp_repr */
3121 0, /* tp_as_number */
3122 0, /* tp_as_sequence */
3123 0, /* tp_as_mapping */
3124 0, /* tp_hash */
3125 0, /* tp_call */
3126 0, /* tp_str */
3127 0, /* tp_getattro */
3128 0, /* tp_setattro */
3129 0, /* tp_as_buffer */
3130 0, /* tp_flags */
3131 0, /* tp_doc */
3132 #if PY_VERSION_HEX >= 0x02000000
3133 0, /* tp_traverse */
3134 0, /* tp_clear */
3135 #endif
3136 #if PY_VERSION_HEX >= 0x02010000
3137 0, /* tp_richcompare */
3138 0, /* tp_weaklistoffset */
3139 #endif
3140 #if PY_VERSION_HEX >= 0x02020000
3141 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
3142 #endif
3143 #if PY_VERSION_HEX >= 0x02030000
3144 0, /* tp_del */
3145 #endif
3146 #ifdef COUNT_ALLOCS
3147 0,0,0,0 /* tp_alloc -> tp_next */
3148 #endif
3149 };
3150
3151 /* Create a variable linking object for use later */
3152 static PyObject *
3153 SWIG_Python_newvarlink(void) {
3154 swig_varlinkobject *result = 0;
3155 result = PyMem_NEW(swig_varlinkobject,1);
3156 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
3157 result->ob_type = &varlinktype;
3158 result->vars = 0;
3159 result->ob_refcnt = 0;
3160 Py_XINCREF((PyObject *) result);
3161 return ((PyObject*) result);
3162 }
3163
3164 static void
3165 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
3166 swig_varlinkobject *v;
3167 swig_globalvar *gv;
3168 v= (swig_varlinkobject *) p;
3169 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
3170 gv->name = (char *) malloc(strlen(name)+1);
3171 strcpy(gv->name,name);
3172 gv->get_attr = get_attr;
3173 gv->set_attr = set_attr;
3174 gv->next = v->vars;
3175 v->vars = gv;
3176 }
3177
3178 /* -----------------------------------------------------------------------------
3179 * constants/methods manipulation
3180 * ----------------------------------------------------------------------------- */
3181
3182 /* Install Constants */
3183 static void
3184 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
3185 PyObject *obj = 0;
3186 size_t i;
3187 for (i = 0; constants[i].type; i++) {
3188 switch(constants[i].type) {
3189 case SWIG_PY_INT:
3190 obj = PyInt_FromLong(constants[i].lvalue);
3191 break;
3192 case SWIG_PY_FLOAT:
3193 obj = PyFloat_FromDouble(constants[i].dvalue);
3194 break;
3195 case SWIG_PY_STRING:
3196 if (constants[i].pvalue) {
3197 obj = PyString_FromString((char *) constants[i].pvalue);
3198 } else {
3199 Py_INCREF(Py_None);
3200 obj = Py_None;
3201 }
3202 break;
3203 case SWIG_PY_POINTER:
3204 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
3205 break;
3206 case SWIG_PY_BINARY:
3207 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
3208 break;
3209 default:
3210 obj = 0;
3211 break;
3212 }
3213 if (obj) {
3214 PyDict_SetItemString(d,constants[i].name,obj);
3215 Py_DECREF(obj);
3216 }
3217 }
3218 }
3219
3220 /* -----------------------------------------------------------------------------*/
3221 /* Fix SwigMethods to carry the callback ptrs when needed */
3222 /* -----------------------------------------------------------------------------*/
3223
3224 static void
3225 SWIG_Python_FixMethods(PyMethodDef *methods,
3226 swig_const_info *const_table,
3227 swig_type_info **types,
3228 swig_type_info **types_initial) {
3229 size_t i;
3230 for (i = 0; methods[i].ml_name; ++i) {
3231 char *c = methods[i].ml_doc;
3232 if (c && (c = strstr(c, "swig_ptr: "))) {
3233 int j;
3234 swig_const_info *ci = 0;
3235 char *name = c + 10;
3236 for (j = 0; const_table[j].type; j++) {
3237 if (strncmp(const_table[j].name, name,
3238 strlen(const_table[j].name)) == 0) {
3239 ci = &(const_table[j]);
3240 break;
3241 }
3242 }
3243 if (ci) {
3244 size_t shift = (ci->ptype) - types;
3245 swig_type_info *ty = types_initial[shift];
3246 size_t ldoc = (c - methods[i].ml_doc);
3247 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
3248 char *ndoc = (char*)malloc(ldoc + lptr + 10);
3249 char *buff = ndoc;
3250 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
3251 strncpy(buff, methods[i].ml_doc, ldoc);
3252 buff += ldoc;
3253 strncpy(buff, "swig_ptr: ", 10);
3254 buff += 10;
3255 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
3256 methods[i].ml_doc = ndoc;
3257 }
3258 }
3259 }
3260 }
3261
3262 /* -----------------------------------------------------------------------------*
3263 * Initialize type list
3264 * -----------------------------------------------------------------------------*/
3265
3266 #if PY_MAJOR_VERSION < 2
3267 /* PyModule_AddObject function was introduced in Python 2.0. The following function
3268 is copied out of Python/modsupport.c in python version 2.3.4 */
3269 static int
3270 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
3271 {
3272 PyObject *dict;
3273 if (!PyModule_Check(m)) {
3274 PyErr_SetString(PyExc_TypeError,
3275 "PyModule_AddObject() needs module as first arg");
3276 return -1;
3277 }
3278 if (!o) {
3279 PyErr_SetString(PyExc_TypeError,
3280 "PyModule_AddObject() needs non-NULL value");
3281 return -1;
3282 }
3283
3284 dict = PyModule_GetDict(m);
3285 if (dict == NULL) {
3286 /* Internal error -- modules must have a dict! */
3287 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
3288 PyModule_GetName(m));
3289 return -1;
3290 }
3291 if (PyDict_SetItemString(dict, name, o))
3292 return -1;
3293 Py_DECREF(o);
3294 return 0;
3295 }
3296 #endif
3297
3298 static swig_type_info **
3299 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
3300 static PyMethodDef swig_empty_runtime_method_table[] = {
3301 {
3302 NULL, NULL, 0, NULL
3303 }
3304 };/* Sentinel */
3305
3306 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
3307 swig_empty_runtime_method_table);
3308 PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL);
3309 if (pointer && module) {
3310 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
3311 }
3312 return type_list_handle;
3313 }
3314
3315 static swig_type_info **
3316 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
3317 swig_type_info **type_pointer;
3318
3319 /* first check if module already created */
3320 type_pointer = SWIG_Python_GetTypeListHandle();
3321 if (type_pointer) {
3322 return type_pointer;
3323 } else {
3324 /* create a new module and variable */
3325 return SWIG_Python_SetTypeListHandle(type_list_handle);
3326 }
3327 }
3328
3329 #ifdef __cplusplus
3330 }
3331 #endif
3332
3333 /* -----------------------------------------------------------------------------*
3334 * Partial Init method
3335 * -----------------------------------------------------------------------------*/
3336
3337 #ifdef SWIG_LINK_RUNTIME
3338 #ifdef __cplusplus
3339 extern "C"
3340 #endif
3341 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
3342 #endif
3343
3344 #ifdef __cplusplus
3345 extern "C"
3346 #endif
3347 SWIGEXPORT(void) SWIG_init(void) {
3348 static PyObject *SWIG_globals = 0;
3349 static int typeinit = 0;
3350 PyObject *m, *d;
3351 int i;
3352 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3353
3354 /* Fix SwigMethods to carry the callback ptrs when needed */
3355 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
3356
3357 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3358 d = PyModule_GetDict(m);
3359
3360 if (!typeinit) {
3361 #ifdef SWIG_LINK_RUNTIME
3362 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
3363 #else
3364 # ifndef SWIG_STATIC_RUNTIME
3365 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
3366 # endif
3367 #endif
3368 for (i = 0; swig_types_initial[i]; i++) {
3369 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3370 }
3371 typeinit = 1;
3372 }
3373 SWIG_InstallConstants(d,swig_const_table);
3374
3375 {
3376 PyDict_SetItemString(d,"MEDIASTATE_STOPPED", SWIG_From_int((int)(wxMEDIASTATE_STOPPED)));
3377 }
3378 {
3379 PyDict_SetItemString(d,"MEDIASTATE_PAUSED", SWIG_From_int((int)(wxMEDIASTATE_PAUSED)));
3380 }
3381 {
3382 PyDict_SetItemString(d,"MEDIASTATE_PLAYING", SWIG_From_int((int)(wxMEDIASTATE_PLAYING)));
3383 }
3384 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
3385 SWIG_addvarlink(SWIG_globals,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get, _wrap_MediaCtrlNameStr_set);
3386 PyDict_SetItemString(d, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED));
3387 PyDict_SetItemString(d, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP));
3388
3389
3390 }
3391