]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/media_wrap.cpp
Mention the SWIG_VERSION change
[wxWidgets.git] / wxPython / src / msw / media_wrap.cpp
CommitLineData
8ac8dba0
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
7449af73 3 * Version 1.3.27
8ac8dba0
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
8ac8dba0
RD
12
13#ifdef __cplusplus
14template<class T> class SwigValueWrapper {
15 T *tt;
16public:
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; }
24private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 26};
8ac8dba0
RD
27#endif
28
7449af73
RD
29/***********************************************************************
30 *
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 *
34 ************************************************************************/
8ac8dba0 35
7449af73
RD
36/* template workaround for compilers that cannot correctly implement the C++ standard */
37#ifndef SWIGTEMPLATEDISAMBIGUATOR
38# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
093d3ff1 40# else
7449af73 41# define SWIGTEMPLATEDISAMBIGUATOR
093d3ff1
RD
42# endif
43#endif
8ac8dba0 44
7449af73
RD
45/* inline attribute */
46#ifndef SWIGINLINE
47# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48# define SWIGINLINE inline
49# else
50# define SWIGINLINE
51# endif
52#endif
53
54/* attribute recognised by some compilers to avoid 'unused' warnings */
55#ifndef SWIGUNUSED
56# if defined(__GNUC__) || defined(__ICC)
57# define SWIGUNUSED __attribute__ ((unused))
58# else
59# define SWIGUNUSED
60# endif
61#endif
62
63/* internal SWIG method */
64#ifndef SWIGINTERN
65# define SWIGINTERN static SWIGUNUSED
66#endif
67
68/* internal inline SWIG method */
69#ifndef SWIGINTERNINLINE
70# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
71#endif
72
73/* exporting methods for Windows DLLs */
74#ifndef SWIGEXPORT
75# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76# if defined(STATIC_LINKED)
77# define SWIGEXPORT
78# else
79# define SWIGEXPORT __declspec(dllexport)
80# endif
81# else
82# define SWIGEXPORT
83# endif
84#endif
85
86/* calling conventions for Windows */
87#ifndef SWIGSTDCALL
88# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89# define SWIGSTDCALL __stdcall
90# else
91# define SWIGSTDCALL
92# endif
93#endif
94
95
8ac8dba0 96
093d3ff1 97#include <Python.h>
8ac8dba0
RD
98
99/***********************************************************************
093d3ff1 100 * swigrun.swg
8ac8dba0 101 *
093d3ff1
RD
102 * This file contains generic CAPI SWIG runtime support for pointer
103 * type checking.
8ac8dba0
RD
104 *
105 ************************************************************************/
106
093d3ff1
RD
107/* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
7449af73 109#define SWIG_RUNTIME_VERSION "2"
8ac8dba0 110
093d3ff1
RD
111/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112#ifdef SWIG_TYPE_TABLE
7449af73
RD
113# define SWIG_QUOTE_STRING(x) #x
114# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
8ac8dba0 116#else
7449af73 117# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
118#endif
119
120/*
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
124
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
127*/
7449af73 128
093d3ff1 129#ifndef SWIGRUNTIME
7449af73 130# define SWIGRUNTIME SWIGINTERN
093d3ff1 131#endif
7449af73 132
093d3ff1 133#ifndef SWIGRUNTIMEINLINE
7449af73 134# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
8ac8dba0
RD
135#endif
136
7449af73
RD
137#include <string.h>
138
8ac8dba0
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143typedef void *(*swig_converter_func)(void *);
144typedef struct swig_type_info *(*swig_dycast_func)(void **);
145
7449af73 146/* Structure to store inforomation on one type */
8ac8dba0 147typedef struct swig_type_info {
7449af73
RD
148 const char *name; /* mangled name of this type */
149 const char *str; /* human readable name of this type */
150 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
152 void *clientdata; /* language specific type data */
8ac8dba0
RD
153} swig_type_info;
154
7449af73
RD
155/* Structure to store a type and conversion function used for casting */
156typedef struct swig_cast_info {
157 swig_type_info *type; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter; /* function to cast the void pointers */
159 struct swig_cast_info *next; /* pointer to next cast in linked list */
160 struct swig_cast_info *prev; /* pointer to the previous cast */
161} swig_cast_info;
162
163/* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166typedef struct swig_module_info {
167 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size; /* Number of types in this module */
169 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
170 swig_type_info **type_initial; /* Array of initially generated type structures */
171 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
172 void *clientdata; /* Language specific module data */
173} swig_module_info;
174
175
093d3ff1
RD
176/*
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
179
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
182*/
183SWIGRUNTIME int
184SWIG_TypeNameComp(const char *f1, const char *l1,
185 const char *f2, const char *l2) {
186 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
187 while ((*f1 == ' ') && (f1 != l1)) ++f1;
188 while ((*f2 == ' ') && (f2 != l2)) ++f2;
7449af73 189 if (*f1 != *f2) return (int)(*f1 - *f2);
093d3ff1
RD
190 }
191 return (l1 - f1) - (l2 - f2);
192}
193
194/*
195 Check type equivalence in a name list like <name1>|<name2>|...
7449af73 196 Return 0 if not equal, 1 if equal
093d3ff1
RD
197*/
198SWIGRUNTIME int
199SWIG_TypeEquiv(const char *nb, const char *tb) {
200 int equiv = 0;
201 const char* te = tb + strlen(tb);
202 const char* ne = nb;
203 while (!equiv && *ne) {
204 for (nb = ne; *ne; ++ne) {
205 if (*ne == '|') break;
206 }
7449af73 207 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
208 if (*ne) ++ne;
209 }
210 return equiv;
211}
212
213/*
7449af73
RD
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 216*/
7449af73
RD
217SWIGRUNTIME int
218SWIG_TypeCompare(const char *nb, const char *tb) {
219 int equiv = 0;
220 const char* te = tb + strlen(tb);
221 const char* ne = nb;
222 while (!equiv && *ne) {
223 for (nb = ne; *ne; ++ne) {
224 if (*ne == '|') break;
093d3ff1 225 }
7449af73
RD
226 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
227 if (*ne) ++ne;
093d3ff1 228 }
7449af73 229 return equiv;
093d3ff1
RD
230}
231
7449af73
RD
232
233/* think of this as a c++ template<> or a scheme macro */
234#define SWIG_TypeCheck_Template(comparison, ty) \
235 if (ty) { \
236 swig_cast_info *iter = ty->cast; \
237 while (iter) { \
238 if (comparison) { \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
242 if (iter->next) \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
245 iter->prev = 0; \
246 if (ty->cast) ty->cast->prev = iter; \
247 ty->cast = iter; \
248 return iter; \
249 } \
250 iter = iter->next; \
251 } \
252 } \
253 return 0
254
093d3ff1
RD
255/*
256 Check the typename
257*/
7449af73 258SWIGRUNTIME swig_cast_info *
093d3ff1 259SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
RD
260 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
261}
262
263/* Same as previous function, except strcmp is replaced with a pointer comparison */
264SWIGRUNTIME swig_cast_info *
265SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
266 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
267}
268
269/*
270 Cast a pointer up an inheritance hierarchy
271*/
272SWIGRUNTIMEINLINE void *
7449af73 273SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
274 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
275}
276
277/*
278 Dynamic pointer casting. Down an inheritance hierarchy
279*/
280SWIGRUNTIME swig_type_info *
281SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
282 swig_type_info *lastty = ty;
283 if (!ty || !ty->dcast) return ty;
284 while (ty && (ty->dcast)) {
285 ty = (*ty->dcast)(ptr);
286 if (ty) lastty = ty;
287 }
288 return lastty;
289}
290
291/*
292 Return the name associated with this type
293*/
294SWIGRUNTIMEINLINE const char *
295SWIG_TypeName(const swig_type_info *ty) {
296 return ty->name;
297}
298
299/*
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
302*/
303SWIGRUNTIME const char *
304SWIG_TypePrettyName(const swig_type_info *type) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
308 specific. */
309 if (type->str != NULL) {
310 const char *last_name = type->str;
311 const char *s;
312 for (s = type->str; *s; s++)
313 if (*s == '|') last_name = s+1;
314 return last_name;
315 }
316 else
317 return type->name;
318}
319
093d3ff1
RD
320/*
321 Set the clientdata field for a type
322*/
323SWIGRUNTIME void
7449af73
RD
324SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
325 swig_cast_info *cast = ti->cast;
093d3ff1
RD
326 /* if (ti->clientdata == clientdata) return; */
327 ti->clientdata = clientdata;
7449af73
RD
328
329 while (cast) {
330 if (!cast->converter) {
331 swig_type_info *tc = cast->type;
332 if (!tc->clientdata) {
333 SWIG_TypeClientData(tc, clientdata);
093d3ff1 334 }
7449af73
RD
335 }
336 cast = cast->next;
337 }
338}
339
340/*
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
343
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
346 the circular list.
347*/
348SWIGRUNTIME swig_type_info *
349SWIG_MangledTypeQueryModule(swig_module_info *start,
350 swig_module_info *end,
351 const char *name) {
352 swig_module_info *iter = start;
353 do {
354 if (iter->size) {
355 register size_t l = 0;
356 register size_t r = iter->size - 1;
357 do {
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i = (l + r) >> 1;
360 const char *iname = iter->types[i]->name;
361 if (iname) {
362 register int compare = strcmp(name, iname);
363 if (compare == 0) {
364 return iter->types[i];
365 } else if (compare < 0) {
366 if (i) {
367 r = i - 1;
368 } else {
369 break;
370 }
371 } else if (compare > 0) {
372 l = i + 1;
373 }
374 } else {
375 break; /* should never happen */
376 }
377 } while (l <= r);
093d3ff1 378 }
7449af73
RD
379 iter = iter->next;
380 } while (iter != end);
381 return 0;
382}
383
384/*
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
388
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
391 the circular list.
392*/
393SWIGRUNTIME swig_type_info *
394SWIG_TypeQueryModule(swig_module_info *start,
395 swig_module_info *end,
396 const char *name) {
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
399 if (ret) {
400 return ret;
401 } else {
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info *iter = start;
405 do {
406 register size_t i = 0;
407 for (; i < iter->size; ++i) {
408 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
409 return iter->types[i];
410 }
411 iter = iter->next;
412 } while (iter != end);
093d3ff1 413 }
7449af73
RD
414
415 /* neither found a match */
416 return 0;
093d3ff1
RD
417}
418
7449af73 419
093d3ff1
RD
420/*
421 Pack binary data into a string
422*/
423SWIGRUNTIME char *
424SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
RD
425 static const char hex[17] = "0123456789abcdef";
426 register const unsigned char *u = (unsigned char *) ptr;
427 register const unsigned char *eu = u + sz;
093d3ff1 428 for (; u != eu; ++u) {
7449af73 429 register unsigned char uu = *u;
093d3ff1
RD
430 *(c++) = hex[(uu & 0xf0) >> 4];
431 *(c++) = hex[uu & 0xf];
432 }
433 return c;
434}
435
436/*
437 Unpack binary data from a string
438*/
439SWIGRUNTIME const char *
440SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
441 register unsigned char *u = (unsigned char *) ptr;
7449af73 442 register const unsigned char *eu = u + sz;
093d3ff1 443 for (; u != eu; ++u) {
7449af73 444 register char d = *(c++);
093d3ff1
RD
445 register unsigned char uu = 0;
446 if ((d >= '0') && (d <= '9'))
447 uu = ((d - '0') << 4);
448 else if ((d >= 'a') && (d <= 'f'))
449 uu = ((d - ('a'-10)) << 4);
450 else
451 return (char *) 0;
452 d = *(c++);
453 if ((d >= '0') && (d <= '9'))
454 uu |= (d - '0');
455 else if ((d >= 'a') && (d <= 'f'))
456 uu |= (d - ('a'-10));
457 else
458 return (char *) 0;
459 *u = uu;
460 }
461 return c;
462}
463
093d3ff1
RD
464/*
465 Pack 'void *' into a string buffer.
466*/
467SWIGRUNTIME char *
468SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
469 char *r = buff;
470 if ((2*sizeof(void *) + 2) > bsz) return 0;
471 *(r++) = '_';
472 r = SWIG_PackData(r,&ptr,sizeof(void *));
473 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
474 strcpy(r,name);
475 return buff;
476}
477
478SWIGRUNTIME const char *
479SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
480 if (*c != '_') {
481 if (strcmp(c,"NULL") == 0) {
482 *ptr = (void *) 0;
483 return name;
484 } else {
485 return 0;
486 }
487 }
488 return SWIG_UnpackData(++c,ptr,sizeof(void *));
489}
490
491SWIGRUNTIME char *
492SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
493 char *r = buff;
494 size_t lname = (name ? strlen(name) : 0);
495 if ((2*sz + 2 + lname) > bsz) return 0;
496 *(r++) = '_';
497 r = SWIG_PackData(r,ptr,sz);
498 if (lname) {
499 strncpy(r,name,lname+1);
500 } else {
501 *r = 0;
502 }
503 return buff;
504}
8ac8dba0 505
093d3ff1
RD
506SWIGRUNTIME const char *
507SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
508 if (*c != '_') {
509 if (strcmp(c,"NULL") == 0) {
510 memset(ptr,0,sz);
511 return name;
512 } else {
513 return 0;
514 }
515 }
516 return SWIG_UnpackData(++c,ptr,sz);
517}
8ac8dba0
RD
518
519#ifdef __cplusplus
520}
521#endif
522
093d3ff1
RD
523/* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
526
8ac8dba0
RD
527#ifdef __cplusplus
528extern "C" {
529#endif
530
093d3ff1
RD
531/* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
534
535#ifndef SWIGINTERN
7449af73 536# define SWIGINTERN static SWIGUNUSED
093d3ff1
RD
537#endif
538
7449af73
RD
539#ifndef SWIGINTERNINLINE
540# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
093d3ff1
RD
541#endif
542
093d3ff1
RD
543/*
544 Exception handling in wrappers
545*/
546#define SWIG_fail goto fail
547#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548#define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549#define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550#define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551#define SWIG_null_ref(type) SWIG_Python_NullRef(type)
552
553/*
554 Contract support
555*/
556#define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
558
559/* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
562
563/* Constant Types */
8ac8dba0
RD
564#define SWIG_PY_INT 1
565#define SWIG_PY_FLOAT 2
566#define SWIG_PY_STRING 3
567#define SWIG_PY_POINTER 4
568#define SWIG_PY_BINARY 5
569
8ac8dba0
RD
570/* Constant information structure */
571typedef struct swig_const_info {
572 int type;
573 char *name;
574 long lvalue;
575 double dvalue;
576 void *pvalue;
577 swig_type_info **ptype;
578} swig_const_info;
579
8ac8dba0 580
093d3ff1
RD
581/* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584#define SWIG_OLDOBJ 1
585#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586#define SWIG_PYSTR SWIG_NEWOBJ + 1
8ac8dba0
RD
587
588#ifdef __cplusplus
589}
590#endif
591
592
093d3ff1
RD
593/***********************************************************************
594 * pyrun.swg
595 *
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
598 * type checking.
599 *
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
8ac8dba0 602
093d3ff1
RD
603/* Common SWIG API */
604#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605#define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
9d7dfdff 607
8ac8dba0 608
093d3ff1
RD
609/* Python-specific SWIG API */
610#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
8ac8dba0 612
7449af73
RD
613/* Runtime API */
614#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
8ac8dba0 616
093d3ff1
RD
617/* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
620/*
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
623 not always safe.
624*/
625#if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626# define SWIG_COBJECT_TYPES
627#endif
8ac8dba0 628
093d3ff1
RD
629/* Flags for pointer conversion */
630#define SWIG_POINTER_EXCEPTION 0x1
631#define SWIG_POINTER_DISOWN 0x2
8ac8dba0 632
8ac8dba0 633
7449af73
RD
634/* Add PyOS_snprintf for old Pythons */
635#if PY_VERSION_HEX < 0x02020000
636#define PyOS_snprintf snprintf
637#endif
638
8ac8dba0 639#ifdef __cplusplus
093d3ff1
RD
640extern "C" {
641#endif
8ac8dba0 642
093d3ff1
RD
643/* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
093d3ff1
RD
646#ifndef SWIG_BUFFER_SIZE
647#define SWIG_BUFFER_SIZE 1024
648#endif
8ac8dba0 649
7449af73
RD
650/* A crude PyString_FromFormat implementation for old Pythons */
651#if PY_VERSION_HEX < 0x02020000
652static PyObject *
653PyString_FromFormat(const char *fmt, ...) {
654 va_list ap;
655 char buf[SWIG_BUFFER_SIZE * 2];
656 int res;
657 va_start(ap, fmt);
658 res = vsnprintf(buf, sizeof(buf), fmt, ap);
659 va_end(ap);
660 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
661}
662#endif
663
664#if PY_VERSION_HEX < 0x01060000
665#define PyObject_Del(op) PyMem_DEL((op))
666#endif
667
093d3ff1
RD
668#if defined(SWIG_COBJECT_TYPES)
669#if !defined(SWIG_COBJECT_PYTHON)
670/* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
8ac8dba0 673
093d3ff1
RD
674typedef struct {
675 PyObject_HEAD
676 void *ptr;
677 const char *desc;
678} PySwigObject;
8ac8dba0 679
093d3ff1 680/* Declarations for objects of type PySwigObject */
8ac8dba0 681
093d3ff1
RD
682SWIGRUNTIME int
683PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
684{
685 char result[SWIG_BUFFER_SIZE];
7449af73 686 flags = flags;
093d3ff1
RD
687 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
688 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
689 return 0;
690 } else {
691 return 1;
692 }
693}
9d7dfdff 694
093d3ff1
RD
695SWIGRUNTIME PyObject *
696PySwigObject_repr(PySwigObject *v)
697{
698 char result[SWIG_BUFFER_SIZE];
699 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
700 PyString_FromFormat("<Swig Object at %s>", result) : 0;
701}
8ac8dba0 702
093d3ff1
RD
703SWIGRUNTIME PyObject *
704PySwigObject_str(PySwigObject *v)
705{
706 char result[SWIG_BUFFER_SIZE];
707 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
708 PyString_FromString(result) : 0;
709}
8ac8dba0 710
093d3ff1
RD
711SWIGRUNTIME PyObject *
712PySwigObject_long(PySwigObject *v)
713{
7449af73
RD
714 return PyLong_FromVoidPtr(v->ptr);
715}
716
717SWIGRUNTIME PyObject *
718PySwigObject_format(const char* fmt, PySwigObject *v)
719{
720 PyObject *res = NULL;
721 PyObject *args = PyTuple_New(1);
722 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
723 PyObject *ofmt = PyString_FromString(fmt);
724 if (ofmt) {
725 res = PyString_Format(ofmt,args);
726 Py_DECREF(ofmt);
727 }
728 Py_DECREF(args);
729 }
730 return res;
093d3ff1 731}
8ac8dba0 732
093d3ff1
RD
733SWIGRUNTIME PyObject *
734PySwigObject_oct(PySwigObject *v)
8ac8dba0 735{
7449af73 736 return PySwigObject_format("%o",v);
093d3ff1 737}
8ac8dba0 738
093d3ff1
RD
739SWIGRUNTIME PyObject *
740PySwigObject_hex(PySwigObject *v)
8ac8dba0 741{
7449af73 742 return PySwigObject_format("%x",v);
093d3ff1 743}
8ac8dba0 744
093d3ff1
RD
745SWIGRUNTIME int
746PySwigObject_compare(PySwigObject *v, PySwigObject *w)
8ac8dba0 747{
093d3ff1
RD
748 int c = strcmp(v->desc, w->desc);
749 if (c) {
7449af73 750 return (c > 0) ? 1 : -1;
093d3ff1
RD
751 } else {
752 void *i = v->ptr;
753 void *j = w->ptr;
7449af73 754 return (i < j) ? -1 : ((i > j) ? 1 : 0);
093d3ff1
RD
755 }
756}
8ac8dba0 757
093d3ff1
RD
758SWIGRUNTIME void
759PySwigObject_dealloc(PySwigObject *self)
8ac8dba0 760{
7449af73 761 PyObject_Del(self);
093d3ff1 762}
8ac8dba0 763
093d3ff1 764SWIGRUNTIME PyTypeObject*
7449af73
RD
765PySwigObject_type(void) {
766 static char pyswigobject_type__doc__[] =
093d3ff1 767 "Swig object carries a C/C++ instance pointer";
9d7dfdff 768
093d3ff1
RD
769 static PyNumberMethods PySwigObject_as_number = {
770 (binaryfunc)0, /*nb_add*/
771 (binaryfunc)0, /*nb_subtract*/
772 (binaryfunc)0, /*nb_multiply*/
773 (binaryfunc)0, /*nb_divide*/
774 (binaryfunc)0, /*nb_remainder*/
775 (binaryfunc)0, /*nb_divmod*/
776 (ternaryfunc)0,/*nb_power*/
777 (unaryfunc)0, /*nb_negative*/
778 (unaryfunc)0, /*nb_positive*/
779 (unaryfunc)0, /*nb_absolute*/
780 (inquiry)0, /*nb_nonzero*/
781 0, /*nb_invert*/
782 0, /*nb_lshift*/
783 0, /*nb_rshift*/
784 0, /*nb_and*/
785 0, /*nb_xor*/
786 0, /*nb_or*/
787 (coercion)0, /*nb_coerce*/
788 (unaryfunc)PySwigObject_long, /*nb_int*/
789 (unaryfunc)PySwigObject_long, /*nb_long*/
790 (unaryfunc)0, /*nb_float*/
791 (unaryfunc)PySwigObject_oct, /*nb_oct*/
792 (unaryfunc)PySwigObject_hex, /*nb_hex*/
7449af73 793#if PY_VERSION_HEX >= 0x02020000
093d3ff1 794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
RD
795#elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
797#endif
798 };
799
7449af73
RD
800 static PyTypeObject pyswigobject_type
801#if !defined(__cplusplus)
802 ;
803 static int type_init = 0;
093d3ff1 804 if (!type_init) {
7449af73
RD
805 PyTypeObject tmp
806#endif
807 = {
093d3ff1
RD
808 PyObject_HEAD_INIT(&PyType_Type)
809 0, /*ob_size*/
7449af73 810 (char *)"PySwigObject", /*tp_name*/
093d3ff1
RD
811 sizeof(PySwigObject), /*tp_basicsize*/
812 0, /*tp_itemsize*/
813 /* methods */
814 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
815 (printfunc)PySwigObject_print, /*tp_print*/
816 (getattrfunc)0, /*tp_getattr*/
817 (setattrfunc)0, /*tp_setattr*/
818 (cmpfunc)PySwigObject_compare, /*tp_compare*/
819 (reprfunc)PySwigObject_repr, /*tp_repr*/
820 &PySwigObject_as_number, /*tp_as_number*/
821 0, /*tp_as_sequence*/
822 0, /*tp_as_mapping*/
823 (hashfunc)0, /*tp_hash*/
824 (ternaryfunc)0, /*tp_call*/
825 (reprfunc)PySwigObject_str, /*tp_str*/
826 /* Space for future expansion */
7449af73
RD
827 0,0,0,0,
828 pyswigobject_type__doc__, /* Documentation string */
093d3ff1
RD
829#if PY_VERSION_HEX >= 0x02000000
830 0, /* tp_traverse */
831 0, /* tp_clear */
832#endif
833#if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
836#endif
837#if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
839#endif
840#if PY_VERSION_HEX >= 0x02030000
841 0, /* tp_del */
842#endif
843#ifdef COUNT_ALLOCS
844 0,0,0,0 /* tp_alloc -> tp_next */
845#endif
846 };
7449af73
RD
847#if !defined(__cplusplus)
848 pyswigobject_type = tmp;
093d3ff1
RD
849 type_init = 1;
850 }
7449af73
RD
851#endif
852 return &pyswigobject_type;
093d3ff1 853}
8ac8dba0 854
093d3ff1
RD
855SWIGRUNTIME PyObject *
856PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
857{
7449af73
RD
858 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
859 if (self) {
860 self->ptr = ptr;
861 self->desc = desc;
862 }
093d3ff1
RD
863 return (PyObject *)self;
864}
8ac8dba0 865
093d3ff1
RD
866SWIGRUNTIMEINLINE void *
867PySwigObject_AsVoidPtr(PyObject *self)
868{
869 return ((PySwigObject *)self)->ptr;
870}
8ac8dba0 871
093d3ff1
RD
872SWIGRUNTIMEINLINE const char *
873PySwigObject_GetDesc(PyObject *self)
874{
875 return ((PySwigObject *)self)->desc;
876}
8ac8dba0 877
093d3ff1
RD
878SWIGRUNTIMEINLINE int
879PySwigObject_Check(PyObject *op) {
7449af73 880 return ((op)->ob_type == PySwigObject_type())
093d3ff1
RD
881 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
882}
8ac8dba0 883
093d3ff1
RD
884/* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
8ac8dba0 887
093d3ff1
RD
888typedef struct {
889 PyObject_HEAD
890 void *pack;
891 const char *desc;
892 size_t size;
893} PySwigPacked;
f78cc896 894
093d3ff1
RD
895SWIGRUNTIME int
896PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
897{
898 char result[SWIG_BUFFER_SIZE];
7449af73 899 flags = flags;
093d3ff1
RD
900 fputs("<Swig Packed ", fp);
901 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
902 fputs("at ", fp);
903 fputs(result, fp);
904 }
905 fputs(v->desc,fp);
906 fputs(">", fp);
907 return 0;
908}
9d7dfdff 909
093d3ff1
RD
910SWIGRUNTIME PyObject *
911PySwigPacked_repr(PySwigPacked *v)
912{
913 char result[SWIG_BUFFER_SIZE];
914 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
916 } else {
917 return PyString_FromFormat("<Swig Packed %s>", v->desc);
918 }
919}
f78cc896 920
093d3ff1
RD
921SWIGRUNTIME PyObject *
922PySwigPacked_str(PySwigPacked *v)
923{
924 char result[SWIG_BUFFER_SIZE];
925 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
926 return PyString_FromFormat("%s%s", result, v->desc);
927 } else {
7449af73 928 return PyString_FromString(v->desc);
093d3ff1
RD
929 }
930}
931
932SWIGRUNTIME int
933PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
934{
935 int c = strcmp(v->desc, w->desc);
936 if (c) {
7449af73 937 return (c > 0) ? 1 : -1;
093d3ff1
RD
938 } else {
939 size_t i = v->size;
940 size_t j = w->size;
7449af73 941 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
093d3ff1
RD
942 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
943 }
944}
945
946SWIGRUNTIME void
947PySwigPacked_dealloc(PySwigPacked *self)
948{
949 free(self->pack);
7449af73 950 PyObject_Del(self);
093d3ff1
RD
951}
952
953SWIGRUNTIME PyTypeObject*
7449af73
RD
954PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__[] =
093d3ff1 956 "Swig object carries a C/C++ instance pointer";
7449af73
RD
957 static PyTypeObject pyswigpacked_type
958#if !defined(__cplusplus)
959 ;
960 static int type_init = 0;
093d3ff1 961 if (!type_init) {
7449af73
RD
962 PyTypeObject tmp
963#endif
964 = {
093d3ff1
RD
965 PyObject_HEAD_INIT(&PyType_Type)
966 0, /*ob_size*/
7449af73 967 (char *)"PySwigPacked", /*tp_name*/
093d3ff1
RD
968 sizeof(PySwigPacked), /*tp_basicsize*/
969 0, /*tp_itemsize*/
970 /* methods */
971 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
972 (printfunc)PySwigPacked_print, /*tp_print*/
973 (getattrfunc)0, /*tp_getattr*/
974 (setattrfunc)0, /*tp_setattr*/
975 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
976 (reprfunc)PySwigPacked_repr, /*tp_repr*/
977 0, /*tp_as_number*/
978 0, /*tp_as_sequence*/
979 0, /*tp_as_mapping*/
980 (hashfunc)0, /*tp_hash*/
981 (ternaryfunc)0, /*tp_call*/
982 (reprfunc)PySwigPacked_str, /*tp_str*/
983 /* Space for future expansion */
7449af73
RD
984 0,0,0,0,
985 pyswigpacked_type__doc__, /* Documentation string */
093d3ff1
RD
986#if PY_VERSION_HEX >= 0x02000000
987 0, /* tp_traverse */
988 0, /* tp_clear */
989#endif
990#if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
993#endif
994#if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
996#endif
997#if PY_VERSION_HEX >= 0x02030000
998 0, /* tp_del */
999#endif
1000#ifdef COUNT_ALLOCS
1001 0,0,0,0 /* tp_alloc -> tp_next */
1002#endif
1003 };
7449af73
RD
1004#if !defined(__cplusplus)
1005 pyswigpacked_type = tmp;
093d3ff1
RD
1006 type_init = 1;
1007 }
7449af73
RD
1008#endif
1009 return &pyswigpacked_type;
093d3ff1
RD
1010}
1011
1012SWIGRUNTIME PyObject *
1013PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1014{
7449af73 1015 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
093d3ff1
RD
1016 if (self == NULL) {
1017 return NULL;
1018 } else {
1019 void *pack = malloc(size);
7449af73
RD
1020 if (pack) {
1021 memcpy(pack, ptr, size);
1022 self->pack = pack;
1023 self->desc = desc;
1024 self->size = size;
1025 return (PyObject *) self;
1026 }
1027 return NULL;
093d3ff1
RD
1028 }
1029}
1030
1031SWIGRUNTIMEINLINE const char *
1032PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1033{
1034 PySwigPacked *self = (PySwigPacked *)obj;
1035 if (self->size != size) return 0;
1036 memcpy(ptr, self->pack, size);
1037 return self->desc;
1038}
1039
1040SWIGRUNTIMEINLINE const char *
1041PySwigPacked_GetDesc(PyObject *self)
1042{
1043 return ((PySwigPacked *)self)->desc;
1044}
1045
1046SWIGRUNTIMEINLINE int
1047PySwigPacked_Check(PyObject *op) {
7449af73 1048 return ((op)->ob_type == PySwigPacked_type())
093d3ff1
RD
1049 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1050}
1051
1052#else
1053/* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1056
1057#define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058#define PySwigObject_Check(obj) PyCObject_Check(obj)
1059#define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060#define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1061
1062#endif
1063
1064#endif
1065
1066/* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1069
1070SWIGRUNTIME void
1071SWIG_Python_TypeError(const char *type, PyObject *obj)
1072{
1073 if (type) {
1074#if defined(SWIG_COBJECT_TYPES)
7449af73 1075 if (obj && PySwigObject_Check(obj)) {
093d3ff1
RD
1076 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1077 if (otype) {
1078 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1079 type, otype);
1080 return;
1081 }
1082 } else
1083#endif
1084 {
1085 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1086 if (otype) {
1087 PyObject *str = PyObject_Str(obj);
1088 const char *cstr = str ? PyString_AsString(str) : 0;
1089 if (cstr) {
1090 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1091 type, otype, cstr);
1092 } else {
1093 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1094 type, otype);
1095 }
7449af73 1096 Py_XDECREF(str);
093d3ff1
RD
1097 return;
1098 }
1099 }
1100 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1101 } else {
1102 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1103 }
1104}
1105
1106SWIGRUNTIMEINLINE void
1107SWIG_Python_NullRef(const char *type)
1108{
1109 if (type) {
1110 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1111 } else {
1112 PyErr_Format(PyExc_TypeError, "null reference was received");
1113 }
1114}
1115
1116SWIGRUNTIME int
1117SWIG_Python_AddErrMesg(const char* mesg, int infront)
1118{
1119 if (PyErr_Occurred()) {
1120 PyObject *type = 0;
1121 PyObject *value = 0;
1122 PyObject *traceback = 0;
1123 PyErr_Fetch(&type, &value, &traceback);
1124 if (value) {
1125 PyObject *old_str = PyObject_Str(value);
1126 Py_XINCREF(type);
1127 PyErr_Clear();
1128 if (infront) {
1129 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1130 } else {
1131 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1132 }
1133 Py_DECREF(old_str);
1134 }
1135 return 1;
1136 } else {
1137 return 0;
1138 }
1139}
1140
1141SWIGRUNTIME int
1142SWIG_Python_ArgFail(int argnum)
1143{
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1146 char mesg[256];
7449af73 1147 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
093d3ff1
RD
1148 return SWIG_Python_AddErrMesg(mesg, 1);
1149 } else {
1150 return 0;
1151 }
1152}
1153
1154
1155/* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1158
1159/* Convert a pointer value */
1160SWIGRUNTIME int
1161SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
7449af73 1162 swig_cast_info *tc;
093d3ff1
RD
1163 const char *c = 0;
1164 static PyObject *SWIG_this = 0;
1165 int newref = 0;
1166 PyObject *pyobj = 0;
1167 void *vptr;
9d7dfdff 1168
093d3ff1
RD
1169 if (!obj) return 0;
1170 if (obj == Py_None) {
1171 *ptr = 0;
1172 return 0;
1173 }
1174
1175#ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj))) {
1177 if (!SWIG_this)
1178 SWIG_this = PyString_FromString("this");
1179 pyobj = obj;
1180 obj = PyObject_GetAttr(obj,SWIG_this);
1181 newref = 1;
1182 if (!obj) goto type_error;
1183 if (!PySwigObject_Check(obj)) {
1184 Py_DECREF(obj);
1185 goto type_error;
1186 }
1187 }
1188 vptr = PySwigObject_AsVoidPtr(obj);
1189 c = (const char *) PySwigObject_GetDesc(obj);
1190 if (newref) { Py_DECREF(obj); }
1191 goto type_check;
1192#else
1193 if (!(PyString_Check(obj))) {
1194 if (!SWIG_this)
1195 SWIG_this = PyString_FromString("this");
1196 pyobj = obj;
1197 obj = PyObject_GetAttr(obj,SWIG_this);
1198 newref = 1;
1199 if (!obj) goto type_error;
1200 if (!PyString_Check(obj)) {
1201 Py_DECREF(obj);
1202 goto type_error;
1203 }
1204 }
7449af73 1205 c = PyString_AsString(obj);
093d3ff1
RD
1206 /* Pointer values must start with leading underscore */
1207 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1208 if (newref) { Py_DECREF(obj); }
1209 if (!c) goto type_error;
1210#endif
1211
1212type_check:
093d3ff1
RD
1213 if (ty) {
1214 tc = SWIG_TypeCheck(c,ty);
1215 if (!tc) goto type_error;
1216 *ptr = SWIG_TypeCast(tc,vptr);
1217 } else {
1218 *ptr = vptr;
1219 }
093d3ff1
RD
1220 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1221 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1222 }
1223 return 0;
1224
1225type_error:
1226 PyErr_Clear();
1227 if (pyobj && !obj) {
1228 obj = pyobj;
1229 if (PyCFunction_Check(obj)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1232 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1233 if (c) {
7449af73 1234 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
093d3ff1
RD
1235 if (!c) goto type_error;
1236 goto type_check;
1237 }
1238 }
1239 }
1240 if (flags & SWIG_POINTER_EXCEPTION) {
1241 if (ty) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1243 } else {
1244 SWIG_Python_TypeError("C/C++ pointer", obj);
1245 }
1246 }
1247 return -1;
1248}
1249
1250/* Convert a pointer value, signal an exception on a type mismatch */
1251SWIGRUNTIME void *
1252SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1253 void *result;
1254 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1255 PyErr_Clear();
1256 if (flags & SWIG_POINTER_EXCEPTION) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1258 SWIG_Python_ArgFail(argnum);
1259 }
1260 }
1261 return result;
1262}
1263
1264/* Convert a packed value value */
1265SWIGRUNTIME int
1266SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
7449af73 1267 swig_cast_info *tc;
093d3ff1
RD
1268 const char *c = 0;
1269
1270#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c = PySwigPacked_UnpackData(obj, ptr, sz);
1272#else
1273 if ((!obj) || (!PyString_Check(obj))) goto type_error;
7449af73 1274 c = PyString_AsString(obj);
093d3ff1
RD
1275 /* Pointer values must start with leading underscore */
1276 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1277#endif
1278 if (!c) goto type_error;
1279 if (ty) {
1280 tc = SWIG_TypeCheck(c,ty);
1281 if (!tc) goto type_error;
1282 }
1283 return 0;
1284
1285type_error:
1286 PyErr_Clear();
1287 if (flags & SWIG_POINTER_EXCEPTION) {
1288 if (ty) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1290 } else {
1291 SWIG_Python_TypeError("C/C++ packed data", obj);
1292 }
1293 }
1294 return -1;
1295}
1296
1297/* Create a new array object */
1298SWIGRUNTIME PyObject *
1299SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1300 PyObject *robj = 0;
7449af73
RD
1301 if (!type) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1304 }
1305 return robj;
1306 }
093d3ff1
RD
1307 if (!ptr) {
1308 Py_INCREF(Py_None);
1309 return Py_None;
1310 }
1311#ifdef SWIG_COBJECT_TYPES
1312 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1313#else
1314 {
1315 char result[SWIG_BUFFER_SIZE];
1316 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1317 PyString_FromString(result) : 0;
1318 }
1319#endif
1320 if (!robj || (robj == Py_None)) return robj;
1321 if (type->clientdata) {
1322 PyObject *inst;
1323 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1324 Py_DECREF(robj);
1325 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1326 Py_DECREF(args);
1327 if (inst) {
1328 if (own) {
1329 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1330 }
1331 robj = inst;
1332 }
1333 }
1334 return robj;
1335}
1336
1337SWIGRUNTIME PyObject *
1338SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1339 PyObject *robj = 0;
1340 if (!ptr) {
1341 Py_INCREF(Py_None);
1342 return Py_None;
1343 }
1344#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1346#else
1347 {
1348 char result[SWIG_BUFFER_SIZE];
1349 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1350 PyString_FromString(result) : 0;
1351 }
1352#endif
1353 return robj;
1354}
1355
1356/* -----------------------------------------------------------------------------*
1357 * Get type list
1358 * -----------------------------------------------------------------------------*/
1359
1360#ifdef SWIG_LINK_RUNTIME
1361void *SWIG_ReturnGlobalTypeList(void *);
1362#endif
1363
7449af73
RD
1364SWIGRUNTIME swig_module_info *
1365SWIG_Python_GetModule(void) {
093d3ff1
RD
1366 static void *type_pointer = (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer) {
1369#ifdef SWIG_LINK_RUNTIME
1370 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1371#else
1372 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1374 if (PyErr_Occurred()) {
1375 PyErr_Clear();
1376 type_pointer = (void *)0;
1377 }
093d3ff1 1378#endif
7449af73
RD
1379 }
1380 return (swig_module_info *) type_pointer;
093d3ff1
RD
1381}
1382
7449af73
RD
1383#if PY_MAJOR_VERSION < 2
1384/* PyModule_AddObject function was introduced in Python 2.0. The following function
1385is copied out of Python/modsupport.c in python version 2.3.4 */
1386SWIGINTERN int
1387PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1388{
1389 PyObject *dict;
1390 if (!PyModule_Check(m)) {
1391 PyErr_SetString(PyExc_TypeError,
1392 "PyModule_AddObject() needs module as first arg");
1393 return -1;
1394 }
1395 if (!o) {
1396 PyErr_SetString(PyExc_TypeError,
1397 "PyModule_AddObject() needs non-NULL value");
1398 return -1;
1399 }
1400
1401 dict = PyModule_GetDict(m);
1402 if (dict == NULL) {
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1405 PyModule_GetName(m));
1406 return -1;
1407 }
1408 if (PyDict_SetItemString(dict, name, o))
1409 return -1;
1410 Py_DECREF(o);
1411 return 0;
093d3ff1 1412}
7449af73 1413#endif
093d3ff1 1414
7449af73
RD
1415SWIGRUNTIME void
1416SWIG_Python_SetModule(swig_module_info *swig_module) {
1417 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1418
1419 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1420 swig_empty_runtime_method_table);
1421 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1422 if (pointer && module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1424 }
1425}
093d3ff1
RD
1426
1427#ifdef __cplusplus
1428}
1429#endif
1430
1431
1432/* -------- TYPES TABLE (BEGIN) -------- */
1433
7449af73
RD
1434#define SWIGTYPE_p_char swig_types[0]
1435#define SWIGTYPE_p_form_ops_t swig_types[1]
1436#define SWIGTYPE_p_int swig_types[2]
1437#define SWIGTYPE_p_unsigned_char swig_types[3]
1438#define SWIGTYPE_p_unsigned_int swig_types[4]
1439#define SWIGTYPE_p_unsigned_long swig_types[5]
1440#define SWIGTYPE_p_wxANIHandler swig_types[6]
1441#define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
1442#define SWIGTYPE_p_wxActivateEvent swig_types[8]
1443#define SWIGTYPE_p_wxBMPHandler swig_types[9]
1444#define SWIGTYPE_p_wxBoxSizer swig_types[10]
1445#define SWIGTYPE_p_wxCURHandler swig_types[11]
1446#define SWIGTYPE_p_wxChildFocusEvent swig_types[12]
1447#define SWIGTYPE_p_wxCloseEvent swig_types[13]
1448#define SWIGTYPE_p_wxCommandEvent swig_types[14]
1449#define SWIGTYPE_p_wxContextMenuEvent swig_types[15]
1450#define SWIGTYPE_p_wxControl swig_types[16]
1451#define SWIGTYPE_p_wxControlWithItems swig_types[17]
1452#define SWIGTYPE_p_wxDateEvent swig_types[18]
1453#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[19]
1454#define SWIGTYPE_p_wxDropFilesEvent swig_types[20]
1455#define SWIGTYPE_p_wxDuplexMode swig_types[21]
1456#define SWIGTYPE_p_wxEraseEvent swig_types[22]
1457#define SWIGTYPE_p_wxEvent swig_types[23]
1458#define SWIGTYPE_p_wxEvtHandler swig_types[24]
1459#define SWIGTYPE_p_wxFSFile swig_types[25]
1460#define SWIGTYPE_p_wxFileOffset swig_types[26]
1461#define SWIGTYPE_p_wxFileSystem swig_types[27]
1462#define SWIGTYPE_p_wxFlexGridSizer swig_types[28]
1463#define SWIGTYPE_p_wxFocusEvent swig_types[29]
1464#define SWIGTYPE_p_wxGBSizerItem swig_types[30]
1465#define SWIGTYPE_p_wxGIFHandler swig_types[31]
1466#define SWIGTYPE_p_wxGridBagSizer swig_types[32]
1467#define SWIGTYPE_p_wxGridSizer swig_types[33]
1468#define SWIGTYPE_p_wxICOHandler swig_types[34]
1469#define SWIGTYPE_p_wxIconizeEvent swig_types[35]
1470#define SWIGTYPE_p_wxIdleEvent swig_types[36]
1471#define SWIGTYPE_p_wxImage swig_types[37]
1472#define SWIGTYPE_p_wxImageHandler swig_types[38]
1473#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[39]
1474#define SWIGTYPE_p_wxInitDialogEvent swig_types[40]
1475#define SWIGTYPE_p_wxJPEGHandler swig_types[41]
1476#define SWIGTYPE_p_wxKeyEvent swig_types[42]
1477#define SWIGTYPE_p_wxLayoutConstraints swig_types[43]
1478#define SWIGTYPE_p_wxMaximizeEvent swig_types[44]
1479#define SWIGTYPE_p_wxMediaCtrl swig_types[45]
1480#define SWIGTYPE_p_wxMediaCtrlPlayerControls swig_types[46]
1481#define SWIGTYPE_p_wxMediaEvent swig_types[47]
1482#define SWIGTYPE_p_wxMenu swig_types[48]
1483#define SWIGTYPE_p_wxMenuBar swig_types[49]
1484#define SWIGTYPE_p_wxMenuEvent swig_types[50]
1485#define SWIGTYPE_p_wxMenuItem swig_types[51]
1486#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[52]
1487#define SWIGTYPE_p_wxMouseEvent swig_types[53]
1488#define SWIGTYPE_p_wxMoveEvent swig_types[54]
1489#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[55]
1490#define SWIGTYPE_p_wxNcPaintEvent swig_types[56]
1491#define SWIGTYPE_p_wxNotifyEvent swig_types[57]
1492#define SWIGTYPE_p_wxObject swig_types[58]
1493#define SWIGTYPE_p_wxPCXHandler swig_types[59]
1494#define SWIGTYPE_p_wxPNGHandler swig_types[60]
1495#define SWIGTYPE_p_wxPNMHandler swig_types[61]
1496#define SWIGTYPE_p_wxPaintEvent swig_types[62]
1497#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[63]
1498#define SWIGTYPE_p_wxPaperSize swig_types[64]
1499#define SWIGTYPE_p_wxPyApp swig_types[65]
1500#define SWIGTYPE_p_wxPyCommandEvent swig_types[66]
1501#define SWIGTYPE_p_wxPyEvent swig_types[67]
1502#define SWIGTYPE_p_wxPyImageHandler swig_types[68]
1503#define SWIGTYPE_p_wxPySizer swig_types[69]
1504#define SWIGTYPE_p_wxPyValidator swig_types[70]
1505#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[71]
1506#define SWIGTYPE_p_wxScrollEvent swig_types[72]
1507#define SWIGTYPE_p_wxScrollWinEvent swig_types[73]
1508#define SWIGTYPE_p_wxSetCursorEvent swig_types[74]
1509#define SWIGTYPE_p_wxShowEvent swig_types[75]
1510#define SWIGTYPE_p_wxSizeEvent swig_types[76]
1511#define SWIGTYPE_p_wxSizer swig_types[77]
1512#define SWIGTYPE_p_wxSizerItem swig_types[78]
1513#define SWIGTYPE_p_wxStaticBoxSizer swig_types[79]
1514#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[80]
1515#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[81]
1516#define SWIGTYPE_p_wxTIFFHandler swig_types[82]
1517#define SWIGTYPE_p_wxUpdateUIEvent swig_types[83]
1518#define SWIGTYPE_p_wxValidator swig_types[84]
1519#define SWIGTYPE_p_wxWindow swig_types[85]
1520#define SWIGTYPE_p_wxWindowCreateEvent swig_types[86]
1521#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[87]
1522#define SWIGTYPE_p_wxXPMHandler swig_types[88]
1523#define SWIGTYPE_ptrdiff_t swig_types[89]
1524#define SWIGTYPE_std__ptrdiff_t swig_types[90]
1525#define SWIGTYPE_unsigned_int swig_types[91]
1526static swig_type_info *swig_types[93];
1527static swig_module_info swig_module = {swig_types, 92, 0, 0, 0, 0};
1528#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1529#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
1530
1531/* -------- TYPES TABLE (END) -------- */
1532
1533
1534/*-----------------------------------------------
1535 @(target):= _media.so
1536 ------------------------------------------------*/
1537#define SWIG_init init_media
1538
1539#define SWIG_name "_media"
1540
1541#include "wx/wxPython/wxPython.h"
1542#include "wx/wxPython/pyclasses.h"
1543
1544#include <wx/mediactrl.h>
1545#include <wx/uri.h>
1546
1547
1548#if !wxUSE_MEDIACTRL
1549enum wxMediaState
1550{
1551 wxMEDIASTATE_STOPPED=0,
1552 wxMEDIASTATE_PAUSED=0,
1553 wxMEDIASTATE_PLAYING=0
1554};
1555
9d7dfdff
RD
1556enum wxMediaCtrlPlayerControls
1557{
1558 wxMEDIACTRLPLAYERCONTROLS_NONE,
1559 wxMEDIACTRLPLAYERCONTROLS_STEP,
1560 wxMEDIACTRLPLAYERCONTROLS_VOLUME,
1561 wxMEDIACTRLPLAYERCONTROLS_DEFAULT
1562};
093d3ff1 1563
9d7dfdff 1564
093d3ff1
RD
1565class wxMediaEvent : public wxNotifyEvent
1566{
1567public:
1568 wxMediaEvent(wxEventType, int ) { wxPyRaiseNotImplemented(); }
1569};
1570
1571class wxMediaCtrl : public wxControl
1572{
1573public:
a97cefba 1574 wxMediaCtrl() { wxPyRaiseNotImplemented(); }
093d3ff1
RD
1575
1576 wxMediaCtrl(wxWindow* , wxWindowID ,
1577 const wxString& ,
1578 const wxPoint& ,
1579 const wxSize& ,
1580 long style ,
1581 const wxString& ,
1582 const wxValidator& ,
1583 const wxString& ) { wxPyRaiseNotImplemented(); }
1584
093d3ff1
RD
1585 bool Create(wxWindow* , wxWindowID ,
1586 const wxString& ,
1587 const wxPoint& ,
1588 const wxSize& ,
1589 long style ,
1590 const wxString& ,
1591 const wxValidator& ,
1592 const wxString& ) { return false; }
1593
093d3ff1
RD
1594 bool Play() { return false; }
1595 bool Pause() { return false; }
1596 bool Stop() { return false; }
1597
093d3ff1
RD
1598 wxMediaState GetState() { return wxMEDIASTATE_STOPPED; }
1599
1600 double GetPlaybackRate() { return 0.0; }
1601 bool SetPlaybackRate(double dRate) { return false; }
1602
1603 wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart)
1604 { return 0; }
1605
1606 wxFileOffset Tell() { return 0; }
1607 wxFileOffset Length() { return 0; }
034e3677
RD
1608
1609 double GetVolume() { return 0.0; }
1610 bool SetVolume(double dVolume) { return false; }
9d7dfdff
RD
1611
1612 bool ShowPlayerControls(
1613 wxMediaCtrlPlayerControls flags = wxMEDIACTRLPLAYERCONTROLS_DEFAULT)
1614 { return false; }
1615
1616 bool Load(const wxString& fileName) { return false; }
1617 bool LoadURI(const wxString& fileName) { return false; }
1618 bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy) { return false; }
093d3ff1
RD
1619};
1620
1621const wxEventType wxEVT_MEDIA_FINISHED = 0;
1622const wxEventType wxEVT_MEDIA_STOP = 0;
7449af73 1623const wxEventType wxEVT_MEDIA_LOADED = 0;
093d3ff1
RD
1624
1625#endif
1626
1627
7449af73 1628 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
093d3ff1
RD
1629#define SWIG_From_int PyInt_FromLong
1630/*@@*/
8ac8dba0 1631
8ac8dba0
RD
1632
1633#include <limits.h>
1634
1635
093d3ff1 1636SWIGINTERN int
8ac8dba0
RD
1637 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1638 const char *errmsg)
1639{
1640 if (value < min_value) {
1641 if (errmsg) {
1642 PyErr_Format(PyExc_OverflowError,
1643 "value %ld is less than '%s' minimum %ld",
1644 value, errmsg, min_value);
1645 }
1646 return 0;
1647 } else if (value > max_value) {
1648 if (errmsg) {
1649 PyErr_Format(PyExc_OverflowError,
1650 "value %ld is greater than '%s' maximum %ld",
1651 value, errmsg, max_value);
1652 }
1653 return 0;
1654 }
1655 return 1;
1656}
1657
1658
093d3ff1 1659SWIGINTERN int
8ac8dba0
RD
1660SWIG_AsVal_long(PyObject* obj, long* val)
1661{
1662 if (PyNumber_Check(obj)) {
1663 if (val) *val = PyInt_AsLong(obj);
1664 return 1;
1665 }
1666 else {
093d3ff1 1667 SWIG_type_error("number", obj);
8ac8dba0
RD
1668 }
1669 return 0;
1670}
1671
1672
1673#if INT_MAX != LONG_MAX
093d3ff1 1674SWIGINTERN int
8ac8dba0
RD
1675 SWIG_AsVal_int(PyObject *obj, int *val)
1676{
093d3ff1 1677 const char* errmsg = val ? "int" : (char*)0;
8ac8dba0
RD
1678 long v;
1679 if (SWIG_AsVal_long(obj, &v)) {
1680 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
7449af73 1681 if (val) *val = static_cast<int >(v);
8ac8dba0
RD
1682 return 1;
1683 } else {
1684 return 0;
1685 }
1686 } else {
1687 PyErr_Clear();
1688 }
1689 if (val) {
093d3ff1 1690 SWIG_type_error(errmsg, obj);
8ac8dba0
RD
1691 }
1692 return 0;
1693}
1694#else
7449af73 1695SWIGINTERNINLINE int
8ac8dba0
RD
1696 SWIG_AsVal_int(PyObject *obj, int *val)
1697{
1698 return SWIG_AsVal_long(obj,(long*)val);
1699}
1700#endif
1701
1702
7449af73 1703SWIGINTERNINLINE int
8ac8dba0
RD
1704SWIG_As_int(PyObject* obj)
1705{
1706 int v;
1707 if (!SWIG_AsVal_int(obj, &v)) {
1708 /*
093d3ff1 1709 this is needed to make valgrind/purify happier.
8ac8dba0
RD
1710 */
1711 memset((void*)&v, 0, sizeof(int));
1712 }
1713 return v;
1714}
1715
1716
7449af73 1717SWIGINTERNINLINE int
8ac8dba0
RD
1718SWIG_Check_int(PyObject* obj)
1719{
1720 return SWIG_AsVal_int(obj, (int*)0);
1721}
1722
1723 static const wxString wxPyEmptyString(wxEmptyString);
f78cc896 1724 static const wxString wxPyMediaCtrlNameStr(wxT("mediaCtrl"));
8ac8dba0 1725
7449af73 1726SWIGINTERNINLINE long
8ac8dba0
RD
1727SWIG_As_long(PyObject* obj)
1728{
1729 long v;
1730 if (!SWIG_AsVal_long(obj, &v)) {
1731 /*
093d3ff1 1732 this is needed to make valgrind/purify happier.
8ac8dba0
RD
1733 */
1734 memset((void*)&v, 0, sizeof(long));
1735 }
1736 return v;
1737}
1738
1739
7449af73 1740SWIGINTERNINLINE int
8ac8dba0
RD
1741SWIG_Check_long(PyObject* obj)
1742{
1743 return SWIG_AsVal_long(obj, (long*)0);
1744}
1745
8ac8dba0 1746
7449af73 1747 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
093d3ff1
RD
1748#define SWIG_From_double PyFloat_FromDouble
1749/*@@*/
1750
1751
1752SWIGINTERN int
8ac8dba0
RD
1753SWIG_AsVal_double(PyObject *obj, double* val)
1754{
1755 if (PyNumber_Check(obj)) {
1756 if (val) *val = PyFloat_AsDouble(obj);
1757 return 1;
1758 }
1759 else {
093d3ff1 1760 SWIG_type_error("number", obj);
8ac8dba0
RD
1761 }
1762 return 0;
1763}
1764
1765
7449af73 1766SWIGINTERNINLINE double
8ac8dba0
RD
1767SWIG_As_double(PyObject* obj)
1768{
1769 double v;
1770 if (!SWIG_AsVal_double(obj, &v)) {
1771 /*
093d3ff1 1772 this is needed to make valgrind/purify happier.
8ac8dba0
RD
1773 */
1774 memset((void*)&v, 0, sizeof(double));
1775 }
1776 return v;
1777}
1778
1779
7449af73 1780SWIGINTERNINLINE int
8ac8dba0
RD
1781SWIG_Check_double(PyObject* obj)
1782{
1783 return SWIG_AsVal_double(obj, (double*)0);
1784}
1785
1786#ifdef __cplusplus
1787extern "C" {
1788#endif
8ac8dba0 1789static PyObject *_wrap_new_MediaEvent(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 1790 PyObject *resultobj = NULL;
8ac8dba0
RD
1791 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
1792 int arg2 = (int) 0 ;
1793 wxMediaEvent *result;
1794 PyObject * obj0 = 0 ;
1795 PyObject * obj1 = 0 ;
1796 char *kwnames[] = {
1797 (char *) "commandType",(char *) "id", NULL
1798 };
1799
1800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MediaEvent",kwnames,&obj0,&obj1)) goto fail;
1801 if (obj0) {
093d3ff1 1802 {
7449af73 1803 arg1 = static_cast<wxEventType >(SWIG_As_int(obj0));
093d3ff1
RD
1804 if (SWIG_arg_fail(1)) SWIG_fail;
1805 }
8ac8dba0
RD
1806 }
1807 if (obj1) {
093d3ff1 1808 {
7449af73 1809 arg2 = static_cast<int >(SWIG_As_int(obj1));
093d3ff1
RD
1810 if (SWIG_arg_fail(2)) SWIG_fail;
1811 }
8ac8dba0
RD
1812 }
1813 {
1814 PyThreadState* __tstate = wxPyBeginAllowThreads();
1815 result = (wxMediaEvent *)new wxMediaEvent(arg1,arg2);
1816
1817 wxPyEndAllowThreads(__tstate);
1818 if (PyErr_Occurred()) SWIG_fail;
1819 }
1820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaEvent, 1);
1821 return resultobj;
1822 fail:
1823 return NULL;
1824}
1825
1826
1827static PyObject * MediaEvent_swigregister(PyObject *, PyObject *args) {
1828 PyObject *obj;
1829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1830 SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent, obj);
1831 Py_INCREF(obj);
1832 return Py_BuildValue((char *)"");
1833}
1834static int _wrap_MediaCtrlNameStr_set(PyObject *) {
1835 PyErr_SetString(PyExc_TypeError,"Variable MediaCtrlNameStr is read-only.");
1836 return 1;
1837}
1838
1839
093d3ff1 1840static PyObject *_wrap_MediaCtrlNameStr_get(void) {
7449af73 1841 PyObject *pyobj = NULL;
8ac8dba0
RD
1842
1843 {
1844#if wxUSE_UNICODE
1845 pyobj = PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
1846#else
1847 pyobj = PyString_FromStringAndSize((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
1848#endif
1849 }
1850 return pyobj;
1851}
1852
1853
1854static PyObject *_wrap_new_MediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 1855 PyObject *resultobj = NULL;
8ac8dba0
RD
1856 wxWindow *arg1 = (wxWindow *) 0 ;
1857 int arg2 = (int) -1 ;
1858 wxString const &arg3_defvalue = wxPyEmptyString ;
1859 wxString *arg3 = (wxString *) &arg3_defvalue ;
1860 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1861 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1862 wxSize const &arg5_defvalue = wxDefaultSize ;
1863 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1864 long arg6 = (long) 0 ;
1865 wxString const &arg7_defvalue = wxPyEmptyString ;
1866 wxString *arg7 = (wxString *) &arg7_defvalue ;
1867 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1868 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1869 wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ;
1870 wxString *arg9 = (wxString *) &arg9_defvalue ;
1871 wxMediaCtrl *result;
1872 bool temp3 = false ;
1873 wxPoint temp4 ;
1874 wxSize temp5 ;
1875 bool temp7 = false ;
1876 bool temp9 = false ;
1877 PyObject * obj0 = 0 ;
1878 PyObject * obj1 = 0 ;
1879 PyObject * obj2 = 0 ;
1880 PyObject * obj3 = 0 ;
1881 PyObject * obj4 = 0 ;
1882 PyObject * obj5 = 0 ;
1883 PyObject * obj6 = 0 ;
1884 PyObject * obj7 = 0 ;
1885 PyObject * obj8 = 0 ;
1886 char *kwnames[] = {
1887 (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
1888 };
1889
1890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
093d3ff1
RD
1891 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1892 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0 1893 if (obj1) {
093d3ff1 1894 {
7449af73 1895 arg2 = static_cast<int >(SWIG_As_int(obj1));
093d3ff1
RD
1896 if (SWIG_arg_fail(2)) SWIG_fail;
1897 }
8ac8dba0
RD
1898 }
1899 if (obj2) {
1900 {
1901 arg3 = wxString_in_helper(obj2);
1902 if (arg3 == NULL) SWIG_fail;
1903 temp3 = true;
1904 }
1905 }
1906 if (obj3) {
1907 {
1908 arg4 = &temp4;
1909 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1910 }
1911 }
1912 if (obj4) {
1913 {
1914 arg5 = &temp5;
1915 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1916 }
1917 }
1918 if (obj5) {
093d3ff1 1919 {
7449af73 1920 arg6 = static_cast<long >(SWIG_As_long(obj5));
093d3ff1
RD
1921 if (SWIG_arg_fail(6)) SWIG_fail;
1922 }
8ac8dba0
RD
1923 }
1924 if (obj6) {
1925 {
1926 arg7 = wxString_in_helper(obj6);
1927 if (arg7 == NULL) SWIG_fail;
1928 temp7 = true;
1929 }
1930 }
1931 if (obj7) {
093d3ff1
RD
1932 {
1933 SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
1934 if (SWIG_arg_fail(8)) SWIG_fail;
1935 if (arg8 == NULL) {
1936 SWIG_null_ref("wxValidator");
1937 }
1938 if (SWIG_arg_fail(8)) SWIG_fail;
8ac8dba0
RD
1939 }
1940 }
1941 if (obj8) {
1942 {
1943 arg9 = wxString_in_helper(obj8);
1944 if (arg9 == NULL) SWIG_fail;
1945 temp9 = true;
1946 }
1947 }
1948 {
1949 if (!wxPyCheckForApp()) SWIG_fail;
1950 PyThreadState* __tstate = wxPyBeginAllowThreads();
1951 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);
1952
1953 wxPyEndAllowThreads(__tstate);
1954 if (PyErr_Occurred()) SWIG_fail;
1955 }
1956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
1957 {
1958 if (temp3)
1959 delete arg3;
1960 }
1961 {
1962 if (temp7)
1963 delete arg7;
1964 }
1965 {
1966 if (temp9)
1967 delete arg9;
1968 }
1969 return resultobj;
1970 fail:
1971 {
1972 if (temp3)
1973 delete arg3;
1974 }
1975 {
1976 if (temp7)
1977 delete arg7;
1978 }
1979 {
1980 if (temp9)
1981 delete arg9;
1982 }
1983 return NULL;
1984}
1985
1986
1987static PyObject *_wrap_new_PreMediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 1988 PyObject *resultobj = NULL;
8ac8dba0
RD
1989 wxMediaCtrl *result;
1990 char *kwnames[] = {
1991 NULL
1992 };
1993
1994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMediaCtrl",kwnames)) goto fail;
1995 {
1996 if (!wxPyCheckForApp()) SWIG_fail;
1997 PyThreadState* __tstate = wxPyBeginAllowThreads();
1998 result = (wxMediaCtrl *)new wxMediaCtrl();
1999
2000 wxPyEndAllowThreads(__tstate);
2001 if (PyErr_Occurred()) SWIG_fail;
2002 }
2003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
2004 return resultobj;
2005 fail:
2006 return NULL;
2007}
2008
2009
093d3ff1 2010static PyObject *_wrap_MediaCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2011 PyObject *resultobj = NULL;
8ac8dba0
RD
2012 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2013 wxWindow *arg2 = (wxWindow *) 0 ;
2014 int arg3 = (int) -1 ;
2015 wxString const &arg4_defvalue = wxPyEmptyString ;
2016 wxString *arg4 = (wxString *) &arg4_defvalue ;
2017 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2018 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2019 wxSize const &arg6_defvalue = wxDefaultSize ;
2020 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2021 long arg7 = (long) 0 ;
2022 wxString const &arg8_defvalue = wxPyEmptyString ;
2023 wxString *arg8 = (wxString *) &arg8_defvalue ;
2024 wxValidator const &arg9_defvalue = wxDefaultValidator ;
2025 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
2026 wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ;
2027 wxString *arg10 = (wxString *) &arg10_defvalue ;
2028 bool result;
2029 bool temp4 = false ;
2030 wxPoint temp5 ;
2031 wxSize temp6 ;
2032 bool temp8 = false ;
2033 bool temp10 = false ;
2034 PyObject * obj0 = 0 ;
2035 PyObject * obj1 = 0 ;
2036 PyObject * obj2 = 0 ;
2037 PyObject * obj3 = 0 ;
2038 PyObject * obj4 = 0 ;
2039 PyObject * obj5 = 0 ;
2040 PyObject * obj6 = 0 ;
2041 PyObject * obj7 = 0 ;
2042 PyObject * obj8 = 0 ;
2043 PyObject * obj9 = 0 ;
2044 char *kwnames[] = {
2045 (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
2046 };
2047
2048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
093d3ff1
RD
2049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2050 if (SWIG_arg_fail(1)) SWIG_fail;
2051 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2052 if (SWIG_arg_fail(2)) SWIG_fail;
8ac8dba0 2053 if (obj2) {
093d3ff1 2054 {
7449af73 2055 arg3 = static_cast<int >(SWIG_As_int(obj2));
093d3ff1
RD
2056 if (SWIG_arg_fail(3)) SWIG_fail;
2057 }
8ac8dba0
RD
2058 }
2059 if (obj3) {
2060 {
2061 arg4 = wxString_in_helper(obj3);
2062 if (arg4 == NULL) SWIG_fail;
2063 temp4 = true;
2064 }
2065 }
2066 if (obj4) {
2067 {
2068 arg5 = &temp5;
2069 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2070 }
2071 }
2072 if (obj5) {
2073 {
2074 arg6 = &temp6;
2075 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2076 }
2077 }
2078 if (obj6) {
093d3ff1 2079 {
7449af73 2080 arg7 = static_cast<long >(SWIG_As_long(obj6));
093d3ff1
RD
2081 if (SWIG_arg_fail(7)) SWIG_fail;
2082 }
8ac8dba0
RD
2083 }
2084 if (obj7) {
2085 {
2086 arg8 = wxString_in_helper(obj7);
2087 if (arg8 == NULL) SWIG_fail;
2088 temp8 = true;
2089 }
2090 }
2091 if (obj8) {
093d3ff1
RD
2092 {
2093 SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
2094 if (SWIG_arg_fail(9)) SWIG_fail;
2095 if (arg9 == NULL) {
2096 SWIG_null_ref("wxValidator");
2097 }
2098 if (SWIG_arg_fail(9)) SWIG_fail;
8ac8dba0
RD
2099 }
2100 }
2101 if (obj9) {
2102 {
2103 arg10 = wxString_in_helper(obj9);
2104 if (arg10 == NULL) SWIG_fail;
2105 temp10 = true;
2106 }
2107 }
2108 {
2109 PyThreadState* __tstate = wxPyBeginAllowThreads();
2110 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);
2111
2112 wxPyEndAllowThreads(__tstate);
2113 if (PyErr_Occurred()) SWIG_fail;
2114 }
2115 {
2116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2117 }
2118 {
2119 if (temp4)
2120 delete arg4;
2121 }
2122 {
2123 if (temp8)
2124 delete arg8;
2125 }
2126 {
2127 if (temp10)
2128 delete arg10;
2129 }
2130 return resultobj;
2131 fail:
2132 {
2133 if (temp4)
2134 delete arg4;
2135 }
2136 {
2137 if (temp8)
2138 delete arg8;
2139 }
2140 {
2141 if (temp10)
2142 delete arg10;
2143 }
2144 return NULL;
2145}
2146
2147
2148static PyObject *_wrap_MediaCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2149 PyObject *resultobj = NULL;
8ac8dba0
RD
2150 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2151 bool result;
2152 PyObject * obj0 = 0 ;
2153 char *kwnames[] = {
2154 (char *) "self", NULL
2155 };
2156
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Play",kwnames,&obj0)) goto fail;
093d3ff1
RD
2158 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2159 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0
RD
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 result = (bool)(arg1)->Play();
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 {
2168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2169 }
2170 return resultobj;
2171 fail:
2172 return NULL;
2173}
2174
2175
2176static PyObject *_wrap_MediaCtrl_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2177 PyObject *resultobj = NULL;
8ac8dba0
RD
2178 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2179 bool result;
2180 PyObject * obj0 = 0 ;
2181 char *kwnames[] = {
2182 (char *) "self", NULL
2183 };
2184
2185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Pause",kwnames,&obj0)) goto fail;
093d3ff1
RD
2186 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2187 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0
RD
2188 {
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
2190 result = (bool)(arg1)->Pause();
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
2195 {
2196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2197 }
2198 return resultobj;
2199 fail:
2200 return NULL;
2201}
2202
2203
2204static PyObject *_wrap_MediaCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2205 PyObject *resultobj = NULL;
8ac8dba0
RD
2206 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2207 bool result;
2208 PyObject * obj0 = 0 ;
2209 char *kwnames[] = {
2210 (char *) "self", NULL
2211 };
2212
2213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Stop",kwnames,&obj0)) goto fail;
093d3ff1
RD
2214 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2215 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0
RD
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 result = (bool)(arg1)->Stop();
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 {
2224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2225 }
2226 return resultobj;
2227 fail:
2228 return NULL;
2229}
2230
2231
9d7dfdff 2232static PyObject *_wrap_MediaCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2233 PyObject *resultobj = NULL;
9d7dfdff
RD
2234 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2235 wxMediaState result;
2236 PyObject * obj0 = 0 ;
2237 char *kwnames[] = {
2238 (char *) "self", NULL
2239 };
2240
2241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetState",kwnames,&obj0)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
2246 result = (wxMediaState)(arg1)->GetState();
2247
2248 wxPyEndAllowThreads(__tstate);
2249 if (PyErr_Occurred()) SWIG_fail;
2250 }
2251 resultobj = SWIG_From_int((result));
2252 return resultobj;
2253 fail:
2254 return NULL;
2255}
2256
2257
2258static PyObject *_wrap_MediaCtrl_GetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2259 PyObject *resultobj = NULL;
034e3677
RD
2260 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2261 double result;
2262 PyObject * obj0 = 0 ;
2263 char *kwnames[] = {
2264 (char *) "self", NULL
2265 };
2266
9d7dfdff 2267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames,&obj0)) goto fail;
034e3677
RD
2268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2269 if (SWIG_arg_fail(1)) SWIG_fail;
2270 {
2271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2272 result = (double)(arg1)->GetPlaybackRate();
034e3677
RD
2273
2274 wxPyEndAllowThreads(__tstate);
2275 if (PyErr_Occurred()) SWIG_fail;
2276 }
2277 {
7449af73 2278 resultobj = SWIG_From_double(static_cast<double >(result));
034e3677
RD
2279 }
2280 return resultobj;
2281 fail:
2282 return NULL;
2283}
2284
2285
9d7dfdff 2286static PyObject *_wrap_MediaCtrl_SetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2287 PyObject *resultobj = NULL;
034e3677
RD
2288 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2289 double arg2 ;
2290 bool result;
2291 PyObject * obj0 = 0 ;
2292 PyObject * obj1 = 0 ;
2293 char *kwnames[] = {
9d7dfdff 2294 (char *) "self",(char *) "dRate", NULL
034e3677
RD
2295 };
2296
9d7dfdff 2297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames,&obj0,&obj1)) goto fail;
034e3677
RD
2298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2299 if (SWIG_arg_fail(1)) SWIG_fail;
2300 {
7449af73 2301 arg2 = static_cast<double >(SWIG_As_double(obj1));
034e3677
RD
2302 if (SWIG_arg_fail(2)) SWIG_fail;
2303 }
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2306 result = (bool)(arg1)->SetPlaybackRate(arg2);
034e3677
RD
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 }
2311 {
2312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2313 }
2314 return resultobj;
2315 fail:
2316 return NULL;
2317}
2318
2319
9d7dfdff 2320static PyObject *_wrap_MediaCtrl_Seek(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2321 PyObject *resultobj = NULL;
8ac8dba0 2322 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
9d7dfdff
RD
2323 wxFileOffset arg2 ;
2324 wxSeekMode arg3 = (wxSeekMode) wxFromStart ;
2325 wxFileOffset result;
8ac8dba0
RD
2326 PyObject * obj0 = 0 ;
2327 PyObject * obj1 = 0 ;
9d7dfdff 2328 PyObject * obj2 = 0 ;
8ac8dba0 2329 char *kwnames[] = {
9d7dfdff 2330 (char *) "self",(char *) "where",(char *) "mode", NULL
8ac8dba0
RD
2331 };
2332
9d7dfdff 2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MediaCtrl_Seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
093d3ff1
RD
2334 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2335 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0 2336 {
9d7dfdff
RD
2337 if (sizeof(wxFileOffset) > sizeof(long))
2338 arg2 = PyLong_AsLongLong(obj1);
2339 else
2340 arg2 = PyInt_AsLong(obj1);
2341 }
2342 if (obj2) {
2343 {
7449af73 2344 arg3 = static_cast<wxSeekMode >(SWIG_As_int(obj2));
9d7dfdff
RD
2345 if (SWIG_arg_fail(3)) SWIG_fail;
2346 }
8ac8dba0
RD
2347 }
2348 {
2349 PyThreadState* __tstate = wxPyBeginAllowThreads();
7449af73 2350 result = (arg1)->Seek(arg2,arg3);
8ac8dba0
RD
2351
2352 wxPyEndAllowThreads(__tstate);
2353 if (PyErr_Occurred()) SWIG_fail;
2354 }
2355 {
9d7dfdff
RD
2356 if (sizeof(wxFileOffset) > sizeof(long))
2357 resultobj = PyLong_FromLongLong(result);
2358 else
2359 resultobj = PyInt_FromLong(result);
8ac8dba0
RD
2360 }
2361 return resultobj;
2362 fail:
8ac8dba0
RD
2363 return NULL;
2364}
2365
2366
9d7dfdff 2367static PyObject *_wrap_MediaCtrl_Tell(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2368 PyObject *resultobj = NULL;
8ac8dba0 2369 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
9d7dfdff 2370 wxFileOffset result;
8ac8dba0 2371 PyObject * obj0 = 0 ;
8ac8dba0 2372 char *kwnames[] = {
9d7dfdff 2373 (char *) "self", NULL
8ac8dba0
RD
2374 };
2375
9d7dfdff 2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Tell",kwnames,&obj0)) goto fail;
093d3ff1
RD
2377 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2378 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0
RD
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2381 result = (arg1)->Tell();
8ac8dba0
RD
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 {
9d7dfdff
RD
2387 if (sizeof(wxFileOffset) > sizeof(long))
2388 resultobj = PyLong_FromLongLong(result);
2389 else
2390 resultobj = PyInt_FromLong(result);
8ac8dba0
RD
2391 }
2392 return resultobj;
2393 fail:
8ac8dba0
RD
2394 return NULL;
2395}
2396
2397
9d7dfdff 2398static PyObject *_wrap_MediaCtrl_Length(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2399 PyObject *resultobj = NULL;
8ac8dba0 2400 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
9d7dfdff 2401 wxFileOffset result;
8ac8dba0
RD
2402 PyObject * obj0 = 0 ;
2403 char *kwnames[] = {
2404 (char *) "self", NULL
2405 };
2406
9d7dfdff 2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Length",kwnames,&obj0)) goto fail;
093d3ff1
RD
2408 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2409 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0
RD
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2412 result = (arg1)->Length();
8ac8dba0
RD
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) SWIG_fail;
2416 }
9d7dfdff
RD
2417 {
2418 if (sizeof(wxFileOffset) > sizeof(long))
2419 resultobj = PyLong_FromLongLong(result);
2420 else
2421 resultobj = PyInt_FromLong(result);
2422 }
8ac8dba0
RD
2423 return resultobj;
2424 fail:
2425 return NULL;
2426}
2427
2428
9d7dfdff 2429static PyObject *_wrap_MediaCtrl_GetVolume(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2430 PyObject *resultobj = NULL;
8ac8dba0
RD
2431 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2432 double result;
2433 PyObject * obj0 = 0 ;
2434 char *kwnames[] = {
2435 (char *) "self", NULL
2436 };
2437
9d7dfdff 2438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetVolume",kwnames,&obj0)) goto fail;
093d3ff1
RD
2439 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2440 if (SWIG_arg_fail(1)) SWIG_fail;
8ac8dba0
RD
2441 {
2442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2443 result = (double)(arg1)->GetVolume();
8ac8dba0
RD
2444
2445 wxPyEndAllowThreads(__tstate);
2446 if (PyErr_Occurred()) SWIG_fail;
2447 }
093d3ff1 2448 {
7449af73 2449 resultobj = SWIG_From_double(static_cast<double >(result));
093d3ff1 2450 }
8ac8dba0
RD
2451 return resultobj;
2452 fail:
2453 return NULL;
2454}
2455
2456
9d7dfdff 2457static PyObject *_wrap_MediaCtrl_SetVolume(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2458 PyObject *resultobj = NULL;
8ac8dba0
RD
2459 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2460 double arg2 ;
2461 bool result;
2462 PyObject * obj0 = 0 ;
2463 PyObject * obj1 = 0 ;
2464 char *kwnames[] = {
9d7dfdff 2465 (char *) "self",(char *) "dVolume", NULL
8ac8dba0
RD
2466 };
2467
9d7dfdff 2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetVolume",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
2469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2470 if (SWIG_arg_fail(1)) SWIG_fail;
2471 {
7449af73 2472 arg2 = static_cast<double >(SWIG_As_double(obj1));
093d3ff1
RD
2473 if (SWIG_arg_fail(2)) SWIG_fail;
2474 }
8ac8dba0
RD
2475 {
2476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2477 result = (bool)(arg1)->SetVolume(arg2);
8ac8dba0
RD
2478
2479 wxPyEndAllowThreads(__tstate);
2480 if (PyErr_Occurred()) SWIG_fail;
2481 }
2482 {
2483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2484 }
2485 return resultobj;
2486 fail:
2487 return NULL;
2488}
2489
2490
9d7dfdff 2491static PyObject *_wrap_MediaCtrl_ShowPlayerControls(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2492 PyObject *resultobj = NULL;
8ac8dba0 2493 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
9d7dfdff
RD
2494 wxMediaCtrlPlayerControls arg2 = (wxMediaCtrlPlayerControls) wxMEDIACTRLPLAYERCONTROLS_DEFAULT ;
2495 bool result;
8ac8dba0
RD
2496 PyObject * obj0 = 0 ;
2497 PyObject * obj1 = 0 ;
2498 char *kwnames[] = {
9d7dfdff 2499 (char *) "self",(char *) "flags", NULL
8ac8dba0
RD
2500 };
2501
9d7dfdff 2502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MediaCtrl_ShowPlayerControls",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
2503 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2504 if (SWIG_arg_fail(1)) SWIG_fail;
9d7dfdff 2505 if (obj1) {
093d3ff1 2506 {
9d7dfdff
RD
2507 wxMediaCtrlPlayerControls * argp;
2508 SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxMediaCtrlPlayerControls, SWIG_POINTER_EXCEPTION);
2509 if (SWIG_arg_fail(2)) SWIG_fail;
2510 if (argp == NULL) {
2511 SWIG_null_ref("wxMediaCtrlPlayerControls");
2512 }
2513 if (SWIG_arg_fail(2)) SWIG_fail;
2514 arg2 = *argp;
093d3ff1 2515 }
8ac8dba0
RD
2516 }
2517 {
2518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2519 result = (bool)(arg1)->ShowPlayerControls(arg2);
8ac8dba0
RD
2520
2521 wxPyEndAllowThreads(__tstate);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
2524 {
9d7dfdff 2525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8ac8dba0
RD
2526 }
2527 return resultobj;
2528 fail:
2529 return NULL;
2530}
2531
2532
9d7dfdff 2533static PyObject *_wrap_MediaCtrl_Load(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2534 PyObject *resultobj = NULL;
8ac8dba0 2535 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
9d7dfdff
RD
2536 wxString *arg2 = 0 ;
2537 bool result;
2538 bool temp2 = false ;
8ac8dba0 2539 PyObject * obj0 = 0 ;
9d7dfdff 2540 PyObject * obj1 = 0 ;
8ac8dba0 2541 char *kwnames[] = {
9d7dfdff 2542 (char *) "self",(char *) "fileName", NULL
8ac8dba0
RD
2543 };
2544
9d7dfdff 2545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_Load",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
2546 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2547 if (SWIG_arg_fail(1)) SWIG_fail;
9d7dfdff
RD
2548 {
2549 arg2 = wxString_in_helper(obj1);
2550 if (arg2 == NULL) SWIG_fail;
2551 temp2 = true;
2552 }
8ac8dba0
RD
2553 {
2554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2555 result = (bool)(arg1)->Load((wxString const &)*arg2);
8ac8dba0
RD
2556
2557 wxPyEndAllowThreads(__tstate);
2558 if (PyErr_Occurred()) SWIG_fail;
2559 }
2560 {
9d7dfdff
RD
2561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2562 }
2563 {
2564 if (temp2)
2565 delete arg2;
8ac8dba0
RD
2566 }
2567 return resultobj;
2568 fail:
9d7dfdff
RD
2569 {
2570 if (temp2)
2571 delete arg2;
2572 }
8ac8dba0
RD
2573 return NULL;
2574}
2575
2576
9d7dfdff 2577static PyObject *_wrap_MediaCtrl_LoadURI(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2578 PyObject *resultobj = NULL;
8ac8dba0 2579 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
9d7dfdff
RD
2580 wxString *arg2 = 0 ;
2581 bool result;
2582 bool temp2 = false ;
8ac8dba0 2583 PyObject * obj0 = 0 ;
9d7dfdff 2584 PyObject * obj1 = 0 ;
8ac8dba0 2585 char *kwnames[] = {
9d7dfdff 2586 (char *) "self",(char *) "fileName", NULL
8ac8dba0
RD
2587 };
2588
9d7dfdff 2589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_LoadURI",kwnames,&obj0,&obj1)) goto fail;
093d3ff1
RD
2590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2591 if (SWIG_arg_fail(1)) SWIG_fail;
9d7dfdff
RD
2592 {
2593 arg2 = wxString_in_helper(obj1);
2594 if (arg2 == NULL) SWIG_fail;
2595 temp2 = true;
2596 }
8ac8dba0
RD
2597 {
2598 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 2599 result = (bool)(arg1)->LoadURI((wxString const &)*arg2);
8ac8dba0
RD
2600
2601 wxPyEndAllowThreads(__tstate);
2602 if (PyErr_Occurred()) SWIG_fail;
2603 }
2604 {
9d7dfdff
RD
2605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2606 }
2607 {
2608 if (temp2)
2609 delete arg2;
8ac8dba0
RD
2610 }
2611 return resultobj;
2612 fail:
9d7dfdff
RD
2613 {
2614 if (temp2)
2615 delete arg2;
2616 }
2617 return NULL;
2618}
2619
2620
2621static PyObject *_wrap_MediaCtrl_LoadURIWithProxy(PyObject *, PyObject *args, PyObject *kwargs) {
7449af73 2622 PyObject *resultobj = NULL;
9d7dfdff
RD
2623 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
2624 wxString *arg2 = 0 ;
2625 wxString *arg3 = 0 ;
2626 bool result;
2627 bool temp2 = false ;
2628 bool temp3 = false ;
2629 PyObject * obj0 = 0 ;
2630 PyObject * obj1 = 0 ;
2631 PyObject * obj2 = 0 ;
2632 char *kwnames[] = {
2633 (char *) "self",(char *) "fileName",(char *) "proxy", NULL
2634 };
2635
2636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MediaCtrl_LoadURIWithProxy",kwnames,&obj0,&obj1,&obj2)) goto fail;
2637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMediaCtrl, SWIG_POINTER_EXCEPTION | 0);
2638 if (SWIG_arg_fail(1)) SWIG_fail;
2639 {
2640 arg2 = wxString_in_helper(obj1);
2641 if (arg2 == NULL) SWIG_fail;
2642 temp2 = true;
2643 }
2644 {
2645 arg3 = wxString_in_helper(obj2);
2646 if (arg3 == NULL) SWIG_fail;
2647 temp3 = true;
2648 }
2649 {
2650 PyThreadState* __tstate = wxPyBeginAllowThreads();
2651 result = (bool)(arg1)->LoadURIWithProxy((wxString const &)*arg2,(wxString const &)*arg3);
2652
2653 wxPyEndAllowThreads(__tstate);
2654 if (PyErr_Occurred()) SWIG_fail;
2655 }
2656 {
2657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2658 }
2659 {
2660 if (temp2)
2661 delete arg2;
2662 }
2663 {
2664 if (temp3)
2665 delete arg3;
2666 }
2667 return resultobj;
2668 fail:
2669 {
2670 if (temp2)
2671 delete arg2;
2672 }
2673 {
2674 if (temp3)
2675 delete arg3;
2676 }
8ac8dba0
RD
2677 return NULL;
2678}
2679
2680
2681static PyObject * MediaCtrl_swigregister(PyObject *, PyObject *args) {
2682 PyObject *obj;
2683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2684 SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl, obj);
2685 Py_INCREF(obj);
2686 return Py_BuildValue((char *)"");
2687}
2688static PyMethodDef SwigMethods[] = {
093d3ff1
RD
2689 { (char *)"new_MediaEvent", (PyCFunction) _wrap_new_MediaEvent, METH_VARARGS | METH_KEYWORDS, NULL},
2690 { (char *)"MediaEvent_swigregister", MediaEvent_swigregister, METH_VARARGS, NULL},
2691 { (char *)"new_MediaCtrl", (PyCFunction) _wrap_new_MediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2692 { (char *)"new_PreMediaCtrl", (PyCFunction) _wrap_new_PreMediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
2693 { (char *)"MediaCtrl_Create", (PyCFunction) _wrap_MediaCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
2694 { (char *)"MediaCtrl_Play", (PyCFunction) _wrap_MediaCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL},
2695 { (char *)"MediaCtrl_Pause", (PyCFunction) _wrap_MediaCtrl_Pause, METH_VARARGS | METH_KEYWORDS, NULL},
2696 { (char *)"MediaCtrl_Stop", (PyCFunction) _wrap_MediaCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1
RD
2697 { (char *)"MediaCtrl_GetState", (PyCFunction) _wrap_MediaCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
2698 { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_GetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL},
2699 { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_SetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL},
2700 { (char *)"MediaCtrl_Seek", (PyCFunction) _wrap_MediaCtrl_Seek, METH_VARARGS | METH_KEYWORDS, NULL},
2701 { (char *)"MediaCtrl_Tell", (PyCFunction) _wrap_MediaCtrl_Tell, METH_VARARGS | METH_KEYWORDS, NULL},
2702 { (char *)"MediaCtrl_Length", (PyCFunction) _wrap_MediaCtrl_Length, METH_VARARGS | METH_KEYWORDS, NULL},
9d7dfdff
RD
2703 { (char *)"MediaCtrl_GetVolume", (PyCFunction) _wrap_MediaCtrl_GetVolume, METH_VARARGS | METH_KEYWORDS, NULL},
2704 { (char *)"MediaCtrl_SetVolume", (PyCFunction) _wrap_MediaCtrl_SetVolume, METH_VARARGS | METH_KEYWORDS, NULL},
2705 { (char *)"MediaCtrl_ShowPlayerControls", (PyCFunction) _wrap_MediaCtrl_ShowPlayerControls, METH_VARARGS | METH_KEYWORDS, NULL},
2706 { (char *)"MediaCtrl_Load", (PyCFunction) _wrap_MediaCtrl_Load, METH_VARARGS | METH_KEYWORDS, NULL},
2707 { (char *)"MediaCtrl_LoadURI", (PyCFunction) _wrap_MediaCtrl_LoadURI, METH_VARARGS | METH_KEYWORDS, NULL},
2708 { (char *)"MediaCtrl_LoadURIWithProxy", (PyCFunction) _wrap_MediaCtrl_LoadURIWithProxy, METH_VARARGS | METH_KEYWORDS, NULL},
093d3ff1 2709 { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister, METH_VARARGS, NULL},
8ac8dba0
RD
2710 { NULL, NULL, 0, NULL }
2711};
2712
2713
2714/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2715
093d3ff1
RD
2716static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
2717 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
8ac8dba0 2718}
093d3ff1
RD
2719static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
2720 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
8ac8dba0
RD
2721}
2722static void *_p_wxSizerItemTo_p_wxObject(void *x) {
2723 return (void *)((wxObject *) ((wxSizerItem *) x));
2724}
2725static void *_p_wxScrollEventTo_p_wxObject(void *x) {
2726 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
2727}
2728static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
2729 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
2730}
2731static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
2732 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
2733}
2734static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
2735 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
2736}
2737static void *_p_wxSizerTo_p_wxObject(void *x) {
2738 return (void *)((wxObject *) ((wxSizer *) x));
2739}
2740static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2741 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2742}
2743static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2745}
2746static void *_p_wxEventTo_p_wxObject(void *x) {
2747 return (void *)((wxObject *) ((wxEvent *) x));
2748}
2749static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2750 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2751}
2752static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2753 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2754}
2755static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2756 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2757}
2758static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2759 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2760}
2761static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2762 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2763}
2764static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2765 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2766}
2767static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2768 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2769}
2770static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2771 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2772}
2773static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2774 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2775}
2776static void *_p_wxMediaCtrlTo_p_wxObject(void *x) {
2777 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
2778}
2779static void *_p_wxControlTo_p_wxObject(void *x) {
2780 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2781}
2782static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2783 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2784}
8ac8dba0
RD
2785static void *_p_wxFSFileTo_p_wxObject(void *x) {
2786 return (void *)((wxObject *) ((wxFSFile *) x));
2787}
51b83b37
RD
2788static void *_p_wxMediaEventTo_p_wxObject(void *x) {
2789 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
2790}
8ac8dba0
RD
2791static void *_p_wxPySizerTo_p_wxObject(void *x) {
2792 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2793}
2794static void *_p_wxPyEventTo_p_wxObject(void *x) {
2795 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2796}
2797static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2798 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2799}
2800static void *_p_wxShowEventTo_p_wxObject(void *x) {
2801 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2802}
2803static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2804 return (void *)((wxObject *) ((wxMenuItem *) x));
2805}
53aa7709
RD
2806static void *_p_wxDateEventTo_p_wxObject(void *x) {
2807 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
2808}
8ac8dba0
RD
2809static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2810 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2811}
2812static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2813 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2814}
2815static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2816 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2817}
2818static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2819 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2820}
2821static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2822 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2823}
2824static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2825 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2826}
2827static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2828 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2829}
2830static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2831 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2832}
8ac8dba0
RD
2833static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2834 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2835}
2836static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2837 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2838}
2839static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2840 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2841}
2842static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2843 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2844}
2845static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2846 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2847}
2848static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2849 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2850}
2851static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2852 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2853}
2854static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2855 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2856}
2857static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2858 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2859}
9d7dfdff
RD
2860static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
2861 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
2862}
8ac8dba0
RD
2863static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2864 return (void *)((wxObject *) ((wxImageHandler *) x));
2865}
9d7dfdff
RD
2866static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2867 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2868}
8ac8dba0
RD
2869static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2870 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2871}
2872static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2873 return (void *)((wxObject *) ((wxEvtHandler *) x));
2874}
51b83b37
RD
2875static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
2876 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
2877}
8ac8dba0
RD
2878static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
2879 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
2880}
2881static void *_p_wxImageTo_p_wxObject(void *x) {
2882 return (void *)((wxObject *) ((wxImage *) x));
2883}
2884static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2885 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2886}
2887static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2888 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2889}
2890static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2891 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2892}
2893static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2894 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2895}
2896static void *_p_wxWindowTo_p_wxObject(void *x) {
2897 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2898}
2899static void *_p_wxMenuTo_p_wxObject(void *x) {
2900 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2901}
2902static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2904}
2905static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2906 return (void *)((wxObject *) ((wxFileSystem *) x));
2907}
2908static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2909 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2910}
2911static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2912 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2913}
2914static void *_p_wxPyAppTo_p_wxObject(void *x) {
2915 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2916}
2917static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2918 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2919}
2920static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2921 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2922}
2923static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2924 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2925}
2926static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2927 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2928}
2929static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2930 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2931}
2932static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2933 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2934}
2935static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2936 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2937}
2938static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2939 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2940}
2941static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2943}
2944static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2945 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2946}
2947static void *_p_wxValidatorTo_p_wxObject(void *x) {
2948 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2949}
093d3ff1
RD
2950static void *_p_wxControlTo_p_wxWindow(void *x) {
2951 return (void *)((wxWindow *) ((wxControl *) x));
2952}
2953static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2954 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2955}
2956static void *_p_wxMediaCtrlTo_p_wxWindow(void *x) {
2957 return (void *)((wxWindow *) (wxControl *) ((wxMediaCtrl *) x));
2958}
2959static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2960 return (void *)((wxWindow *) ((wxMenuBar *) x));
2961}
2962static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
2963 return (void *)((wxValidator *) ((wxPyValidator *) x));
2964}
2965static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2966 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2967}
2968static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2969 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2970}
2971static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2972 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2973}
53aa7709
RD
2974static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
2975 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
2976}
093d3ff1
RD
2977static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2978 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2979}
2980static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2981 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2982}
2983static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2984 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2985}
2986static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2987 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2988}
2989static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2990 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2991}
2992static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x) {
2993 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxMediaEvent *) x));
2994}
8ac8dba0
RD
2995static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2996 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2997}
2998static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2999 return (void *)((wxEvtHandler *) ((wxWindow *) x));
3000}
3001static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
3002 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
3003}
3004static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
3005 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
3006}
3007static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x) {
3008 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
3009}
3010static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
3011 return (void *)((wxEvtHandler *) ((wxValidator *) x));
3012}
3013static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
3014 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
3015}
3016static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
3017 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
3018}
3019static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
3020 return (void *)((wxEvtHandler *) ((wxMenu *) x));
3021}
8ac8dba0
RD
3022static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x) {
3023 return (void *)((wxNotifyEvent *) ((wxMediaEvent *) x));
3024}
093d3ff1
RD
3025static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
3026 return (void *)((wxControl *) ((wxControlWithItems *) x));
8ac8dba0 3027}
093d3ff1
RD
3028static void *_p_wxMediaCtrlTo_p_wxControl(void *x) {
3029 return (void *)((wxControl *) ((wxMediaCtrl *) x));
8ac8dba0 3030}
093d3ff1
RD
3031static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
3032 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
8ac8dba0 3033}
093d3ff1
RD
3034static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
3035 return (void *)((wxEvent *) ((wxMenuEvent *) x));
8ac8dba0 3036}
093d3ff1
RD
3037static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
3038 return (void *)((wxEvent *) ((wxCloseEvent *) x));
8ac8dba0 3039}
093d3ff1
RD
3040static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
3041 return (void *)((wxEvent *) ((wxMouseEvent *) x));
8ac8dba0 3042}
093d3ff1
RD
3043static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
3044 return (void *)((wxEvent *) ((wxEraseEvent *) x));
8ac8dba0 3045}
093d3ff1
RD
3046static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
3047 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
8ac8dba0 3048}
093d3ff1
RD
3049static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
3050 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
3051}
3052static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
3053 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
3054}
3055static void *_p_wxPyEventTo_p_wxEvent(void *x) {
3056 return (void *)((wxEvent *) ((wxPyEvent *) x));
3057}
3058static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
3059 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
3060}
3061static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
3062 return (void *)((wxEvent *) ((wxIdleEvent *) x));
3063}
3064static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
3065 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
3066}
3067static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
3068 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
3069}
3070static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
3071 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
3072}
3073static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
3074 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
3075}
3076static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
3077 return (void *)((wxEvent *) ((wxActivateEvent *) x));
3078}
3079static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
3080 return (void *)((wxEvent *) ((wxSizeEvent *) x));
3081}
3082static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
3083 return (void *)((wxEvent *) ((wxMoveEvent *) x));
3084}
53aa7709
RD
3085static void *_p_wxDateEventTo_p_wxEvent(void *x) {
3086 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
3087}
093d3ff1
RD
3088static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
3089 return (void *)((wxEvent *) ((wxPaintEvent *) x));
3090}
3091static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
3092 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
3093}
3094static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
3095 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
3096}
3097static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
3098 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
3099}
3100static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
3101 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
3102}
3103static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
3104 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
3105}
3106static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
3107 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
3108}
3109static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
3110 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
3111}
3112static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
3113 return (void *)((wxEvent *) ((wxFocusEvent *) x));
3114}
3115static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
3116 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
3117}
3118static void *_p_wxShowEventTo_p_wxEvent(void *x) {
3119 return (void *)((wxEvent *) ((wxShowEvent *) x));
3120}
3121static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
3122 return (void *)((wxEvent *) ((wxCommandEvent *) x));
3123}
3124static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
3125 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
3126}
3127static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
3128 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
3129}
3130static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
3131 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
3132}
3133static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
3134 return (void *)((wxEvent *) ((wxKeyEvent *) x));
3135}
3136static void *_p_wxMediaEventTo_p_wxEvent(void *x) {
3137 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
3138}
3139static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
3140 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
8ac8dba0 3141}
7449af73
RD
3142static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
3143static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
3144static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0};
3145static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
3146static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
3147static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
3148static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0};
3149static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
3150static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
3151static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
3152static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
3153static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
3154static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
3155static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
3156static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
3157static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0};
3158static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
3159static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
3160static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0};
3161static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
3162static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
3163static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
3164static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
3165static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
3166static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
3167static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
3168static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
3169static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
3170static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
3171static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
3172static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
3173static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
3174static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
3175static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
3176static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
3177static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
3178static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
3179static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
3180static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
3181static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
3182static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
3183static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
3184static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
3185static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
3186static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
3187static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
3188static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
3189static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
3190static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
3191static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
3192static swig_type_info _swigt__p_wxFileOffset = {"_p_wxFileOffset", "wxFileOffset *", 0, 0, 0};
3193static swig_type_info _swigt__p_wxMediaCtrl = {"_p_wxMediaCtrl", "wxMediaCtrl *", 0, 0, 0};
3194static swig_type_info _swigt__p_wxMediaCtrlPlayerControls = {"_p_wxMediaCtrlPlayerControls", "wxMediaCtrlPlayerControls *", 0, 0, 0};
3195static swig_type_info _swigt__p_wxMediaEvent = {"_p_wxMediaEvent", "wxMediaEvent *", 0, 0, 0};
3196static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, 0};
3197static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
3198static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
3199static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
3200static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
3201static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
3202static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
3203static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
3204static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
3205static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
3206static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
3207static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
3208static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
3209static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
3210static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
3211static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
3212static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
3213static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
3214static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
3215static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
3216static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
3217static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
3218static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
3219static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
3220static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
3221static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
3222static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
3223static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
3224static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
3225static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
3226static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
3227static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
3228static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
3229static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, 0};
3230static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
3231static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
3232static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
3233static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
3234
3235static swig_type_info *swig_type_initial[] = {
3236 &_swigt__p_char,
3237 &_swigt__p_form_ops_t,
3238 &_swigt__p_int,
3239 &_swigt__p_unsigned_char,
3240 &_swigt__p_unsigned_int,
3241 &_swigt__p_unsigned_long,
3242 &_swigt__p_wxANIHandler,
3243 &_swigt__p_wxAcceleratorTable,
3244 &_swigt__p_wxActivateEvent,
3245 &_swigt__p_wxBMPHandler,
3246 &_swigt__p_wxBoxSizer,
3247 &_swigt__p_wxCURHandler,
3248 &_swigt__p_wxChildFocusEvent,
3249 &_swigt__p_wxCloseEvent,
3250 &_swigt__p_wxCommandEvent,
3251 &_swigt__p_wxContextMenuEvent,
3252 &_swigt__p_wxControl,
3253 &_swigt__p_wxControlWithItems,
3254 &_swigt__p_wxDateEvent,
3255 &_swigt__p_wxDisplayChangedEvent,
3256 &_swigt__p_wxDropFilesEvent,
3257 &_swigt__p_wxDuplexMode,
3258 &_swigt__p_wxEraseEvent,
3259 &_swigt__p_wxEvent,
3260 &_swigt__p_wxEvtHandler,
3261 &_swigt__p_wxFSFile,
3262 &_swigt__p_wxFileOffset,
3263 &_swigt__p_wxFileSystem,
3264 &_swigt__p_wxFlexGridSizer,
3265 &_swigt__p_wxFocusEvent,
3266 &_swigt__p_wxGBSizerItem,
3267 &_swigt__p_wxGIFHandler,
3268 &_swigt__p_wxGridBagSizer,
3269 &_swigt__p_wxGridSizer,
3270 &_swigt__p_wxICOHandler,
3271 &_swigt__p_wxIconizeEvent,
3272 &_swigt__p_wxIdleEvent,
3273 &_swigt__p_wxImage,
3274 &_swigt__p_wxImageHandler,
3275 &_swigt__p_wxIndividualLayoutConstraint,
3276 &_swigt__p_wxInitDialogEvent,
3277 &_swigt__p_wxJPEGHandler,
3278 &_swigt__p_wxKeyEvent,
3279 &_swigt__p_wxLayoutConstraints,
3280 &_swigt__p_wxMaximizeEvent,
3281 &_swigt__p_wxMediaCtrl,
3282 &_swigt__p_wxMediaCtrlPlayerControls,
3283 &_swigt__p_wxMediaEvent,
3284 &_swigt__p_wxMenu,
3285 &_swigt__p_wxMenuBar,
3286 &_swigt__p_wxMenuEvent,
3287 &_swigt__p_wxMenuItem,
3288 &_swigt__p_wxMouseCaptureChangedEvent,
3289 &_swigt__p_wxMouseEvent,
3290 &_swigt__p_wxMoveEvent,
3291 &_swigt__p_wxNavigationKeyEvent,
3292 &_swigt__p_wxNcPaintEvent,
3293 &_swigt__p_wxNotifyEvent,
3294 &_swigt__p_wxObject,
3295 &_swigt__p_wxPCXHandler,
3296 &_swigt__p_wxPNGHandler,
3297 &_swigt__p_wxPNMHandler,
3298 &_swigt__p_wxPaintEvent,
3299 &_swigt__p_wxPaletteChangedEvent,
3300 &_swigt__p_wxPaperSize,
3301 &_swigt__p_wxPyApp,
3302 &_swigt__p_wxPyCommandEvent,
3303 &_swigt__p_wxPyEvent,
3304 &_swigt__p_wxPyImageHandler,
3305 &_swigt__p_wxPySizer,
3306 &_swigt__p_wxPyValidator,
3307 &_swigt__p_wxQueryNewPaletteEvent,
3308 &_swigt__p_wxScrollEvent,
3309 &_swigt__p_wxScrollWinEvent,
3310 &_swigt__p_wxSetCursorEvent,
3311 &_swigt__p_wxShowEvent,
3312 &_swigt__p_wxSizeEvent,
3313 &_swigt__p_wxSizer,
3314 &_swigt__p_wxSizerItem,
3315 &_swigt__p_wxStaticBoxSizer,
3316 &_swigt__p_wxStdDialogButtonSizer,
3317 &_swigt__p_wxSysColourChangedEvent,
3318 &_swigt__p_wxTIFFHandler,
3319 &_swigt__p_wxUpdateUIEvent,
3320 &_swigt__p_wxValidator,
3321 &_swigt__p_wxWindow,
3322 &_swigt__p_wxWindowCreateEvent,
3323 &_swigt__p_wxWindowDestroyEvent,
3324 &_swigt__p_wxXPMHandler,
3325 &_swigt__ptrdiff_t,
3326 &_swigt__std__ptrdiff_t,
3327 &_swigt__unsigned_int,
3328};
3329
3330static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
3331static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
3332static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
3333static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
3334static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
3335static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
3336static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
3337static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
3338static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
3339static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
3340static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
3341static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
3342static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
3343static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
3344static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
3345static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
3346static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxMediaCtrl, _p_wxMediaCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
3347static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
3348static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
3349static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
3350static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
3351static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
3352static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
3353static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
3354static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
3355static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
3356static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
3357static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
3358static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
3359static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
3360static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
3361static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
3362static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
3363static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
3364static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3365static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3366static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3367static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
3368static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
3369static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
3370static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
3371static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
3372static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
3373static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
3374static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
3375static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
3376static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
3377static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
3378static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
3379static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxMediaCtrl, _p_wxMediaCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
3380static swig_cast_info _swigc__p_wxFileOffset[] = { {&_swigt__p_wxFileOffset, 0, 0, 0},{0, 0, 0, 0}};
3381static swig_cast_info _swigc__p_wxMediaCtrl[] = { {&_swigt__p_wxMediaCtrl, 0, 0, 0},{0, 0, 0, 0}};
3382static swig_cast_info _swigc__p_wxMediaCtrlPlayerControls[] = { {&_swigt__p_wxMediaCtrlPlayerControls, 0, 0, 0},{0, 0, 0, 0}};
3383static swig_cast_info _swigc__p_wxMediaEvent[] = { {&_swigt__p_wxMediaEvent, 0, 0, 0},{0, 0, 0, 0}};
3384static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxNotifyEvent, 0, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_p_wxNotifyEvent, 0, 0},{0, 0, 0, 0}};
3385static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
3386static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
3387static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
3388static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
3389static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
3390static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
3391static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
3392static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
3393static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
3394static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
3395static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
3396static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
3397static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
3398static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
3399static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
3400static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
3401static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
3402static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
3403static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
3404static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
3405static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
3406static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
3407static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
3408static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
3409static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
3410static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
3411static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
3412static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
3413static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
3414static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
3415static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMediaCtrl, _p_wxMediaCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMediaEvent, _p_wxMediaEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
3416static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
3417static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}};
3418static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMediaCtrl, _p_wxMediaCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
3419static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
3420static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
3421static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
3422
3423static swig_cast_info *swig_cast_initial[] = {
3424 _swigc__p_char,
3425 _swigc__p_form_ops_t,
3426 _swigc__p_int,
3427 _swigc__p_unsigned_char,
3428 _swigc__p_unsigned_int,
3429 _swigc__p_unsigned_long,
3430 _swigc__p_wxANIHandler,
3431 _swigc__p_wxAcceleratorTable,
3432 _swigc__p_wxActivateEvent,
3433 _swigc__p_wxBMPHandler,
3434 _swigc__p_wxBoxSizer,
3435 _swigc__p_wxCURHandler,
3436 _swigc__p_wxChildFocusEvent,
3437 _swigc__p_wxCloseEvent,
3438 _swigc__p_wxCommandEvent,
3439 _swigc__p_wxContextMenuEvent,
3440 _swigc__p_wxControl,
3441 _swigc__p_wxControlWithItems,
3442 _swigc__p_wxDateEvent,
3443 _swigc__p_wxDisplayChangedEvent,
3444 _swigc__p_wxDropFilesEvent,
3445 _swigc__p_wxDuplexMode,
3446 _swigc__p_wxEraseEvent,
3447 _swigc__p_wxEvent,
3448 _swigc__p_wxEvtHandler,
3449 _swigc__p_wxFSFile,
3450 _swigc__p_wxFileOffset,
3451 _swigc__p_wxFileSystem,
3452 _swigc__p_wxFlexGridSizer,
3453 _swigc__p_wxFocusEvent,
3454 _swigc__p_wxGBSizerItem,
3455 _swigc__p_wxGIFHandler,
3456 _swigc__p_wxGridBagSizer,
3457 _swigc__p_wxGridSizer,
3458 _swigc__p_wxICOHandler,
3459 _swigc__p_wxIconizeEvent,
3460 _swigc__p_wxIdleEvent,
3461 _swigc__p_wxImage,
3462 _swigc__p_wxImageHandler,
3463 _swigc__p_wxIndividualLayoutConstraint,
3464 _swigc__p_wxInitDialogEvent,
3465 _swigc__p_wxJPEGHandler,
3466 _swigc__p_wxKeyEvent,
3467 _swigc__p_wxLayoutConstraints,
3468 _swigc__p_wxMaximizeEvent,
3469 _swigc__p_wxMediaCtrl,
3470 _swigc__p_wxMediaCtrlPlayerControls,
3471 _swigc__p_wxMediaEvent,
3472 _swigc__p_wxMenu,
3473 _swigc__p_wxMenuBar,
3474 _swigc__p_wxMenuEvent,
3475 _swigc__p_wxMenuItem,
3476 _swigc__p_wxMouseCaptureChangedEvent,
3477 _swigc__p_wxMouseEvent,
3478 _swigc__p_wxMoveEvent,
3479 _swigc__p_wxNavigationKeyEvent,
3480 _swigc__p_wxNcPaintEvent,
3481 _swigc__p_wxNotifyEvent,
3482 _swigc__p_wxObject,
3483 _swigc__p_wxPCXHandler,
3484 _swigc__p_wxPNGHandler,
3485 _swigc__p_wxPNMHandler,
3486 _swigc__p_wxPaintEvent,
3487 _swigc__p_wxPaletteChangedEvent,
3488 _swigc__p_wxPaperSize,
3489 _swigc__p_wxPyApp,
3490 _swigc__p_wxPyCommandEvent,
3491 _swigc__p_wxPyEvent,
3492 _swigc__p_wxPyImageHandler,
3493 _swigc__p_wxPySizer,
3494 _swigc__p_wxPyValidator,
3495 _swigc__p_wxQueryNewPaletteEvent,
3496 _swigc__p_wxScrollEvent,
3497 _swigc__p_wxScrollWinEvent,
3498 _swigc__p_wxSetCursorEvent,
3499 _swigc__p_wxShowEvent,
3500 _swigc__p_wxSizeEvent,
3501 _swigc__p_wxSizer,
3502 _swigc__p_wxSizerItem,
3503 _swigc__p_wxStaticBoxSizer,
3504 _swigc__p_wxStdDialogButtonSizer,
3505 _swigc__p_wxSysColourChangedEvent,
3506 _swigc__p_wxTIFFHandler,
3507 _swigc__p_wxUpdateUIEvent,
3508 _swigc__p_wxValidator,
3509 _swigc__p_wxWindow,
3510 _swigc__p_wxWindowCreateEvent,
3511 _swigc__p_wxWindowDestroyEvent,
3512 _swigc__p_wxXPMHandler,
3513 _swigc__ptrdiff_t,
3514 _swigc__std__ptrdiff_t,
3515 _swigc__unsigned_int,
8ac8dba0
RD
3516};
3517
3518
3519/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3520
3521static swig_const_info swig_const_table[] = {
3522{0, 0, 0, 0.0, 0, 0}};
3523
3524#ifdef __cplusplus
3525}
3526#endif
7449af73
RD
3527/*************************************************************************
3528 * Type initialization:
3529 * This problem is tough by the requirement that no dynamic
3530 * memory is used. Also, since swig_type_info structures store pointers to
3531 * swig_cast_info structures and swig_cast_info structures store pointers back
3532 * to swig_type_info structures, we need some lookup code at initialization.
3533 * The idea is that swig generates all the structures that are needed.
3534 * The runtime then collects these partially filled structures.
3535 * The SWIG_InitializeModule function takes these initial arrays out of
3536 * swig_module, and does all the lookup, filling in the swig_module.types
3537 * array with the correct data and linking the correct swig_cast_info
3538 * structures together.
3539
3540 * The generated swig_type_info structures are assigned staticly to an initial
3541 * array. We just loop though that array, and handle each type individually.
3542 * First we lookup if this type has been already loaded, and if so, use the
3543 * loaded structure instead of the generated one. Then we have to fill in the
3544 * cast linked list. The cast data is initially stored in something like a
3545 * two-dimensional array. Each row corresponds to a type (there are the same
3546 * number of rows as there are in the swig_type_initial array). Each entry in
3547 * a column is one of the swig_cast_info structures for that type.
3548 * The cast_initial array is actually an array of arrays, because each row has
3549 * a variable number of columns. So to actually build the cast linked list,
3550 * we find the array of casts associated with the type, and loop through it
3551 * adding the casts to the list. The one last trick we need to do is making
3552 * sure the type pointer in the swig_cast_info struct is correct.
3553
3554 * First off, we lookup the cast->type name to see if it is already loaded.
3555 * There are three cases to handle:
3556 * 1) If the cast->type has already been loaded AND the type we are adding
3557 * casting info to has not been loaded (it is in this module), THEN we
3558 * replace the cast->type pointer with the type pointer that has already
3559 * been loaded.
3560 * 2) If BOTH types (the one we are adding casting info to, and the
3561 * cast->type) are loaded, THEN the cast info has already been loaded by
3562 * the previous module so we just ignore it.
3563 * 3) Finally, if cast->type has not already been loaded, then we add that
3564 * swig_cast_info to the linked list (because the cast->type) pointer will
3565 * be correct.
3566**/
3567
3568#ifdef __cplusplus
3569extern "C" {
3570#if 0
3571} /* c-mode */
3572#endif
3573#endif
3574
3575#if 0
3576#define SWIGRUNTIME_DEBUG
3577#endif
3578
3579SWIGRUNTIME void
3580SWIG_InitializeModule(void *clientdata) {
3581 size_t i;
3582 swig_module_info *module_head;
3583 static int init_run = 0;
3584
3585 clientdata = clientdata;
3586
3587 if (init_run) return;
3588 init_run = 1;
3589
3590 /* Initialize the swig_module */
3591 swig_module.type_initial = swig_type_initial;
3592 swig_module.cast_initial = swig_cast_initial;
3593
3594 /* Try and load any already created modules */
3595 module_head = SWIG_GetModule(clientdata);
3596 if (module_head) {
3597 swig_module.next = module_head->next;
3598 module_head->next = &swig_module;
3599 } else {
3600 /* This is the first module loaded */
3601 swig_module.next = &swig_module;
3602 SWIG_SetModule(clientdata, &swig_module);
3603 }
3604
3605 /* Now work on filling in swig_module.types */
3606#ifdef SWIGRUNTIME_DEBUG
3607 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
3608#endif
3609 for (i = 0; i < swig_module.size; ++i) {
3610 swig_type_info *type = 0;
3611 swig_type_info *ret;
3612 swig_cast_info *cast;
3613
3614#ifdef SWIGRUNTIME_DEBUG
3615 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3616#endif
3617
3618 /* if there is another module already loaded */
3619 if (swig_module.next != &swig_module) {
3620 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
3621 }
3622 if (type) {
3623 /* Overwrite clientdata field */
3624#ifdef SWIGRUNTIME_DEBUG
3625 printf("SWIG_InitializeModule: found type %s\n", type->name);
3626#endif
3627 if (swig_module.type_initial[i]->clientdata) {
3628 type->clientdata = swig_module.type_initial[i]->clientdata;
3629#ifdef SWIGRUNTIME_DEBUG
3630 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
3631#endif
3632 }
3633 } else {
3634 type = swig_module.type_initial[i];
3635 }
3636
3637 /* Insert casting types */
3638 cast = swig_module.cast_initial[i];
3639 while (cast->type) {
3640 /* Don't need to add information already in the list */
3641 ret = 0;
3642#ifdef SWIGRUNTIME_DEBUG
3643 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
3644#endif
3645 if (swig_module.next != &swig_module) {
3646 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
3647#ifdef SWIGRUNTIME_DEBUG
3648 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
3649#endif
3650 }
3651 if (ret) {
3652 if (type == swig_module.type_initial[i]) {
3653#ifdef SWIGRUNTIME_DEBUG
3654 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
3655#endif
3656 cast->type = ret;
3657 ret = 0;
3658 } else {
3659 /* Check for casting already in the list */
3660 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
3661#ifdef SWIGRUNTIME_DEBUG
3662 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
3663#endif
3664 if (!ocast) ret = 0;
3665 }
3666 }
3667
3668 if (!ret) {
3669#ifdef SWIGRUNTIME_DEBUG
3670 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
3671#endif
3672 if (type->cast) {
3673 type->cast->prev = cast;
3674 cast->next = type->cast;
3675 }
3676 type->cast = cast;
3677 }
3678 cast++;
3679 }
3680 /* Set entry in modules->types array equal to the type */
3681 swig_module.types[i] = type;
3682 }
3683 swig_module.types[i] = 0;
3684
3685#ifdef SWIGRUNTIME_DEBUG
3686 printf("**** SWIG_InitializeModule: Cast List ******\n");
3687 for (i = 0; i < swig_module.size; ++i) {
3688 int j = 0;
3689 swig_cast_info *cast = swig_module.cast_initial[i];
3690 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3691 while (cast->type) {
3692 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
3693 cast++;
3694 ++j;
3695 }
3696 printf("---- Total casts: %d\n",j);
3697 }
3698 printf("**** SWIG_InitializeModule: Cast List ******\n");
3699#endif
3700}
3701
3702/* This function will propagate the clientdata field of type to
3703* any new swig_type_info structures that have been added into the list
3704* of equivalent types. It is like calling
3705* SWIG_TypeClientData(type, clientdata) a second time.
3706*/
3707SWIGRUNTIME void
3708SWIG_PropagateClientData(void) {
3709 size_t i;
3710 swig_cast_info *equiv;
3711 static int init_run = 0;
3712
3713 if (init_run) return;
3714 init_run = 1;
3715
3716 for (i = 0; i < swig_module.size; i++) {
3717 if (swig_module.types[i]->clientdata) {
3718 equiv = swig_module.types[i]->cast;
3719 while (equiv) {
3720 if (!equiv->converter) {
3721 if (equiv->type && !equiv->type->clientdata)
3722 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
3723 }
3724 equiv = equiv->next;
3725 }
3726 }
3727 }
3728}
3729
3730#ifdef __cplusplus
3731#if 0
3732{
3733 /* c-mode */
3734#endif
3735}
3736#endif
3737
8ac8dba0 3738
093d3ff1
RD
3739
3740#ifdef __cplusplus
3741extern "C" {
3742#endif
3743
3744 /* Python-specific SWIG API */
3745#define SWIG_newvarlink() SWIG_Python_newvarlink()
3746#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
3747#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
3748
3749 /* -----------------------------------------------------------------------------
3750 * global variable support code.
3751 * ----------------------------------------------------------------------------- */
3752
3753 typedef struct swig_globalvar {
3754 char *name; /* Name of global variable */
7449af73 3755 PyObject *(*get_attr)(void); /* Return the current value */
093d3ff1
RD
3756 int (*set_attr)(PyObject *); /* Set the value */
3757 struct swig_globalvar *next;
3758 } swig_globalvar;
3759
3760 typedef struct swig_varlinkobject {
3761 PyObject_HEAD
3762 swig_globalvar *vars;
3763 } swig_varlinkobject;
3764
7449af73 3765 SWIGINTERN PyObject *
093d3ff1
RD
3766 swig_varlink_repr(swig_varlinkobject *v) {
3767 v = v;
3768 return PyString_FromString("<Swig global variables>");
3769 }
3770
7449af73 3771 SWIGINTERN int
093d3ff1
RD
3772 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
3773 swig_globalvar *var;
3774 flags = flags;
3775 fprintf(fp,"Swig global variables { ");
3776 for (var = v->vars; var; var=var->next) {
3777 fprintf(fp,"%s", var->name);
3778 if (var->next) fprintf(fp,", ");
3779 }
3780 fprintf(fp," }\n");
3781 return 0;
3782 }
3783
7449af73 3784 SWIGINTERN PyObject *
093d3ff1
RD
3785 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
3786 swig_globalvar *var = v->vars;
3787 while (var) {
3788 if (strcmp(var->name,n) == 0) {
3789 return (*var->get_attr)();
3790 }
3791 var = var->next;
3792 }
3793 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3794 return NULL;
3795 }
3796
7449af73 3797 SWIGINTERN int
093d3ff1
RD
3798 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
3799 swig_globalvar *var = v->vars;
3800 while (var) {
3801 if (strcmp(var->name,n) == 0) {
3802 return (*var->set_attr)(p);
3803 }
3804 var = var->next;
3805 }
3806 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3807 return 1;
3808 }
3809
7449af73
RD
3810 SWIGINTERN PyTypeObject*
3811 swig_varlink_type(void) {
3812 static char varlink__doc__[] = "Swig var link object";
3813 static PyTypeObject varlink_type
3814#if !defined(__cplusplus)
3815 ;
3816 static int type_init = 0;
3817 if (!type_init) {
3818 PyTypeObject tmp
3819#endif
3820 = {
3821 PyObject_HEAD_INIT(&PyType_Type)
3822 0, /* Number of items in variable part (ob_size) */
3823 (char *)"swigvarlink", /* Type name (tp_name) */
3824 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
3825 0, /* Itemsize (tp_itemsize) */
3826 0, /* Deallocator (tp_dealloc) */
3827 (printfunc) swig_varlink_print, /* Print (tp_print) */
3828 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
3829 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
3830 0, /* tp_compare */
3831 (reprfunc) swig_varlink_repr, /* tp_repr */
3832 0, /* tp_as_number */
3833 0, /* tp_as_sequence */
3834 0, /* tp_as_mapping */
3835 0, /* tp_hash */
3836 0, /* tp_call */
3837 0, /* tp_str */
3838 0, /* tp_getattro */
3839 0, /* tp_setattro */
3840 0, /* tp_as_buffer */
3841 0, /* tp_flags */
3842 varlink__doc__, /* tp_doc */
093d3ff1 3843#if PY_VERSION_HEX >= 0x02000000
7449af73
RD
3844 0, /* tp_traverse */
3845 0, /* tp_clear */
093d3ff1
RD
3846#endif
3847#if PY_VERSION_HEX >= 0x02010000
7449af73
RD
3848 0, /* tp_richcompare */
3849 0, /* tp_weaklistoffset */
093d3ff1
RD
3850#endif
3851#if PY_VERSION_HEX >= 0x02020000
7449af73 3852 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
093d3ff1
RD
3853#endif
3854#if PY_VERSION_HEX >= 0x02030000
7449af73 3855 0, /* tp_del */
093d3ff1
RD
3856#endif
3857#ifdef COUNT_ALLOCS
7449af73 3858 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 3859#endif
7449af73
RD
3860 };
3861#if !defined(__cplusplus)
3862 varlink_type = tmp;
3863 type_init = 1;
3864 }
3865#endif
3866 return &varlink_type;
3867 }
093d3ff1
RD
3868
3869 /* Create a variable linking object for use later */
7449af73 3870 SWIGINTERN PyObject *
093d3ff1 3871 SWIG_Python_newvarlink(void) {
7449af73
RD
3872 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
3873 if (result) {
3874 result->vars = 0;
3875 }
093d3ff1
RD
3876 return ((PyObject*) result);
3877 }
3878
7449af73 3879 SWIGINTERN void
093d3ff1 3880 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
7449af73
RD
3881 swig_varlinkobject *v = (swig_varlinkobject *) p;
3882 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
3883 if (gv) {
3884 size_t size = strlen(name)+1;
3885 gv->name = (char *)malloc(size);
3886 if (gv->name) {
3887 strncpy(gv->name,name,size);
3888 gv->get_attr = get_attr;
3889 gv->set_attr = set_attr;
3890 gv->next = v->vars;
3891 }
3892 }
093d3ff1
RD
3893 v->vars = gv;
3894 }
3895
3896 /* -----------------------------------------------------------------------------
3897 * constants/methods manipulation
3898 * ----------------------------------------------------------------------------- */
3899
3900 /* Install Constants */
7449af73 3901 SWIGINTERN void
093d3ff1
RD
3902 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
3903 PyObject *obj = 0;
3904 size_t i;
7449af73 3905 for (i = 0; constants[i].type; ++i) {
093d3ff1
RD
3906 switch(constants[i].type) {
3907 case SWIG_PY_INT:
3908 obj = PyInt_FromLong(constants[i].lvalue);
3909 break;
3910 case SWIG_PY_FLOAT:
3911 obj = PyFloat_FromDouble(constants[i].dvalue);
3912 break;
3913 case SWIG_PY_STRING:
3914 if (constants[i].pvalue) {
3915 obj = PyString_FromString((char *) constants[i].pvalue);
3916 } else {
3917 Py_INCREF(Py_None);
3918 obj = Py_None;
3919 }
3920 break;
3921 case SWIG_PY_POINTER:
3922 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
3923 break;
3924 case SWIG_PY_BINARY:
3925 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
3926 break;
3927 default:
3928 obj = 0;
3929 break;
3930 }
3931 if (obj) {
3932 PyDict_SetItemString(d,constants[i].name,obj);
3933 Py_DECREF(obj);
3934 }
3935 }
3936 }
3937
3938 /* -----------------------------------------------------------------------------*/
3939 /* Fix SwigMethods to carry the callback ptrs when needed */
3940 /* -----------------------------------------------------------------------------*/
3941
7449af73 3942 SWIGINTERN void
093d3ff1
RD
3943 SWIG_Python_FixMethods(PyMethodDef *methods,
3944 swig_const_info *const_table,
3945 swig_type_info **types,
3946 swig_type_info **types_initial) {
3947 size_t i;
3948 for (i = 0; methods[i].ml_name; ++i) {
3949 char *c = methods[i].ml_doc;
3950 if (c && (c = strstr(c, "swig_ptr: "))) {
3951 int j;
3952 swig_const_info *ci = 0;
3953 char *name = c + 10;
7449af73 3954 for (j = 0; const_table[j].type; ++j) {
093d3ff1
RD
3955 if (strncmp(const_table[j].name, name,
3956 strlen(const_table[j].name)) == 0) {
3957 ci = &(const_table[j]);
3958 break;
3959 }
3960 }
3961 if (ci) {
3962 size_t shift = (ci->ptype) - types;
3963 swig_type_info *ty = types_initial[shift];
3964 size_t ldoc = (c - methods[i].ml_doc);
3965 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
3966 char *ndoc = (char*)malloc(ldoc + lptr + 10);
7449af73
RD
3967 if (ndoc) {
3968 char *buff = ndoc;
3969 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
3970 if (ptr) {
3971 strncpy(buff, methods[i].ml_doc, ldoc);
3972 buff += ldoc;
3973 strncpy(buff, "swig_ptr: ", 10);
3974 buff += 10;
3975 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
3976 methods[i].ml_doc = ndoc;
3977 }
3978 }
093d3ff1
RD
3979 }
3980 }
3981 }
3982 }
3983
3984 /* -----------------------------------------------------------------------------*
3985 * Initialize type list
3986 * -----------------------------------------------------------------------------*/
3987
093d3ff1
RD
3988#ifdef __cplusplus
3989}
3990#endif
3991
3992/* -----------------------------------------------------------------------------*
3993 * Partial Init method
3994 * -----------------------------------------------------------------------------*/
3995
8ac8dba0
RD
3996#ifdef __cplusplus
3997extern "C"
3998#endif
7449af73 3999SWIGEXPORT void SWIG_init(void) {
8ac8dba0 4000 static PyObject *SWIG_globals = 0;
8ac8dba0 4001 PyObject *m, *d;
8ac8dba0 4002 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
093d3ff1
RD
4003
4004 /* Fix SwigMethods to carry the callback ptrs when needed */
7449af73 4005 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
093d3ff1 4006
8ac8dba0
RD
4007 m = Py_InitModule((char *) SWIG_name, SwigMethods);
4008 d = PyModule_GetDict(m);
4009
7449af73 4010 SWIG_InitializeModule(0);
8ac8dba0
RD
4011 SWIG_InstallConstants(d,swig_const_table);
4012
093d3ff1 4013 {
7449af73 4014 PyDict_SetItemString(d,"MEDIASTATE_STOPPED", SWIG_From_int(static_cast<int >(wxMEDIASTATE_STOPPED)));
093d3ff1
RD
4015 }
4016 {
7449af73 4017 PyDict_SetItemString(d,"MEDIASTATE_PAUSED", SWIG_From_int(static_cast<int >(wxMEDIASTATE_PAUSED)));
093d3ff1
RD
4018 }
4019 {
7449af73 4020 PyDict_SetItemString(d,"MEDIASTATE_PLAYING", SWIG_From_int(static_cast<int >(wxMEDIASTATE_PLAYING)));
093d3ff1 4021 }
8ac8dba0 4022 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
8ac8dba0
RD
4023 SWIG_addvarlink(SWIG_globals,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get, _wrap_MediaCtrlNameStr_set);
4024 PyDict_SetItemString(d, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED));
4025 PyDict_SetItemString(d, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP));
7449af73 4026 PyDict_SetItemString(d, "wxEVT_MEDIA_LOADED", PyInt_FromLong(wxEVT_MEDIA_LOADED));
8ac8dba0
RD
4027
4028
4029}
4030