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