]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/media_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / 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 Py_DECREF(str);
1041 return;
1042 }
1043 }
1044 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1045 } else {
1046 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1047 }
1048 }
1049
1050 SWIGRUNTIMEINLINE void
1051 SWIG_Python_NullRef(const char *type)
1052 {
1053 if (type) {
1054 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1055 } else {
1056 PyErr_Format(PyExc_TypeError, "null reference was received");
1057 }
1058 }
1059
1060 SWIGRUNTIME int
1061 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1062 {
1063 if (PyErr_Occurred()) {
1064 PyObject *type = 0;
1065 PyObject *value = 0;
1066 PyObject *traceback = 0;
1067 PyErr_Fetch(&type, &value, &traceback);
1068 if (value) {
1069 PyObject *old_str = PyObject_Str(value);
1070 Py_XINCREF(type);
1071 PyErr_Clear();
1072 if (infront) {
1073 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1074 } else {
1075 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1076 }
1077 Py_DECREF(old_str);
1078 }
1079 return 1;
1080 } else {
1081 return 0;
1082 }
1083 }
1084
1085 SWIGRUNTIME int
1086 SWIG_Python_ArgFail(int argnum)
1087 {
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1090 char mesg[256];
1091 sprintf(mesg, "argument number %d:", argnum);
1092 return SWIG_Python_AddErrMesg(mesg, 1);
1093 } else {
1094 return 0;
1095 }
1096 }
1097
1098
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1102
1103 /* Convert a pointer value */
1104 SWIGRUNTIME int
1105 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1106 swig_type_info *tc;
1107 const char *c = 0;
1108 static PyObject *SWIG_this = 0;
1109 int newref = 0;
1110 PyObject *pyobj = 0;
1111 void *vptr;
1112
1113 if (!obj) return 0;
1114 if (obj == Py_None) {
1115 *ptr = 0;
1116 return 0;
1117 }
1118
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj))) {
1121 if (!SWIG_this)
1122 SWIG_this = PyString_FromString("this");
1123 pyobj = obj;
1124 obj = PyObject_GetAttr(obj,SWIG_this);
1125 newref = 1;
1126 if (!obj) goto type_error;
1127 if (!PySwigObject_Check(obj)) {
1128 Py_DECREF(obj);
1129 goto type_error;
1130 }
1131 }
1132 vptr = PySwigObject_AsVoidPtr(obj);
1133 c = (const char *) PySwigObject_GetDesc(obj);
1134 if (newref) { Py_DECREF(obj); }
1135 goto type_check;
1136 #else
1137 if (!(PyString_Check(obj))) {
1138 if (!SWIG_this)
1139 SWIG_this = PyString_FromString("this");
1140 pyobj = obj;
1141 obj = PyObject_GetAttr(obj,SWIG_this);
1142 newref = 1;
1143 if (!obj) goto type_error;
1144 if (!PyString_Check(obj)) {
1145 Py_DECREF(obj);
1146 goto type_error;
1147 }
1148 }
1149 c = PyString_AS_STRING(obj);
1150 /* Pointer values must start with leading underscore */
1151 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1152 if (newref) { Py_DECREF(obj); }
1153 if (!c) goto type_error;
1154 #endif
1155
1156 type_check:
1157
1158 if (ty) {
1159 tc = SWIG_TypeCheck(c,ty);
1160 if (!tc) goto type_error;
1161 *ptr = SWIG_TypeCast(tc,vptr);
1162 } else {
1163 *ptr = vptr;
1164 }
1165
1166 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1167 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1168 }
1169 return 0;
1170
1171 type_error:
1172 PyErr_Clear();
1173 if (pyobj && !obj) {
1174 obj = pyobj;
1175 if (PyCFunction_Check(obj)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1178 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1179 if (c) {
1180 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1181 if (!c) goto type_error;
1182 goto type_check;
1183 }
1184 }
1185 }
1186 if (flags & SWIG_POINTER_EXCEPTION) {
1187 if (ty) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1189 } else {
1190 SWIG_Python_TypeError("C/C++ pointer", obj);
1191 }
1192 }
1193 return -1;
1194 }
1195
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1197 SWIGRUNTIME void *
1198 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1199 void *result;
1200 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1201 PyErr_Clear();
1202 if (flags & SWIG_POINTER_EXCEPTION) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1204 SWIG_Python_ArgFail(argnum);
1205 }
1206 }
1207 return result;
1208 }
1209
1210 /* Convert a packed value value */
1211 SWIGRUNTIME int
1212 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1213 swig_type_info *tc;
1214 const char *c = 0;
1215
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c = PySwigPacked_UnpackData(obj, ptr, sz);
1218 #else
1219 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1220 c = PyString_AS_STRING(obj);
1221 /* Pointer values must start with leading underscore */
1222 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1223 #endif
1224 if (!c) goto type_error;
1225 if (ty) {
1226 tc = SWIG_TypeCheck(c,ty);
1227 if (!tc) goto type_error;
1228 }
1229 return 0;
1230
1231 type_error:
1232 PyErr_Clear();
1233 if (flags & SWIG_POINTER_EXCEPTION) {
1234 if (ty) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1236 } else {
1237 SWIG_Python_TypeError("C/C++ packed data", obj);
1238 }
1239 }
1240 return -1;
1241 }
1242
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject *
1245 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1246 PyObject *robj = 0;
1247 if (!ptr) {
1248 Py_INCREF(Py_None);
1249 return Py_None;
1250 }
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1253 #else
1254 {
1255 char result[SWIG_BUFFER_SIZE];
1256 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1257 PyString_FromString(result) : 0;
1258 }
1259 #endif
1260 if (!robj || (robj == Py_None)) return robj;
1261 if (type->clientdata) {
1262 PyObject *inst;
1263 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1264 Py_DECREF(robj);
1265 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1266 Py_DECREF(args);
1267 if (inst) {
1268 if (own) {
1269 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1270 }
1271 robj = inst;
1272 }
1273 }
1274 return robj;
1275 }
1276
1277 SWIGRUNTIME PyObject *
1278 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1279 PyObject *robj = 0;
1280 if (!ptr) {
1281 Py_INCREF(Py_None);
1282 return Py_None;
1283 }
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1286 #else
1287 {
1288 char result[SWIG_BUFFER_SIZE];
1289 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1290 PyString_FromString(result) : 0;
1291 }
1292 #endif
1293 return robj;
1294 }
1295
1296 /* -----------------------------------------------------------------------------*
1297 * Get type list
1298 * -----------------------------------------------------------------------------*/
1299
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1302 #endif
1303
1304 SWIGRUNTIME swig_type_info **
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer = (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1311 #else
1312 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1314 if (PyErr_Occurred()) {
1315 PyErr_Clear();
1316 type_pointer = (void *)0;
1317 }
1318 }
1319 #endif
1320 return (swig_type_info **) type_pointer;
1321 }
1322
1323 /*
1324 Search for a swig_type_info structure
1325 */
1326 SWIGRUNTIMEINLINE swig_type_info *
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info **tlh = SWIG_Python_GetTypeListHandle();
1329 return tlh ? *tlh : (swig_type_info*)0;
1330 }
1331
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1333
1334 #ifdef __cplusplus
1335 }
1336 #endif
1337
1338
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1340
1341 #define SWIGTYPE_p_wxObject swig_types[0]
1342 #define SWIGTYPE_p_unsigned_char swig_types[1]
1343 #define SWIGTYPE_p_wxMediaEvent swig_types[2]
1344 #define SWIGTYPE_p_wxWindow swig_types[3]
1345 #define SWIGTYPE_p_wxValidator swig_types[4]
1346 #define SWIGTYPE_p_wxCommandEvent swig_types[5]
1347 #define SWIGTYPE_p_unsigned_long swig_types[6]
1348 #define SWIGTYPE_p_unsigned_int swig_types[7]
1349 #define SWIGTYPE_unsigned_int swig_types[8]
1350 #define SWIGTYPE_p_form_ops_t swig_types[9]
1351 #define SWIGTYPE_p_wxDuplexMode swig_types[10]
1352 #define SWIGTYPE_p_char swig_types[11]
1353 #define SWIGTYPE_p_wxFileOffset swig_types[12]
1354 #define SWIGTYPE_p_wxEvtHandler swig_types[13]
1355 #define SWIGTYPE_std__ptrdiff_t swig_types[14]
1356 #define SWIGTYPE_ptrdiff_t swig_types[15]
1357 #define SWIGTYPE_p_wxNotifyEvent swig_types[16]
1358 #define SWIGTYPE_p_wxControl swig_types[17]
1359 #define SWIGTYPE_p_wxMediaCtrl swig_types[18]
1360 #define SWIGTYPE_p_wxEvent swig_types[19]
1361 #define SWIGTYPE_p_wxPaperSize swig_types[20]
1362 #define SWIGTYPE_p_int swig_types[21]
1363 static swig_type_info *swig_types[23];
1364
1365 /* -------- TYPES TABLE (END) -------- */
1366
1367
1368 /*-----------------------------------------------
1369 @(target):= _media.so
1370 ------------------------------------------------*/
1371 #define SWIG_init init_media
1372
1373 #define SWIG_name "_media"
1374
1375 #include "wx/wxPython/wxPython.h"
1376 #include "wx/wxPython/pyclasses.h"
1377
1378 #include <wx/mediactrl.h>
1379 #include <wx/uri.h>
1380
1381
1382 #if !wxUSE_MEDIACTRL
1383 enum wxMediaState
1384 {
1385 wxMEDIASTATE_STOPPED=0,
1386 wxMEDIASTATE_PAUSED=0,
1387 wxMEDIASTATE_PLAYING=0
1388 };
1389
1390
1391 class wxMediaEvent : public wxNotifyEvent
1392 {
1393 public:
1394 wxMediaEvent(wxEventType, int ) { wxPyRaiseNotImplemented(); }
1395 };
1396
1397 class wxMediaCtrl : public wxControl
1398 {
1399 public:
1400 wxMediaCtrl() { wxPyRaiseNotImplemented(); }
1401
1402 wxMediaCtrl(wxWindow* , wxWindowID ,
1403 const wxString& ,
1404 const wxPoint& ,
1405 const wxSize& ,
1406 long style ,
1407 const wxString& ,
1408 const wxValidator& ,
1409 const wxString& ) { wxPyRaiseNotImplemented(); }
1410
1411 bool Create(wxWindow* , wxWindowID ,
1412 const wxString& ,
1413 const wxPoint& ,
1414 const wxSize& ,
1415 long style ,
1416 const wxString& ,
1417 const wxValidator& ,
1418 const wxString& ) { return false; }
1419
1420 bool Play() { return false; }
1421 bool Pause() { return false; }
1422 bool Stop() { return false; }
1423
1424 bool Load(const wxString& fileName) { return false; }
1425 bool Load(const wxURI& location) { return false; }
1426
1427 wxMediaState GetState() { return wxMEDIASTATE_STOPPED; }
1428
1429 double GetPlaybackRate() { return 0.0; }
1430 bool SetPlaybackRate(double dRate) { return false; }
1431
1432 wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart)
1433 { return 0; }
1434
1435 wxFileOffset Tell() { return 0; }
1436 wxFileOffset Length() { return 0; }
1437 };
1438
1439 const wxEventType wxEVT_MEDIA_FINISHED = 0;
1440 const wxEventType wxEVT_MEDIA_STOP = 0;
1441
1442 #endif
1443
1444
1445 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1446 #define SWIG_From_int PyInt_FromLong
1447 /*@@*/
1448
1449
1450 #include <limits.h>
1451
1452
1453 SWIGINTERN int
1454 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1455 const char *errmsg)
1456 {
1457 if (value < min_value) {
1458 if (errmsg) {
1459 PyErr_Format(PyExc_OverflowError,
1460 "value %ld is less than '%s' minimum %ld",
1461 value, errmsg, min_value);
1462 }
1463 return 0;
1464 } else if (value > max_value) {
1465 if (errmsg) {
1466 PyErr_Format(PyExc_OverflowError,
1467 "value %ld is greater than '%s' maximum %ld",
1468 value, errmsg, max_value);
1469 }
1470 return 0;
1471 }
1472 return 1;
1473 }
1474
1475
1476 SWIGINTERN int
1477 SWIG_AsVal_long(PyObject* obj, long* val)
1478 {
1479 if (PyNumber_Check(obj)) {
1480 if (val) *val = PyInt_AsLong(obj);
1481 return 1;
1482 }
1483 else {
1484 SWIG_type_error("number", obj);
1485 }
1486 return 0;
1487 }
1488
1489
1490 #if INT_MAX != LONG_MAX
1491 SWIGINTERN int
1492 SWIG_AsVal_int(PyObject *obj, int *val)
1493 {
1494 const char* errmsg = val ? "int" : (char*)0;
1495 long v;
1496 if (SWIG_AsVal_long(obj, &v)) {
1497 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1498 if (val) *val = (int)(v);
1499 return 1;
1500 } else {
1501 return 0;
1502 }
1503 } else {
1504 PyErr_Clear();
1505 }
1506 if (val) {
1507 SWIG_type_error(errmsg, obj);
1508 }
1509 return 0;
1510 }
1511 #else
1512 SWIGINTERNSHORT int
1513 SWIG_AsVal_int(PyObject *obj, int *val)
1514 {
1515 return SWIG_AsVal_long(obj,(long*)val);
1516 }
1517 #endif
1518
1519
1520 SWIGINTERNSHORT int
1521 SWIG_As_int(PyObject* obj)
1522 {
1523 int v;
1524 if (!SWIG_AsVal_int(obj, &v)) {
1525 /*
1526 this is needed to make valgrind/purify happier.
1527 */
1528 memset((void*)&v, 0, sizeof(int));
1529 }
1530 return v;
1531 }
1532
1533
1534 SWIGINTERNSHORT int
1535 SWIG_Check_int(PyObject* obj)
1536 {
1537 return SWIG_AsVal_int(obj, (int*)0);
1538 }
1539
1540 static const wxString wxPyEmptyString(wxEmptyString);
1541 static const wxString wxPyMediaCtrlNameStr(wxT("mediaCtrl"));
1542
1543 SWIGINTERNSHORT long
1544 SWIG_As_long(PyObject* obj)
1545 {
1546 long v;
1547 if (!SWIG_AsVal_long(obj, &v)) {
1548 /*
1549 this is needed to make valgrind/purify happier.
1550 */
1551 memset((void*)&v, 0, sizeof(long));
1552 }
1553 return v;
1554 }
1555
1556
1557 SWIGINTERNSHORT int
1558 SWIG_Check_long(PyObject* obj)
1559 {
1560 return SWIG_AsVal_long(obj, (long*)0);
1561 }
1562
1563 static bool wxMediaCtrl_LoadFromURI(wxMediaCtrl *self,wxString const &location){
1564 return self->Load(wxURI(location));
1565 }
1566
1567 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1568 #define SWIG_From_double PyFloat_FromDouble
1569 /*@@*/
1570
1571
1572 SWIGINTERN int
1573 SWIG_AsVal_double(PyObject *obj, double* val)
1574 {
1575 if (PyNumber_Check(obj)) {
1576 if (val) *val = PyFloat_AsDouble(obj);
1577 return 1;
1578 }
1579 else {
1580 SWIG_type_error("number", obj);
1581 }
1582 return 0;
1583 }
1584
1585
1586 SWIGINTERNSHORT double
1587 SWIG_As_double(PyObject* obj)
1588 {
1589 double v;
1590 if (!SWIG_AsVal_double(obj, &v)) {
1591 /*
1592 this is needed to make valgrind/purify happier.
1593 */
1594 memset((void*)&v, 0, sizeof(double));
1595 }
1596 return v;
1597 }
1598
1599
1600 SWIGINTERNSHORT int
1601 SWIG_Check_double(PyObject* obj)
1602 {
1603 return SWIG_AsVal_double(obj, (double*)0);
1604 }
1605
1606 #ifdef __cplusplus
1607 extern "C" {
1608 #endif
1609 static PyObject *_wrap_new_MediaEvent(PyObject *, PyObject *args, PyObject *kwargs) {
1610 PyObject *resultobj;
1611 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
1612 int arg2 = (int) 0 ;
1613 wxMediaEvent *result;
1614 PyObject * obj0 = 0 ;
1615 PyObject * obj1 = 0 ;
1616 char *kwnames[] = {
1617 (char *) "commandType",(char *) "id", NULL
1618 };
1619
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MediaEvent",kwnames,&obj0,&obj1)) goto fail;
1621 if (obj0) {
1622 {
1623 arg1 = (wxEventType)(SWIG_As_int(obj0));
1624 if (SWIG_arg_fail(1)) SWIG_fail;
1625 }
1626 }
1627 if (obj1) {
1628 {
1629 arg2 = (int)(SWIG_As_int(obj1));
1630 if (SWIG_arg_fail(2)) SWIG_fail;
1631 }
1632 }
1633 {
1634 PyThreadState* __tstate = wxPyBeginAllowThreads();
1635 result = (wxMediaEvent *)new wxMediaEvent(arg1,arg2);
1636
1637 wxPyEndAllowThreads(__tstate);
1638 if (PyErr_Occurred()) SWIG_fail;
1639 }
1640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaEvent, 1);
1641 return resultobj;
1642 fail:
1643 return NULL;
1644 }
1645
1646
1647 static PyObject * MediaEvent_swigregister(PyObject *, PyObject *args) {
1648 PyObject *obj;
1649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1650 SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent, obj);
1651 Py_INCREF(obj);
1652 return Py_BuildValue((char *)"");
1653 }
1654 static int _wrap_MediaCtrlNameStr_set(PyObject *) {
1655 PyErr_SetString(PyExc_TypeError,"Variable MediaCtrlNameStr is read-only.");
1656 return 1;
1657 }
1658
1659
1660 static PyObject *_wrap_MediaCtrlNameStr_get(void) {
1661 PyObject *pyobj;
1662
1663 {
1664 #if wxUSE_UNICODE
1665 pyobj = PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
1666 #else
1667 pyobj = PyString_FromStringAndSize((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
1668 #endif
1669 }
1670 return pyobj;
1671 }
1672
1673
1674 static PyObject *_wrap_new_MediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
1675 PyObject *resultobj;
1676 wxWindow *arg1 = (wxWindow *) 0 ;
1677 int arg2 = (int) -1 ;
1678 wxString const &arg3_defvalue = wxPyEmptyString ;
1679 wxString *arg3 = (wxString *) &arg3_defvalue ;
1680 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1681 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1682 wxSize const &arg5_defvalue = wxDefaultSize ;
1683 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1684 long arg6 = (long) 0 ;
1685 wxString const &arg7_defvalue = wxPyEmptyString ;
1686 wxString *arg7 = (wxString *) &arg7_defvalue ;
1687 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1688 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1689 wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ;
1690 wxString *arg9 = (wxString *) &arg9_defvalue ;
1691 wxMediaCtrl *result;
1692 bool temp3 = false ;
1693 wxPoint temp4 ;
1694 wxSize temp5 ;
1695 bool temp7 = false ;
1696 bool temp9 = false ;
1697 PyObject * obj0 = 0 ;
1698 PyObject * obj1 = 0 ;
1699 PyObject * obj2 = 0 ;
1700 PyObject * obj3 = 0 ;
1701 PyObject * obj4 = 0 ;
1702 PyObject * obj5 = 0 ;
1703 PyObject * obj6 = 0 ;
1704 PyObject * obj7 = 0 ;
1705 PyObject * obj8 = 0 ;
1706 char *kwnames[] = {
1707 (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
1708 };
1709
1710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1711 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1712 if (SWIG_arg_fail(1)) SWIG_fail;
1713 if (obj1) {
1714 {
1715 arg2 = (int)(SWIG_As_int(obj1));
1716 if (SWIG_arg_fail(2)) SWIG_fail;
1717 }
1718 }
1719 if (obj2) {
1720 {
1721 arg3 = wxString_in_helper(obj2);
1722 if (arg3 == NULL) SWIG_fail;
1723 temp3 = true;
1724 }
1725 }
1726 if (obj3) {
1727 {
1728 arg4 = &temp4;
1729 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1730 }
1731 }
1732 if (obj4) {
1733 {
1734 arg5 = &temp5;
1735 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1736 }
1737 }
1738 if (obj5) {
1739 {
1740 arg6 = (long)(SWIG_As_long(obj5));
1741 if (SWIG_arg_fail(6)) SWIG_fail;
1742 }
1743 }
1744 if (obj6) {
1745 {
1746 arg7 = wxString_in_helper(obj6);
1747 if (arg7 == NULL) SWIG_fail;
1748 temp7 = true;
1749 }
1750 }
1751 if (obj7) {
1752 {
1753 SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
1754 if (SWIG_arg_fail(8)) SWIG_fail;
1755 if (arg8 == NULL) {
1756 SWIG_null_ref("wxValidator");
1757 }
1758 if (SWIG_arg_fail(8)) SWIG_fail;
1759 }
1760 }
1761 if (obj8) {
1762 {
1763 arg9 = wxString_in_helper(obj8);
1764 if (arg9 == NULL) SWIG_fail;
1765 temp9 = true;
1766 }
1767 }
1768 {
1769 if (!wxPyCheckForApp()) SWIG_fail;
1770 PyThreadState* __tstate = wxPyBeginAllowThreads();
1771 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);
1772
1773 wxPyEndAllowThreads(__tstate);
1774 if (PyErr_Occurred()) SWIG_fail;
1775 }
1776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
1777 {
1778 if (temp3)
1779 delete arg3;
1780 }
1781 {
1782 if (temp7)
1783 delete arg7;
1784 }
1785 {
1786 if (temp9)
1787 delete arg9;
1788 }
1789 return resultobj;
1790 fail:
1791 {
1792 if (temp3)
1793 delete arg3;
1794 }
1795 {
1796 if (temp7)
1797 delete arg7;
1798 }
1799 {
1800 if (temp9)
1801 delete arg9;
1802 }
1803 return NULL;
1804 }
1805
1806
1807 static PyObject *_wrap_new_PreMediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
1808 PyObject *resultobj;
1809 wxMediaCtrl *result;
1810 char *kwnames[] = {
1811 NULL
1812 };
1813
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMediaCtrl",kwnames)) goto fail;
1815 {
1816 if (!wxPyCheckForApp()) SWIG_fail;
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = (wxMediaCtrl *)new wxMediaCtrl();
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
1824 return resultobj;
1825 fail:
1826 return NULL;
1827 }
1828
1829
1830 static PyObject *_wrap_MediaCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1831 PyObject *resultobj;
1832 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1833 wxWindow *arg2 = (wxWindow *) 0 ;
1834 int arg3 = (int) -1 ;
1835 wxString const &arg4_defvalue = wxPyEmptyString ;
1836 wxString *arg4 = (wxString *) &arg4_defvalue ;
1837 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1838 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1839 wxSize const &arg6_defvalue = wxDefaultSize ;
1840 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1841 long arg7 = (long) 0 ;
1842 wxString const &arg8_defvalue = wxPyEmptyString ;
1843 wxString *arg8 = (wxString *) &arg8_defvalue ;
1844 wxValidator const &arg9_defvalue = wxDefaultValidator ;
1845 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
1846 wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ;
1847 wxString *arg10 = (wxString *) &arg10_defvalue ;
1848 bool result;
1849 bool temp4 = false ;
1850 wxPoint temp5 ;
1851 wxSize temp6 ;
1852 bool temp8 = false ;
1853 bool temp10 = false ;
1854 PyObject * obj0 = 0 ;
1855 PyObject * obj1 = 0 ;
1856 PyObject * obj2 = 0 ;
1857 PyObject * obj3 = 0 ;
1858 PyObject * obj4 = 0 ;
1859 PyObject * obj5 = 0 ;
1860 PyObject * obj6 = 0 ;
1861 PyObject * obj7 = 0 ;
1862 PyObject * obj8 = 0 ;
1863 PyObject * obj9 = 0 ;
1864 char *kwnames[] = {
1865 (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
1866 };
1867
1868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
1869 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
1870 if (SWIG_arg_fail(1)) SWIG_fail;
1871 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1872 if (SWIG_arg_fail(2)) SWIG_fail;
1873 if (obj2) {
1874 {
1875 arg3 = (int)(SWIG_As_int(obj2));
1876 if (SWIG_arg_fail(3)) SWIG_fail;
1877 }
1878 }
1879 if (obj3) {
1880 {
1881 arg4 = wxString_in_helper(obj3);
1882 if (arg4 == NULL) SWIG_fail;
1883 temp4 = true;
1884 }
1885 }
1886 if (obj4) {
1887 {
1888 arg5 = &temp5;
1889 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1890 }
1891 }
1892 if (obj5) {
1893 {
1894 arg6 = &temp6;
1895 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1896 }
1897 }
1898 if (obj6) {
1899 {
1900 arg7 = (long)(SWIG_As_long(obj6));
1901 if (SWIG_arg_fail(7)) SWIG_fail;
1902 }
1903 }
1904 if (obj7) {
1905 {
1906 arg8 = wxString_in_helper(obj7);
1907 if (arg8 == NULL) SWIG_fail;
1908 temp8 = true;
1909 }
1910 }
1911 if (obj8) {
1912 {
1913 SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
1914 if (SWIG_arg_fail(9)) SWIG_fail;
1915 if (arg9 == NULL) {
1916 SWIG_null_ref("wxValidator");
1917 }
1918 if (SWIG_arg_fail(9)) SWIG_fail;
1919 }
1920 }
1921 if (obj9) {
1922 {
1923 arg10 = wxString_in_helper(obj9);
1924 if (arg10 == NULL) SWIG_fail;
1925 temp10 = true;
1926 }
1927 }
1928 {
1929 PyThreadState* __tstate = wxPyBeginAllowThreads();
1930 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);
1931
1932 wxPyEndAllowThreads(__tstate);
1933 if (PyErr_Occurred()) SWIG_fail;
1934 }
1935 {
1936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1937 }
1938 {
1939 if (temp4)
1940 delete arg4;
1941 }
1942 {
1943 if (temp8)
1944 delete arg8;
1945 }
1946 {
1947 if (temp10)
1948 delete arg10;
1949 }
1950 return resultobj;
1951 fail:
1952 {
1953 if (temp4)
1954 delete arg4;
1955 }
1956 {
1957 if (temp8)
1958 delete arg8;
1959 }
1960 {
1961 if (temp10)
1962 delete arg10;
1963 }
1964 return NULL;
1965 }
1966
1967
1968 static PyObject *_wrap_MediaCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) {
1969 PyObject *resultobj;
1970 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1971 bool result;
1972 PyObject * obj0 = 0 ;
1973 char *kwnames[] = {
1974 (char *) "self", NULL
1975 };
1976
1977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Play",kwnames,&obj0)) goto fail;
1978 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
1979 if (SWIG_arg_fail(1)) SWIG_fail;
1980 {
1981 PyThreadState* __tstate = wxPyBeginAllowThreads();
1982 result = (bool)(arg1)->Play();
1983
1984 wxPyEndAllowThreads(__tstate);
1985 if (PyErr_Occurred()) SWIG_fail;
1986 }
1987 {
1988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1989 }
1990 return resultobj;
1991 fail:
1992 return NULL;
1993 }
1994
1995
1996 static PyObject *_wrap_MediaCtrl_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
1997 PyObject *resultobj;
1998 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1999 bool result;
2000 PyObject * obj0 = 0 ;
2001 char *kwnames[] = {
2002 (char *) "self", NULL
2003 };
2004
2005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Pause",kwnames,&obj0)) goto fail;
2006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2007 if (SWIG_arg_fail(1)) SWIG_fail;
2008 {
2009 PyThreadState* __tstate = wxPyBeginAllowThreads();
2010 result = (bool)(arg1)->Pause();
2011
2012 wxPyEndAllowThreads(__tstate);
2013 if (PyErr_Occurred()) SWIG_fail;
2014 }
2015 {
2016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2017 }
2018 return resultobj;
2019 fail:
2020 return NULL;
2021 }
2022
2023
2024 static PyObject *_wrap_MediaCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
2025 PyObject *resultobj;
2026 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2027 bool result;
2028 PyObject * obj0 = 0 ;
2029 char *kwnames[] = {
2030 (char *) "self", NULL
2031 };
2032
2033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Stop",kwnames,&obj0)) goto fail;
2034 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2035 if (SWIG_arg_fail(1)) SWIG_fail;
2036 {
2037 PyThreadState* __tstate = wxPyBeginAllowThreads();
2038 result = (bool)(arg1)->Stop();
2039
2040 wxPyEndAllowThreads(__tstate);
2041 if (PyErr_Occurred()) SWIG_fail;
2042 }
2043 {
2044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2045 }
2046 return resultobj;
2047 fail:
2048 return NULL;
2049 }
2050
2051
2052 static PyObject *_wrap_MediaCtrl_Load(PyObject *, PyObject *args, PyObject *kwargs) {
2053 PyObject *resultobj;
2054 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2055 wxString *arg2 = 0 ;
2056 bool result;
2057 bool temp2 = false ;
2058 PyObject * obj0 = 0 ;
2059 PyObject * obj1 = 0 ;
2060 char *kwnames[] = {
2061 (char *) "self",(char *) "fileName", NULL
2062 };
2063
2064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_Load",kwnames,&obj0,&obj1)) goto fail;
2065 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2066 if (SWIG_arg_fail(1)) SWIG_fail;
2067 {
2068 arg2 = wxString_in_helper(obj1);
2069 if (arg2 == NULL) SWIG_fail;
2070 temp2 = true;
2071 }
2072 {
2073 PyThreadState* __tstate = wxPyBeginAllowThreads();
2074 result = (bool)(arg1)->Load((wxString const &)*arg2);
2075
2076 wxPyEndAllowThreads(__tstate);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 {
2080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2081 }
2082 {
2083 if (temp2)
2084 delete arg2;
2085 }
2086 return resultobj;
2087 fail:
2088 {
2089 if (temp2)
2090 delete arg2;
2091 }
2092 return NULL;
2093 }
2094
2095
2096 static PyObject *_wrap_MediaCtrl_LoadFromURI(PyObject *, PyObject *args, PyObject *kwargs) {
2097 PyObject *resultobj;
2098 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2099 wxString *arg2 = 0 ;
2100 bool result;
2101 bool temp2 = false ;
2102 PyObject * obj0 = 0 ;
2103 PyObject * obj1 = 0 ;
2104 char *kwnames[] = {
2105 (char *) "self",(char *) "location", NULL
2106 };
2107
2108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_LoadFromURI",kwnames,&obj0,&obj1)) goto fail;
2109 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2110 if (SWIG_arg_fail(1)) SWIG_fail;
2111 {
2112 arg2 = wxString_in_helper(obj1);
2113 if (arg2 == NULL) SWIG_fail;
2114 temp2 = true;
2115 }
2116 {
2117 PyThreadState* __tstate = wxPyBeginAllowThreads();
2118 result = (bool)wxMediaCtrl_LoadFromURI(arg1,(wxString const &)*arg2);
2119
2120 wxPyEndAllowThreads(__tstate);
2121 if (PyErr_Occurred()) SWIG_fail;
2122 }
2123 {
2124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2125 }
2126 {
2127 if (temp2)
2128 delete arg2;
2129 }
2130 return resultobj;
2131 fail:
2132 {
2133 if (temp2)
2134 delete arg2;
2135 }
2136 return NULL;
2137 }
2138
2139
2140 static PyObject *_wrap_MediaCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
2141 PyObject *resultobj;
2142 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2143 wxMediaState result;
2144 PyObject * obj0 = 0 ;
2145 char *kwnames[] = {
2146 (char *) "self", NULL
2147 };
2148
2149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetState",kwnames,&obj0)) goto fail;
2150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2151 if (SWIG_arg_fail(1)) SWIG_fail;
2152 {
2153 PyThreadState* __tstate = wxPyBeginAllowThreads();
2154 result = (wxMediaState)(arg1)->GetState();
2155
2156 wxPyEndAllowThreads(__tstate);
2157 if (PyErr_Occurred()) SWIG_fail;
2158 }
2159 resultobj = SWIG_From_int((result));
2160 return resultobj;
2161 fail:
2162 return NULL;
2163 }
2164
2165
2166 static PyObject *_wrap_MediaCtrl_GetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
2167 PyObject *resultobj;
2168 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2169 double result;
2170 PyObject * obj0 = 0 ;
2171 char *kwnames[] = {
2172 (char *) "self", NULL
2173 };
2174
2175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames,&obj0)) goto fail;
2176 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2177 if (SWIG_arg_fail(1)) SWIG_fail;
2178 {
2179 PyThreadState* __tstate = wxPyBeginAllowThreads();
2180 result = (double)(arg1)->GetPlaybackRate();
2181
2182 wxPyEndAllowThreads(__tstate);
2183 if (PyErr_Occurred()) SWIG_fail;
2184 }
2185 {
2186 resultobj = SWIG_From_double((double)(result));
2187 }
2188 return resultobj;
2189 fail:
2190 return NULL;
2191 }
2192
2193
2194 static PyObject *_wrap_MediaCtrl_SetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
2195 PyObject *resultobj;
2196 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2197 double arg2 ;
2198 bool result;
2199 PyObject * obj0 = 0 ;
2200 PyObject * obj1 = 0 ;
2201 char *kwnames[] = {
2202 (char *) "self",(char *) "dRate", NULL
2203 };
2204
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames,&obj0,&obj1)) goto fail;
2206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2207 if (SWIG_arg_fail(1)) SWIG_fail;
2208 {
2209 arg2 = (double)(SWIG_As_double(obj1));
2210 if (SWIG_arg_fail(2)) SWIG_fail;
2211 }
2212 {
2213 PyThreadState* __tstate = wxPyBeginAllowThreads();
2214 result = (bool)(arg1)->SetPlaybackRate(arg2);
2215
2216 wxPyEndAllowThreads(__tstate);
2217 if (PyErr_Occurred()) SWIG_fail;
2218 }
2219 {
2220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2221 }
2222 return resultobj;
2223 fail:
2224 return NULL;
2225 }
2226
2227
2228 static PyObject *_wrap_MediaCtrl_Seek(PyObject *, PyObject *args, PyObject *kwargs) {
2229 PyObject *resultobj;
2230 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2231 wxFileOffset arg2 ;
2232 wxSeekMode arg3 = (wxSeekMode) wxFromStart ;
2233 wxFileOffset result;
2234 PyObject * obj0 = 0 ;
2235 PyObject * obj1 = 0 ;
2236 PyObject * obj2 = 0 ;
2237 char *kwnames[] = {
2238 (char *) "self",(char *) "where",(char *) "mode", NULL
2239 };
2240
2241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MediaCtrl_Seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
2242 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2243 if (SWIG_arg_fail(1)) SWIG_fail;
2244 {
2245 if (sizeof(wxFileOffset) > sizeof(long))
2246 arg2 = PyLong_AsLongLong(obj1);
2247 else
2248 arg2 = PyInt_AsLong(obj1);
2249 }
2250 if (obj2) {
2251 {
2252 arg3 = (wxSeekMode)(SWIG_As_int(obj2));
2253 if (SWIG_arg_fail(3)) SWIG_fail;
2254 }
2255 }
2256 {
2257 PyThreadState* __tstate = wxPyBeginAllowThreads();
2258 result = (arg1)->Seek(arg2,(wxSeekMode )arg3);
2259
2260 wxPyEndAllowThreads(__tstate);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 }
2263 {
2264 if (sizeof(wxFileOffset) > sizeof(long))
2265 resultobj = PyLong_FromLongLong(result);
2266 else
2267 resultobj = PyInt_FromLong(result);
2268 }
2269 return resultobj;
2270 fail:
2271 return NULL;
2272 }
2273
2274
2275 static PyObject *_wrap_MediaCtrl_Tell(PyObject *, PyObject *args, PyObject *kwargs) {
2276 PyObject *resultobj;
2277 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2278 wxFileOffset result;
2279 PyObject * obj0 = 0 ;
2280 char *kwnames[] = {
2281 (char *) "self", NULL
2282 };
2283
2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Tell",kwnames,&obj0)) goto fail;
2285 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2286 if (SWIG_arg_fail(1)) SWIG_fail;
2287 {
2288 PyThreadState* __tstate = wxPyBeginAllowThreads();
2289 result = (arg1)->Tell();
2290
2291 wxPyEndAllowThreads(__tstate);
2292 if (PyErr_Occurred()) SWIG_fail;
2293 }
2294 {
2295 if (sizeof(wxFileOffset) > sizeof(long))
2296 resultobj = PyLong_FromLongLong(result);
2297 else
2298 resultobj = PyInt_FromLong(result);
2299 }
2300 return resultobj;
2301 fail:
2302 return NULL;
2303 }
2304
2305
2306 static PyObject *_wrap_MediaCtrl_Length(PyObject *, PyObject *args, PyObject *kwargs) {
2307 PyObject *resultobj;
2308 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2309 wxFileOffset result;
2310 PyObject * obj0 = 0 ;
2311 char *kwnames[] = {
2312 (char *) "self", NULL
2313 };
2314
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Length",kwnames,&obj0)) goto fail;
2316 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2317 if (SWIG_arg_fail(1)) SWIG_fail;
2318 {
2319 PyThreadState* __tstate = wxPyBeginAllowThreads();
2320 result = (arg1)->Length();
2321
2322 wxPyEndAllowThreads(__tstate);
2323 if (PyErr_Occurred()) SWIG_fail;
2324 }
2325 {
2326 if (sizeof(wxFileOffset) > sizeof(long))
2327 resultobj = PyLong_FromLongLong(result);
2328 else
2329 resultobj = PyInt_FromLong(result);
2330 }
2331 return resultobj;
2332 fail:
2333 return NULL;
2334 }
2335
2336
2337 static PyObject * MediaCtrl_swigregister(PyObject *, PyObject *args) {
2338 PyObject *obj;
2339 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2340 SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl, obj);
2341 Py_INCREF(obj);
2342 return Py_BuildValue((char *)"");
2343 }
2344 static PyMethodDef SwigMethods[] = {
2345 { (char *)"new_MediaEvent", (PyCFunction) _wrap_new_MediaEvent, METH_VARARGS | METH_KEYWORDS, NULL},
2346 { (char *)"MediaEvent_swigregister", MediaEvent_swigregister, METH_VARARGS, NULL},
2347 { (char *)"new_MediaCtrl", (PyCFunction) _wrap_new_MediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2348 { (char *)"new_PreMediaCtrl", (PyCFunction) _wrap_new_PreMediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2349 { (char *)"MediaCtrl_Create", (PyCFunction) _wrap_MediaCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
2350 { (char *)"MediaCtrl_Play", (PyCFunction) _wrap_MediaCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL},
2351 { (char *)"MediaCtrl_Pause", (PyCFunction) _wrap_MediaCtrl_Pause, METH_VARARGS | METH_KEYWORDS, NULL},
2352 { (char *)"MediaCtrl_Stop", (PyCFunction) _wrap_MediaCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
2353 { (char *)"MediaCtrl_Load", (PyCFunction) _wrap_MediaCtrl_Load, METH_VARARGS | METH_KEYWORDS, NULL},
2354 { (char *)"MediaCtrl_LoadFromURI", (PyCFunction) _wrap_MediaCtrl_LoadFromURI, METH_VARARGS | METH_KEYWORDS, NULL},
2355 { (char *)"MediaCtrl_GetState", (PyCFunction) _wrap_MediaCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
2356 { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_GetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL},
2357 { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_SetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL},
2358 { (char *)"MediaCtrl_Seek", (PyCFunction) _wrap_MediaCtrl_Seek, METH_VARARGS | METH_KEYWORDS, NULL},
2359 { (char *)"MediaCtrl_Tell", (PyCFunction) _wrap_MediaCtrl_Tell, METH_VARARGS | METH_KEYWORDS, NULL},
2360 { (char *)"MediaCtrl_Length", (PyCFunction) _wrap_MediaCtrl_Length, METH_VARARGS | METH_KEYWORDS, NULL},
2361 { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister, METH_VARARGS, NULL},
2362 { NULL, NULL, 0, NULL }
2363 };
2364
2365
2366 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2367
2368 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
2369 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
2370 }
2371 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
2372 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
2373 }
2374 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
2375 return (void *)((wxObject *) ((wxSizerItem *) x));
2376 }
2377 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
2378 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
2379 }
2380 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
2381 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
2382 }
2383 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
2384 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
2385 }
2386 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
2387 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
2388 }
2389 static void *_p_wxSizerTo_p_wxObject(void *x) {
2390 return (void *)((wxObject *) ((wxSizer *) x));
2391 }
2392 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2393 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2394 }
2395 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2396 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2397 }
2398 static void *_p_wxEventTo_p_wxObject(void *x) {
2399 return (void *)((wxObject *) ((wxEvent *) x));
2400 }
2401 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2402 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2403 }
2404 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2405 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2406 }
2407 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2408 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2409 }
2410 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2411 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2412 }
2413 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2414 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2415 }
2416 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2417 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2418 }
2419 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2420 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2421 }
2422 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2423 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2424 }
2425 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2426 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2427 }
2428 static void *_p_wxMediaCtrlTo_p_wxObject(void *x) {
2429 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
2430 }
2431 static void *_p_wxControlTo_p_wxObject(void *x) {
2432 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2433 }
2434 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2435 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2436 }
2437 static void *_p_wxFSFileTo_p_wxObject(void *x) {
2438 return (void *)((wxObject *) ((wxFSFile *) x));
2439 }
2440 static void *_p_wxMediaEventTo_p_wxObject(void *x) {
2441 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
2442 }
2443 static void *_p_wxPySizerTo_p_wxObject(void *x) {
2444 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2445 }
2446 static void *_p_wxPyEventTo_p_wxObject(void *x) {
2447 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2448 }
2449 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2450 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2451 }
2452 static void *_p_wxShowEventTo_p_wxObject(void *x) {
2453 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2454 }
2455 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2456 return (void *)((wxObject *) ((wxMenuItem *) x));
2457 }
2458 static void *_p_wxDateEventTo_p_wxObject(void *x) {
2459 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
2460 }
2461 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2462 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2463 }
2464 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2466 }
2467 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2468 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2469 }
2470 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2471 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2472 }
2473 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2474 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2475 }
2476 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2477 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2478 }
2479 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2480 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2481 }
2482 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2483 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2484 }
2485 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2486 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2487 }
2488 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2489 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2490 }
2491 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2492 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2493 }
2494 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2495 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2496 }
2497 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2498 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2499 }
2500 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2501 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2502 }
2503 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2504 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2505 }
2506 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2507 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2508 }
2509 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2510 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2511 }
2512 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2513 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2514 }
2515 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2516 return (void *)((wxObject *) ((wxImageHandler *) x));
2517 }
2518 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2519 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2520 }
2521 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2522 return (void *)((wxObject *) ((wxEvtHandler *) x));
2523 }
2524 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
2525 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
2526 }
2527 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
2528 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
2529 }
2530 static void *_p_wxImageTo_p_wxObject(void *x) {
2531 return (void *)((wxObject *) ((wxImage *) x));
2532 }
2533 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2534 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2535 }
2536 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2537 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2538 }
2539 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2540 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2541 }
2542 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2543 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2544 }
2545 static void *_p_wxWindowTo_p_wxObject(void *x) {
2546 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2547 }
2548 static void *_p_wxMenuTo_p_wxObject(void *x) {
2549 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2550 }
2551 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2552 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2553 }
2554 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2555 return (void *)((wxObject *) ((wxFileSystem *) x));
2556 }
2557 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2558 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2559 }
2560 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2561 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2562 }
2563 static void *_p_wxPyAppTo_p_wxObject(void *x) {
2564 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2565 }
2566 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2567 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2568 }
2569 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2570 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2571 }
2572 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2573 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2574 }
2575 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2577 }
2578 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2579 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2580 }
2581 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2582 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2583 }
2584 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2585 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2586 }
2587 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2588 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2589 }
2590 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2592 }
2593 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2594 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2595 }
2596 static void *_p_wxValidatorTo_p_wxObject(void *x) {
2597 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2598 }
2599 static void *_p_wxControlTo_p_wxWindow(void *x) {
2600 return (void *)((wxWindow *) ((wxControl *) x));
2601 }
2602 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2603 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2604 }
2605 static void *_p_wxMediaCtrlTo_p_wxWindow(void *x) {
2606 return (void *)((wxWindow *) (wxControl *) ((wxMediaCtrl *) x));
2607 }
2608 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2609 return (void *)((wxWindow *) ((wxMenuBar *) x));
2610 }
2611 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
2612 return (void *)((wxValidator *) ((wxPyValidator *) x));
2613 }
2614 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2615 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2616 }
2617 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2618 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2619 }
2620 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2621 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2622 }
2623 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
2624 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
2625 }
2626 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2627 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2628 }
2629 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2630 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2631 }
2632 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2633 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2634 }
2635 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2636 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2637 }
2638 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2639 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2640 }
2641 static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x) {
2642 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxMediaEvent *) x));
2643 }
2644 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2645 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2646 }
2647 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2648 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2649 }
2650 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2651 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2652 }
2653 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2654 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2655 }
2656 static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x) {
2657 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
2658 }
2659 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2660 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2661 }
2662 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2663 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2664 }
2665 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2666 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2667 }
2668 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2669 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2670 }
2671 static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x) {
2672 return (void *)((wxNotifyEvent *) ((wxMediaEvent *) x));
2673 }
2674 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
2675 return (void *)((wxControl *) ((wxControlWithItems *) x));
2676 }
2677 static void *_p_wxMediaCtrlTo_p_wxControl(void *x) {
2678 return (void *)((wxControl *) ((wxMediaCtrl *) x));
2679 }
2680 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
2681 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
2682 }
2683 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
2684 return (void *)((wxEvent *) ((wxMenuEvent *) x));
2685 }
2686 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
2687 return (void *)((wxEvent *) ((wxCloseEvent *) x));
2688 }
2689 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
2690 return (void *)((wxEvent *) ((wxMouseEvent *) x));
2691 }
2692 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
2693 return (void *)((wxEvent *) ((wxEraseEvent *) x));
2694 }
2695 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
2696 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
2697 }
2698 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
2699 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
2700 }
2701 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
2702 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
2703 }
2704 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
2705 return (void *)((wxEvent *) ((wxPyEvent *) x));
2706 }
2707 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
2708 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
2709 }
2710 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
2711 return (void *)((wxEvent *) ((wxIdleEvent *) x));
2712 }
2713 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
2714 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
2715 }
2716 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
2717 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
2718 }
2719 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
2720 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
2721 }
2722 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
2723 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
2724 }
2725 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
2726 return (void *)((wxEvent *) ((wxActivateEvent *) x));
2727 }
2728 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
2729 return (void *)((wxEvent *) ((wxSizeEvent *) x));
2730 }
2731 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
2732 return (void *)((wxEvent *) ((wxMoveEvent *) x));
2733 }
2734 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
2735 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
2736 }
2737 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
2738 return (void *)((wxEvent *) ((wxPaintEvent *) x));
2739 }
2740 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
2741 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
2742 }
2743 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
2744 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
2745 }
2746 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
2747 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
2748 }
2749 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
2750 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
2751 }
2752 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
2753 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2754 }
2755 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
2756 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
2757 }
2758 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
2759 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
2760 }
2761 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
2762 return (void *)((wxEvent *) ((wxFocusEvent *) x));
2763 }
2764 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
2765 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
2766 }
2767 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
2768 return (void *)((wxEvent *) ((wxShowEvent *) x));
2769 }
2770 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
2771 return (void *)((wxEvent *) ((wxCommandEvent *) x));
2772 }
2773 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
2774 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
2775 }
2776 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
2777 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2778 }
2779 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
2780 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
2781 }
2782 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
2783 return (void *)((wxEvent *) ((wxKeyEvent *) x));
2784 }
2785 static void *_p_wxMediaEventTo_p_wxEvent(void *x) {
2786 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
2787 }
2788 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
2789 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
2790 }
2791 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_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_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_wxImageHandler", _p_wxImageHandlerTo_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_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}};
2792 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}};
2793 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}};
2794 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}};
2795 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}};
2796 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}};
2797 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}};
2798 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}};
2799 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}};
2800 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}};
2801 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}};
2802 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}};
2803 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}};
2804 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}};
2805 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}};
2806 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}};
2807 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}};
2808 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}};
2809 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}};
2810 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}};
2811 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}};
2812 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}};
2813
2814 static swig_type_info *swig_types_initial[] = {
2815 _swigt__p_wxObject,
2816 _swigt__p_unsigned_char,
2817 _swigt__p_wxMediaEvent,
2818 _swigt__p_wxWindow,
2819 _swigt__p_wxValidator,
2820 _swigt__p_wxCommandEvent,
2821 _swigt__p_unsigned_long,
2822 _swigt__p_unsigned_int,
2823 _swigt__unsigned_int,
2824 _swigt__p_form_ops_t,
2825 _swigt__p_wxDuplexMode,
2826 _swigt__p_char,
2827 _swigt__p_wxFileOffset,
2828 _swigt__p_wxEvtHandler,
2829 _swigt__std__ptrdiff_t,
2830 _swigt__ptrdiff_t,
2831 _swigt__p_wxNotifyEvent,
2832 _swigt__p_wxControl,
2833 _swigt__p_wxMediaCtrl,
2834 _swigt__p_wxEvent,
2835 _swigt__p_wxPaperSize,
2836 _swigt__p_int,
2837 0
2838 };
2839
2840
2841 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2842
2843 static swig_const_info swig_const_table[] = {
2844 {0, 0, 0, 0.0, 0, 0}};
2845
2846 #ifdef __cplusplus
2847 }
2848 #endif
2849
2850
2851 #ifdef __cplusplus
2852 extern "C" {
2853 #endif
2854
2855 /* Python-specific SWIG API */
2856 #define SWIG_newvarlink() SWIG_Python_newvarlink()
2857 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
2858 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
2859
2860 /* -----------------------------------------------------------------------------
2861 * global variable support code.
2862 * ----------------------------------------------------------------------------- */
2863
2864 typedef struct swig_globalvar {
2865 char *name; /* Name of global variable */
2866 PyObject *(*get_attr)(); /* Return the current value */
2867 int (*set_attr)(PyObject *); /* Set the value */
2868 struct swig_globalvar *next;
2869 } swig_globalvar;
2870
2871 typedef struct swig_varlinkobject {
2872 PyObject_HEAD
2873 swig_globalvar *vars;
2874 } swig_varlinkobject;
2875
2876 static PyObject *
2877 swig_varlink_repr(swig_varlinkobject *v) {
2878 v = v;
2879 return PyString_FromString("<Swig global variables>");
2880 }
2881
2882 static int
2883 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
2884 swig_globalvar *var;
2885 flags = flags;
2886 fprintf(fp,"Swig global variables { ");
2887 for (var = v->vars; var; var=var->next) {
2888 fprintf(fp,"%s", var->name);
2889 if (var->next) fprintf(fp,", ");
2890 }
2891 fprintf(fp," }\n");
2892 return 0;
2893 }
2894
2895 static PyObject *
2896 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
2897 swig_globalvar *var = v->vars;
2898 while (var) {
2899 if (strcmp(var->name,n) == 0) {
2900 return (*var->get_attr)();
2901 }
2902 var = var->next;
2903 }
2904 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
2905 return NULL;
2906 }
2907
2908 static int
2909 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
2910 swig_globalvar *var = v->vars;
2911 while (var) {
2912 if (strcmp(var->name,n) == 0) {
2913 return (*var->set_attr)(p);
2914 }
2915 var = var->next;
2916 }
2917 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
2918 return 1;
2919 }
2920
2921 static PyTypeObject varlinktype = {
2922 PyObject_HEAD_INIT(0)
2923 0, /* Number of items in variable part (ob_size) */
2924 (char *)"swigvarlink", /* Type name (tp_name) */
2925 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
2926 0, /* Itemsize (tp_itemsize) */
2927 0, /* Deallocator (tp_dealloc) */
2928 (printfunc) swig_varlink_print, /* Print (tp_print) */
2929 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
2930 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
2931 0, /* tp_compare */
2932 (reprfunc) swig_varlink_repr, /* tp_repr */
2933 0, /* tp_as_number */
2934 0, /* tp_as_sequence */
2935 0, /* tp_as_mapping */
2936 0, /* tp_hash */
2937 0, /* tp_call */
2938 0, /* tp_str */
2939 0, /* tp_getattro */
2940 0, /* tp_setattro */
2941 0, /* tp_as_buffer */
2942 0, /* tp_flags */
2943 0, /* tp_doc */
2944 #if PY_VERSION_HEX >= 0x02000000
2945 0, /* tp_traverse */
2946 0, /* tp_clear */
2947 #endif
2948 #if PY_VERSION_HEX >= 0x02010000
2949 0, /* tp_richcompare */
2950 0, /* tp_weaklistoffset */
2951 #endif
2952 #if PY_VERSION_HEX >= 0x02020000
2953 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
2954 #endif
2955 #if PY_VERSION_HEX >= 0x02030000
2956 0, /* tp_del */
2957 #endif
2958 #ifdef COUNT_ALLOCS
2959 0,0,0,0 /* tp_alloc -> tp_next */
2960 #endif
2961 };
2962
2963 /* Create a variable linking object for use later */
2964 static PyObject *
2965 SWIG_Python_newvarlink(void) {
2966 swig_varlinkobject *result = 0;
2967 result = PyMem_NEW(swig_varlinkobject,1);
2968 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
2969 result->ob_type = &varlinktype;
2970 result->vars = 0;
2971 result->ob_refcnt = 0;
2972 Py_XINCREF((PyObject *) result);
2973 return ((PyObject*) result);
2974 }
2975
2976 static void
2977 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
2978 swig_varlinkobject *v;
2979 swig_globalvar *gv;
2980 v= (swig_varlinkobject *) p;
2981 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
2982 gv->name = (char *) malloc(strlen(name)+1);
2983 strcpy(gv->name,name);
2984 gv->get_attr = get_attr;
2985 gv->set_attr = set_attr;
2986 gv->next = v->vars;
2987 v->vars = gv;
2988 }
2989
2990 /* -----------------------------------------------------------------------------
2991 * constants/methods manipulation
2992 * ----------------------------------------------------------------------------- */
2993
2994 /* Install Constants */
2995 static void
2996 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
2997 PyObject *obj = 0;
2998 size_t i;
2999 for (i = 0; constants[i].type; i++) {
3000 switch(constants[i].type) {
3001 case SWIG_PY_INT:
3002 obj = PyInt_FromLong(constants[i].lvalue);
3003 break;
3004 case SWIG_PY_FLOAT:
3005 obj = PyFloat_FromDouble(constants[i].dvalue);
3006 break;
3007 case SWIG_PY_STRING:
3008 if (constants[i].pvalue) {
3009 obj = PyString_FromString((char *) constants[i].pvalue);
3010 } else {
3011 Py_INCREF(Py_None);
3012 obj = Py_None;
3013 }
3014 break;
3015 case SWIG_PY_POINTER:
3016 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
3017 break;
3018 case SWIG_PY_BINARY:
3019 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
3020 break;
3021 default:
3022 obj = 0;
3023 break;
3024 }
3025 if (obj) {
3026 PyDict_SetItemString(d,constants[i].name,obj);
3027 Py_DECREF(obj);
3028 }
3029 }
3030 }
3031
3032 /* -----------------------------------------------------------------------------*/
3033 /* Fix SwigMethods to carry the callback ptrs when needed */
3034 /* -----------------------------------------------------------------------------*/
3035
3036 static void
3037 SWIG_Python_FixMethods(PyMethodDef *methods,
3038 swig_const_info *const_table,
3039 swig_type_info **types,
3040 swig_type_info **types_initial) {
3041 size_t i;
3042 for (i = 0; methods[i].ml_name; ++i) {
3043 char *c = methods[i].ml_doc;
3044 if (c && (c = strstr(c, "swig_ptr: "))) {
3045 int j;
3046 swig_const_info *ci = 0;
3047 char *name = c + 10;
3048 for (j = 0; const_table[j].type; j++) {
3049 if (strncmp(const_table[j].name, name,
3050 strlen(const_table[j].name)) == 0) {
3051 ci = &(const_table[j]);
3052 break;
3053 }
3054 }
3055 if (ci) {
3056 size_t shift = (ci->ptype) - types;
3057 swig_type_info *ty = types_initial[shift];
3058 size_t ldoc = (c - methods[i].ml_doc);
3059 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
3060 char *ndoc = (char*)malloc(ldoc + lptr + 10);
3061 char *buff = ndoc;
3062 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
3063 strncpy(buff, methods[i].ml_doc, ldoc);
3064 buff += ldoc;
3065 strncpy(buff, "swig_ptr: ", 10);
3066 buff += 10;
3067 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
3068 methods[i].ml_doc = ndoc;
3069 }
3070 }
3071 }
3072 }
3073
3074 /* -----------------------------------------------------------------------------*
3075 * Initialize type list
3076 * -----------------------------------------------------------------------------*/
3077
3078 #if PY_MAJOR_VERSION < 2
3079 /* PyModule_AddObject function was introduced in Python 2.0. The following function
3080 is copied out of Python/modsupport.c in python version 2.3.4 */
3081 static int
3082 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
3083 {
3084 PyObject *dict;
3085 if (!PyModule_Check(m)) {
3086 PyErr_SetString(PyExc_TypeError,
3087 "PyModule_AddObject() needs module as first arg");
3088 return -1;
3089 }
3090 if (!o) {
3091 PyErr_SetString(PyExc_TypeError,
3092 "PyModule_AddObject() needs non-NULL value");
3093 return -1;
3094 }
3095
3096 dict = PyModule_GetDict(m);
3097 if (dict == NULL) {
3098 /* Internal error -- modules must have a dict! */
3099 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
3100 PyModule_GetName(m));
3101 return -1;
3102 }
3103 if (PyDict_SetItemString(dict, name, o))
3104 return -1;
3105 Py_DECREF(o);
3106 return 0;
3107 }
3108 #endif
3109
3110 static swig_type_info **
3111 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
3112 static PyMethodDef swig_empty_runtime_method_table[] = {
3113 {
3114 NULL, NULL, 0, NULL
3115 }
3116 };/* Sentinel */
3117
3118 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
3119 swig_empty_runtime_method_table);
3120 PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL);
3121 if (pointer && module) {
3122 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
3123 }
3124 return type_list_handle;
3125 }
3126
3127 static swig_type_info **
3128 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
3129 swig_type_info **type_pointer;
3130
3131 /* first check if module already created */
3132 type_pointer = SWIG_Python_GetTypeListHandle();
3133 if (type_pointer) {
3134 return type_pointer;
3135 } else {
3136 /* create a new module and variable */
3137 return SWIG_Python_SetTypeListHandle(type_list_handle);
3138 }
3139 }
3140
3141 #ifdef __cplusplus
3142 }
3143 #endif
3144
3145 /* -----------------------------------------------------------------------------*
3146 * Partial Init method
3147 * -----------------------------------------------------------------------------*/
3148
3149 #ifdef SWIG_LINK_RUNTIME
3150 #ifdef __cplusplus
3151 extern "C"
3152 #endif
3153 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
3154 #endif
3155
3156 #ifdef __cplusplus
3157 extern "C"
3158 #endif
3159 SWIGEXPORT(void) SWIG_init(void) {
3160 static PyObject *SWIG_globals = 0;
3161 static int typeinit = 0;
3162 PyObject *m, *d;
3163 int i;
3164 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3165
3166 /* Fix SwigMethods to carry the callback ptrs when needed */
3167 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
3168
3169 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3170 d = PyModule_GetDict(m);
3171
3172 if (!typeinit) {
3173 #ifdef SWIG_LINK_RUNTIME
3174 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
3175 #else
3176 # ifndef SWIG_STATIC_RUNTIME
3177 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
3178 # endif
3179 #endif
3180 for (i = 0; swig_types_initial[i]; i++) {
3181 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3182 }
3183 typeinit = 1;
3184 }
3185 SWIG_InstallConstants(d,swig_const_table);
3186
3187 {
3188 PyDict_SetItemString(d,"MEDIASTATE_STOPPED", SWIG_From_int((int)(wxMEDIASTATE_STOPPED)));
3189 }
3190 {
3191 PyDict_SetItemString(d,"MEDIASTATE_PAUSED", SWIG_From_int((int)(wxMEDIASTATE_PAUSED)));
3192 }
3193 {
3194 PyDict_SetItemString(d,"MEDIASTATE_PLAYING", SWIG_From_int((int)(wxMEDIASTATE_PLAYING)));
3195 }
3196 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
3197 SWIG_addvarlink(SWIG_globals,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get, _wrap_MediaCtrlNameStr_set);
3198 PyDict_SetItemString(d, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED));
3199 PyDict_SetItemString(d, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP));
3200
3201
3202 }
3203