]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/media_wrap.cpp
Typo
[wxWidgets.git] / wxPython / src / msw / media_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
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; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxLongLong swig_types[0]
212 #define SWIGTYPE_p_wxControl swig_types[1]
213 #define SWIGTYPE_p_wxWindow swig_types[2]
214 #define SWIGTYPE_p_wxEvent swig_types[3]
215 #define SWIGTYPE_p_wxObject swig_types[4]
216 #define SWIGTYPE_p_wxEvtHandler swig_types[5]
217 #define SWIGTYPE_p_char swig_types[6]
218 #define SWIGTYPE_p_wxMediaCtrl swig_types[7]
219 #define SWIGTYPE_p_wxValidator swig_types[8]
220 #define SWIGTYPE_p_wxNotifyEvent swig_types[9]
221 #define SWIGTYPE_p_wxCommandEvent swig_types[10]
222 #define SWIGTYPE_p_wxMediaEvent swig_types[11]
223 static swig_type_info *swig_types[13];
224
225 /* -------- TYPES TABLE (END) -------- */
226
227
228 /*-----------------------------------------------
229 @(target):= _media.so
230 ------------------------------------------------*/
231 #define SWIG_init init_media
232
233 #define SWIG_name "_media"
234
235 /* Auxiliar swig macros that appear in the header */
236
237 #define SWIG_OLDOBJ 1
238 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
239 #define SWIG_PYSTR SWIG_NEWOBJ + 1
240
241 #ifdef __cplusplus
242 #define SWIGSTATICINLINE(a) static inline a
243 #define SWIGSTATIC(a) static a
244 #define swig_new_array(size,Type) (new Type[(size)])
245 #define swig_delete(cptr) delete cptr
246 #define swig_delete_array(cptr) delete[] cptr
247 #define swig_const_cast(a,Type) const_cast<Type >(a)
248 #define swig_static_cast(a,Type) static_cast<Type >(a)
249 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
250 #define swig_new_copy(ptr,Type) (new Type(*ptr))
251 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
252
253 #else /* C case */
254
255 #define SWIGSTATICINLINE(a) static a
256 #define SWIGSTATIC(a) static a
257 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
258 #define swig_delete(cptr) free((char*)cptr)
259 #define swig_delete_array(cptr) free((char*)cptr)
260 #define swig_const_cast(a,Type) (Type)(a)
261 #define swig_static_cast(a,Type) (Type)(a)
262 #define swig_reinterpret_cast(a,Type) (Type)(a)
263 #define swig_numeric_cast(a,Type) (Type)(a)
264 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
265
266 #endif /* __cplusplus */
267
268
269 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
270 #define SWIG_From_signed_SS_char PyInt_FromLong
271 /*@@*/
272 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
273 #define SWIG_From_unsigned_SS_char PyInt_FromLong
274 /*@@*/
275 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
276 #define SWIG_From_short PyInt_FromLong
277 /*@@*/
278 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
279 #define SWIG_From_unsigned_SS_short PyInt_FromLong
280 /*@@*/
281 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
282 #define SWIG_From_int PyInt_FromLong
283 /*@@*/
284 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
285 #define SWIG_From_long PyInt_FromLong
286 /*@@*/
287 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
288 #define SWIG_From_float PyFloat_FromDouble
289 /*@@*/
290 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
291 #define SWIG_From_double PyFloat_FromDouble
292 /*@@*/
293
294
295 #include "wx/wxPython/wxPython.h"
296 #include "wx/wxPython/pyclasses.h"
297
298 #include <wx/mediactrl.h>
299 #include <wx/uri.h>
300
301
302 #if !wxUSE_MEDIACTRL
303 enum wxMediaState
304 {
305 wxMEDIASTATE_STOPPED=0,
306 wxMEDIASTATE_PAUSED=0,
307 wxMEDIASTATE_PLAYING=0
308 };
309
310 enum wxMediaTimeFormat
311 {
312 wxMEDIATIMEFORMAT_TIME=0
313 };
314
315 class wxMediaEvent : public wxNotifyEvent
316 {
317 public:
318 wxMediaEvent(wxEventType, int ) { wxPyRaiseNotImplemented(); }
319 };
320
321 class wxMediaCtrl : public wxControl
322 {
323 public:
324 wxMediaCtrl() { wxPyRaiseNotImplemented(); }
325
326 wxMediaCtrl(wxWindow* , wxWindowID ,
327 const wxString& ,
328 const wxPoint& ,
329 const wxSize& ,
330 long style ,
331 const wxString& ,
332 const wxValidator& ,
333 const wxString& ) { wxPyRaiseNotImplemented(); }
334
335 wxMediaCtrl(wxWindow* ,
336 wxWindowID ,
337 const wxURI& ,
338 const wxPoint&,
339 const wxSize& ,
340 long style,
341 const wxString& ,
342 const wxValidator& ,
343 const wxString& ) { wxPyRaiseNotImplemented(); }
344
345 bool Create(wxWindow* , wxWindowID ,
346 const wxString& ,
347 const wxPoint& ,
348 const wxSize& ,
349 long style ,
350 const wxString& ,
351 const wxValidator& ,
352 const wxString& ) { return false; }
353
354 bool Create(wxWindow* ,
355 wxWindowID ,
356 const wxURI& ,
357 const wxPoint&,
358 const wxSize& ,
359 long style,
360 const wxString& ,
361 const wxValidator& ,
362 const wxString& ) { return false; }
363
364 bool Play() { return false; }
365 bool Pause() { return false; }
366 bool Stop() { return false; }
367
368 bool Load(const wxString& fileName) { return false; }
369 bool Load(const wxURI& location) { return false; }
370
371 void Loop(bool bLoop = true) {}
372 bool IsLooped() { return false; }
373
374 wxMediaState GetState() { return wxMEDIASTATE_STOPPED; }
375
376 double GetPlaybackRate() { return 0.0; };
377 bool SetPlaybackRate(double dRate) { return false; }
378
379 bool SetPosition(wxLongLong where) { return false; }
380 wxLongLong GetPosition() { return 0; }
381 wxLongLong GetDuration() { return 0; }
382 };
383
384 const wxEventType wxEVT_MEDIA_FINISHED = 0;
385 const wxEventType wxEVT_MEDIA_STOP = 0;
386
387 #endif
388
389
390 #include <limits.h>
391
392
393 SWIGSTATICINLINE(int)
394 SWIG_CheckLongInRange(long value, long min_value, long max_value,
395 const char *errmsg)
396 {
397 if (value < min_value) {
398 if (errmsg) {
399 PyErr_Format(PyExc_OverflowError,
400 "value %ld is less than '%s' minimum %ld",
401 value, errmsg, min_value);
402 }
403 return 0;
404 } else if (value > max_value) {
405 if (errmsg) {
406 PyErr_Format(PyExc_OverflowError,
407 "value %ld is greater than '%s' maximum %ld",
408 value, errmsg, max_value);
409 }
410 return 0;
411 }
412 return 1;
413 }
414
415
416 // See my_fragments.i
417 SWIGSTATICINLINE(int)
418 SWIG_AsVal_long(PyObject* obj, long* val)
419 {
420 if (PyNumber_Check(obj)) {
421 if (val) *val = PyInt_AsLong(obj);
422 return 1;
423 }
424 else {
425 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
426 obj->ob_type->tp_name);
427 PyErr_SetObject(PyExc_TypeError, errmsg);
428 Py_DECREF(errmsg);
429 }
430 return 0;
431 }
432
433
434 #if INT_MAX != LONG_MAX
435 SWIGSTATICINLINE(int)
436 SWIG_AsVal_int(PyObject *obj, int *val)
437 {
438 const char* errmsg = val ? "int" : 0;
439 long v;
440 if (SWIG_AsVal_long(obj, &v)) {
441 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
442 if (val) *val = swig_numeric_cast(v, int);
443 return 1;
444 } else {
445 return 0;
446 }
447 } else {
448 PyErr_Clear();
449 }
450 if (val) {
451 PyErr_SetString(PyExc_TypeError, "an int is expected");
452 }
453 return 0;
454 }
455 #else
456 SWIGSTATICINLINE(int)
457 SWIG_AsVal_int(PyObject *obj, int *val)
458 {
459 return SWIG_AsVal_long(obj,(long*)val);
460 }
461 #endif
462
463
464 SWIGSTATICINLINE(int)
465 SWIG_As_int(PyObject* obj)
466 {
467 int v;
468 if (!SWIG_AsVal_int(obj, &v)) {
469 /*
470 this is needed to make valgrind/purify happier. the other
471 solution is throw an exception, but since this code should work
472 with plain C ....
473 */
474 memset((void*)&v, 0, sizeof(int));
475 }
476 return v;
477 }
478
479
480 SWIGSTATICINLINE(int)
481 SWIG_Check_int(PyObject* obj)
482 {
483 return SWIG_AsVal_int(obj, (int*)0);
484 }
485
486 static const wxString wxPyEmptyString(wxEmptyString);
487 static const wxString wxPyMediaCtrlNameStr(wxT("mediaCtrl"));
488
489 SWIGSTATICINLINE(long)
490 SWIG_As_long(PyObject* obj)
491 {
492 long v;
493 if (!SWIG_AsVal_long(obj, &v)) {
494 /*
495 this is needed to make valgrind/purify happier. the other
496 solution is throw an exception, but since this code should work
497 with plain C ....
498 */
499 memset((void*)&v, 0, sizeof(long));
500 }
501 return v;
502 }
503
504
505 SWIGSTATICINLINE(int)
506 SWIG_Check_long(PyObject* obj)
507 {
508 return SWIG_AsVal_long(obj, (long*)0);
509 }
510
511 wxMediaCtrl *new_wxMediaCtrl(wxWindow *parent,int id,wxString const &location,wxPoint const &pos,wxSize const &size,long style,wxString const &szBackend,wxValidator const &validator,wxString const &name){
512 return new wxMediaCtrl(parent, id, wxURI(location),
513 pos, size, style, szBackend, validator, name);
514 }
515 bool wxMediaCtrl_CreateFromURI(wxMediaCtrl *self,wxWindow *parent,int id,wxString const &location,wxPoint const &pos,wxSize const &size,long style,wxString const &szBackend,wxValidator const &validator,wxString const &name){
516 return self->Create(parent, id, wxURI(location),
517 pos, size, style, szBackend, validator, name);
518 }
519 bool wxMediaCtrl_LoadFromURI(wxMediaCtrl *self,wxString const &location){
520 return self->Load(wxURI(location));
521 }
522
523 SWIGSTATICINLINE(int)
524 SWIG_AsVal_bool(PyObject *obj, bool *val)
525 {
526 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
527 if (obj == Py_True) {
528 if (val) *val = true;
529 return 1;
530 }
531 if (obj == Py_False) {
532 if (val) *val = false;
533 return 1;
534 }
535 int res = 0;
536 if (SWIG_AsVal_int(obj, &res)) {
537 if (val) *val = (bool)res;
538 return 1;
539 }
540 if (val) {
541 PyErr_SetString(PyExc_TypeError, "a bool is expected");
542 }
543 return 0;
544 }
545
546
547 SWIGSTATICINLINE(bool)
548 SWIG_As_bool(PyObject* obj)
549 {
550 bool v;
551 if (!SWIG_AsVal_bool(obj, &v)) {
552 /*
553 this is needed to make valgrind/purify happier. the other
554 solution is throw an exception, but since this code should work
555 with plain C ....
556 */
557 memset((void*)&v, 0, sizeof(bool));
558 }
559 return v;
560 }
561
562
563 SWIGSTATICINLINE(int)
564 SWIG_Check_bool(PyObject* obj)
565 {
566 return SWIG_AsVal_bool(obj, (bool*)0);
567 }
568
569
570 // See my_fragments.i
571 SWIGSTATICINLINE(int)
572 SWIG_AsVal_double(PyObject *obj, double* val)
573 {
574 if (PyNumber_Check(obj)) {
575 if (val) *val = PyFloat_AsDouble(obj);
576 return 1;
577 }
578 else {
579 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
580 obj->ob_type->tp_name);
581 PyErr_SetObject(PyExc_TypeError, errmsg);
582 Py_DECREF(errmsg);
583 }
584 return 0;
585 }
586
587
588 SWIGSTATICINLINE(double)
589 SWIG_As_double(PyObject* obj)
590 {
591 double v;
592 if (!SWIG_AsVal_double(obj, &v)) {
593 /*
594 this is needed to make valgrind/purify happier. the other
595 solution is throw an exception, but since this code should work
596 with plain C ....
597 */
598 memset((void*)&v, 0, sizeof(double));
599 }
600 return v;
601 }
602
603
604 SWIGSTATICINLINE(int)
605 SWIG_Check_double(PyObject* obj)
606 {
607 return SWIG_AsVal_double(obj, (double*)0);
608 }
609
610 #ifdef __cplusplus
611 extern "C" {
612 #endif
613 static PyObject *_wrap_new_MediaEvent(PyObject *, PyObject *args, PyObject *kwargs) {
614 PyObject *resultobj;
615 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
616 int arg2 = (int) 0 ;
617 wxMediaEvent *result;
618 PyObject * obj0 = 0 ;
619 PyObject * obj1 = 0 ;
620 char *kwnames[] = {
621 (char *) "commandType",(char *) "id", NULL
622 };
623
624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MediaEvent",kwnames,&obj0,&obj1)) goto fail;
625 if (obj0) {
626 arg1 = (wxEventType)SWIG_As_int(obj0);
627 if (PyErr_Occurred()) SWIG_fail;
628 }
629 if (obj1) {
630 arg2 = (int)SWIG_As_int(obj1);
631 if (PyErr_Occurred()) SWIG_fail;
632 }
633 {
634 PyThreadState* __tstate = wxPyBeginAllowThreads();
635 result = (wxMediaEvent *)new wxMediaEvent(arg1,arg2);
636
637 wxPyEndAllowThreads(__tstate);
638 if (PyErr_Occurred()) SWIG_fail;
639 }
640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaEvent, 1);
641 return resultobj;
642 fail:
643 return NULL;
644 }
645
646
647 static PyObject * MediaEvent_swigregister(PyObject *, PyObject *args) {
648 PyObject *obj;
649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
650 SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent, obj);
651 Py_INCREF(obj);
652 return Py_BuildValue((char *)"");
653 }
654 static int _wrap_MediaCtrlNameStr_set(PyObject *) {
655 PyErr_SetString(PyExc_TypeError,"Variable MediaCtrlNameStr is read-only.");
656 return 1;
657 }
658
659
660 static PyObject *_wrap_MediaCtrlNameStr_get() {
661 PyObject *pyobj;
662
663 {
664 #if wxUSE_UNICODE
665 pyobj = PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
666 #else
667 pyobj = PyString_FromStringAndSize((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
668 #endif
669 }
670 return pyobj;
671 }
672
673
674 static PyObject *_wrap_new_MediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
675 PyObject *resultobj;
676 wxWindow *arg1 = (wxWindow *) 0 ;
677 int arg2 = (int) -1 ;
678 wxString const &arg3_defvalue = wxPyEmptyString ;
679 wxString *arg3 = (wxString *) &arg3_defvalue ;
680 wxPoint const &arg4_defvalue = wxDefaultPosition ;
681 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
682 wxSize const &arg5_defvalue = wxDefaultSize ;
683 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
684 long arg6 = (long) 0 ;
685 wxString const &arg7_defvalue = wxPyEmptyString ;
686 wxString *arg7 = (wxString *) &arg7_defvalue ;
687 wxValidator const &arg8_defvalue = wxDefaultValidator ;
688 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
689 wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ;
690 wxString *arg9 = (wxString *) &arg9_defvalue ;
691 wxMediaCtrl *result;
692 bool temp3 = false ;
693 wxPoint temp4 ;
694 wxSize temp5 ;
695 bool temp7 = false ;
696 bool temp9 = false ;
697 PyObject * obj0 = 0 ;
698 PyObject * obj1 = 0 ;
699 PyObject * obj2 = 0 ;
700 PyObject * obj3 = 0 ;
701 PyObject * obj4 = 0 ;
702 PyObject * obj5 = 0 ;
703 PyObject * obj6 = 0 ;
704 PyObject * obj7 = 0 ;
705 PyObject * obj8 = 0 ;
706 char *kwnames[] = {
707 (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
708 };
709
710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
713 if (obj1) {
714 arg2 = (int)SWIG_As_int(obj1);
715 if (PyErr_Occurred()) SWIG_fail;
716 }
717 if (obj2) {
718 {
719 arg3 = wxString_in_helper(obj2);
720 if (arg3 == NULL) SWIG_fail;
721 temp3 = true;
722 }
723 }
724 if (obj3) {
725 {
726 arg4 = &temp4;
727 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
728 }
729 }
730 if (obj4) {
731 {
732 arg5 = &temp5;
733 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
734 }
735 }
736 if (obj5) {
737 arg6 = (long)SWIG_As_long(obj5);
738 if (PyErr_Occurred()) SWIG_fail;
739 }
740 if (obj6) {
741 {
742 arg7 = wxString_in_helper(obj6);
743 if (arg7 == NULL) SWIG_fail;
744 temp7 = true;
745 }
746 }
747 if (obj7) {
748 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
749 SWIG_POINTER_EXCEPTION | 0)) == -1)
750 SWIG_fail;
751 if (arg8 == NULL) {
752 PyErr_SetString(PyExc_TypeError,"null reference");
753 SWIG_fail;
754 }
755 }
756 if (obj8) {
757 {
758 arg9 = wxString_in_helper(obj8);
759 if (arg9 == NULL) SWIG_fail;
760 temp9 = true;
761 }
762 }
763 {
764 if (!wxPyCheckForApp()) SWIG_fail;
765 PyThreadState* __tstate = wxPyBeginAllowThreads();
766 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);
767
768 wxPyEndAllowThreads(__tstate);
769 if (PyErr_Occurred()) SWIG_fail;
770 }
771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
772 {
773 if (temp3)
774 delete arg3;
775 }
776 {
777 if (temp7)
778 delete arg7;
779 }
780 {
781 if (temp9)
782 delete arg9;
783 }
784 return resultobj;
785 fail:
786 {
787 if (temp3)
788 delete arg3;
789 }
790 {
791 if (temp7)
792 delete arg7;
793 }
794 {
795 if (temp9)
796 delete arg9;
797 }
798 return NULL;
799 }
800
801
802 static PyObject *_wrap_new_PreMediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
803 PyObject *resultobj;
804 wxMediaCtrl *result;
805 char *kwnames[] = {
806 NULL
807 };
808
809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMediaCtrl",kwnames)) goto fail;
810 {
811 if (!wxPyCheckForApp()) SWIG_fail;
812 PyThreadState* __tstate = wxPyBeginAllowThreads();
813 result = (wxMediaCtrl *)new wxMediaCtrl();
814
815 wxPyEndAllowThreads(__tstate);
816 if (PyErr_Occurred()) SWIG_fail;
817 }
818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
819 return resultobj;
820 fail:
821 return NULL;
822 }
823
824
825 static PyObject *_wrap_new_MediaCtrlFromURI(PyObject *, PyObject *args, PyObject *kwargs) {
826 PyObject *resultobj;
827 wxWindow *arg1 = (wxWindow *) 0 ;
828 int arg2 = (int) -1 ;
829 wxString const &arg3_defvalue = wxPyEmptyString ;
830 wxString *arg3 = (wxString *) &arg3_defvalue ;
831 wxPoint const &arg4_defvalue = wxDefaultPosition ;
832 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
833 wxSize const &arg5_defvalue = wxDefaultSize ;
834 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
835 long arg6 = (long) 0 ;
836 wxString const &arg7_defvalue = wxPyEmptyString ;
837 wxString *arg7 = (wxString *) &arg7_defvalue ;
838 wxValidator const &arg8_defvalue = wxDefaultValidator ;
839 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
840 wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ;
841 wxString *arg9 = (wxString *) &arg9_defvalue ;
842 wxMediaCtrl *result;
843 bool temp3 = false ;
844 wxPoint temp4 ;
845 wxSize temp5 ;
846 bool temp7 = false ;
847 bool temp9 = false ;
848 PyObject * obj0 = 0 ;
849 PyObject * obj1 = 0 ;
850 PyObject * obj2 = 0 ;
851 PyObject * obj3 = 0 ;
852 PyObject * obj4 = 0 ;
853 PyObject * obj5 = 0 ;
854 PyObject * obj6 = 0 ;
855 PyObject * obj7 = 0 ;
856 PyObject * obj8 = 0 ;
857 char *kwnames[] = {
858 (char *) "parent",(char *) "id",(char *) "location",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
859 };
860
861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrlFromURI",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
864 if (obj1) {
865 arg2 = (int)SWIG_As_int(obj1);
866 if (PyErr_Occurred()) SWIG_fail;
867 }
868 if (obj2) {
869 {
870 arg3 = wxString_in_helper(obj2);
871 if (arg3 == NULL) SWIG_fail;
872 temp3 = true;
873 }
874 }
875 if (obj3) {
876 {
877 arg4 = &temp4;
878 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
879 }
880 }
881 if (obj4) {
882 {
883 arg5 = &temp5;
884 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
885 }
886 }
887 if (obj5) {
888 arg6 = (long)SWIG_As_long(obj5);
889 if (PyErr_Occurred()) SWIG_fail;
890 }
891 if (obj6) {
892 {
893 arg7 = wxString_in_helper(obj6);
894 if (arg7 == NULL) SWIG_fail;
895 temp7 = true;
896 }
897 }
898 if (obj7) {
899 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
900 SWIG_POINTER_EXCEPTION | 0)) == -1)
901 SWIG_fail;
902 if (arg8 == NULL) {
903 PyErr_SetString(PyExc_TypeError,"null reference");
904 SWIG_fail;
905 }
906 }
907 if (obj8) {
908 {
909 arg9 = wxString_in_helper(obj8);
910 if (arg9 == NULL) SWIG_fail;
911 temp9 = true;
912 }
913 }
914 {
915 if (!wxPyCheckForApp()) SWIG_fail;
916 PyThreadState* __tstate = wxPyBeginAllowThreads();
917 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);
918
919 wxPyEndAllowThreads(__tstate);
920 if (PyErr_Occurred()) SWIG_fail;
921 }
922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
923 {
924 if (temp3)
925 delete arg3;
926 }
927 {
928 if (temp7)
929 delete arg7;
930 }
931 {
932 if (temp9)
933 delete arg9;
934 }
935 return resultobj;
936 fail:
937 {
938 if (temp3)
939 delete arg3;
940 }
941 {
942 if (temp7)
943 delete arg7;
944 }
945 {
946 if (temp9)
947 delete arg9;
948 }
949 return NULL;
950 }
951
952
953 static PyObject *_wrap_MediaCtrl_CreateFromURI(PyObject *, PyObject *args, PyObject *kwargs) {
954 PyObject *resultobj;
955 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
956 wxWindow *arg2 = (wxWindow *) 0 ;
957 int arg3 = (int) -1 ;
958 wxString const &arg4_defvalue = wxPyEmptyString ;
959 wxString *arg4 = (wxString *) &arg4_defvalue ;
960 wxPoint const &arg5_defvalue = wxDefaultPosition ;
961 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
962 wxSize const &arg6_defvalue = wxDefaultSize ;
963 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
964 long arg7 = (long) 0 ;
965 wxString const &arg8_defvalue = wxPyEmptyString ;
966 wxString *arg8 = (wxString *) &arg8_defvalue ;
967 wxValidator const &arg9_defvalue = wxDefaultValidator ;
968 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
969 wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ;
970 wxString *arg10 = (wxString *) &arg10_defvalue ;
971 bool result;
972 bool temp4 = false ;
973 wxPoint temp5 ;
974 wxSize temp6 ;
975 bool temp8 = false ;
976 bool temp10 = false ;
977 PyObject * obj0 = 0 ;
978 PyObject * obj1 = 0 ;
979 PyObject * obj2 = 0 ;
980 PyObject * obj3 = 0 ;
981 PyObject * obj4 = 0 ;
982 PyObject * obj5 = 0 ;
983 PyObject * obj6 = 0 ;
984 PyObject * obj7 = 0 ;
985 PyObject * obj8 = 0 ;
986 PyObject * obj9 = 0 ;
987 char *kwnames[] = {
988 (char *) "self",(char *) "parent",(char *) "id",(char *) "location",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
989 };
990
991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_CreateFromURI",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
996 if (obj2) {
997 arg3 = (int)SWIG_As_int(obj2);
998 if (PyErr_Occurred()) SWIG_fail;
999 }
1000 if (obj3) {
1001 {
1002 arg4 = wxString_in_helper(obj3);
1003 if (arg4 == NULL) SWIG_fail;
1004 temp4 = true;
1005 }
1006 }
1007 if (obj4) {
1008 {
1009 arg5 = &temp5;
1010 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1011 }
1012 }
1013 if (obj5) {
1014 {
1015 arg6 = &temp6;
1016 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1017 }
1018 }
1019 if (obj6) {
1020 arg7 = (long)SWIG_As_long(obj6);
1021 if (PyErr_Occurred()) SWIG_fail;
1022 }
1023 if (obj7) {
1024 {
1025 arg8 = wxString_in_helper(obj7);
1026 if (arg8 == NULL) SWIG_fail;
1027 temp8 = true;
1028 }
1029 }
1030 if (obj8) {
1031 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
1032 SWIG_POINTER_EXCEPTION | 0)) == -1)
1033 SWIG_fail;
1034 if (arg9 == NULL) {
1035 PyErr_SetString(PyExc_TypeError,"null reference");
1036 SWIG_fail;
1037 }
1038 }
1039 if (obj9) {
1040 {
1041 arg10 = wxString_in_helper(obj9);
1042 if (arg10 == NULL) SWIG_fail;
1043 temp10 = true;
1044 }
1045 }
1046 {
1047 PyThreadState* __tstate = wxPyBeginAllowThreads();
1048 result = (bool)wxMediaCtrl_CreateFromURI(arg1,arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
1049
1050 wxPyEndAllowThreads(__tstate);
1051 if (PyErr_Occurred()) SWIG_fail;
1052 }
1053 {
1054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1055 }
1056 {
1057 if (temp4)
1058 delete arg4;
1059 }
1060 {
1061 if (temp8)
1062 delete arg8;
1063 }
1064 {
1065 if (temp10)
1066 delete arg10;
1067 }
1068 return resultobj;
1069 fail:
1070 {
1071 if (temp4)
1072 delete arg4;
1073 }
1074 {
1075 if (temp8)
1076 delete arg8;
1077 }
1078 {
1079 if (temp10)
1080 delete arg10;
1081 }
1082 return NULL;
1083 }
1084
1085
1086 static PyObject *_wrap_MediaCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1087 PyObject *resultobj;
1088 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1089 wxWindow *arg2 = (wxWindow *) 0 ;
1090 int arg3 = (int) -1 ;
1091 wxString const &arg4_defvalue = wxPyEmptyString ;
1092 wxString *arg4 = (wxString *) &arg4_defvalue ;
1093 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1094 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1095 wxSize const &arg6_defvalue = wxDefaultSize ;
1096 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1097 long arg7 = (long) 0 ;
1098 wxString const &arg8_defvalue = wxPyEmptyString ;
1099 wxString *arg8 = (wxString *) &arg8_defvalue ;
1100 wxValidator const &arg9_defvalue = wxDefaultValidator ;
1101 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
1102 wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ;
1103 wxString *arg10 = (wxString *) &arg10_defvalue ;
1104 bool result;
1105 bool temp4 = false ;
1106 wxPoint temp5 ;
1107 wxSize temp6 ;
1108 bool temp8 = false ;
1109 bool temp10 = false ;
1110 PyObject * obj0 = 0 ;
1111 PyObject * obj1 = 0 ;
1112 PyObject * obj2 = 0 ;
1113 PyObject * obj3 = 0 ;
1114 PyObject * obj4 = 0 ;
1115 PyObject * obj5 = 0 ;
1116 PyObject * obj6 = 0 ;
1117 PyObject * obj7 = 0 ;
1118 PyObject * obj8 = 0 ;
1119 PyObject * obj9 = 0 ;
1120 char *kwnames[] = {
1121 (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
1122 };
1123
1124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
1125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1127 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1129 if (obj2) {
1130 arg3 = (int)SWIG_As_int(obj2);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
1133 if (obj3) {
1134 {
1135 arg4 = wxString_in_helper(obj3);
1136 if (arg4 == NULL) SWIG_fail;
1137 temp4 = true;
1138 }
1139 }
1140 if (obj4) {
1141 {
1142 arg5 = &temp5;
1143 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1144 }
1145 }
1146 if (obj5) {
1147 {
1148 arg6 = &temp6;
1149 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1150 }
1151 }
1152 if (obj6) {
1153 arg7 = (long)SWIG_As_long(obj6);
1154 if (PyErr_Occurred()) SWIG_fail;
1155 }
1156 if (obj7) {
1157 {
1158 arg8 = wxString_in_helper(obj7);
1159 if (arg8 == NULL) SWIG_fail;
1160 temp8 = true;
1161 }
1162 }
1163 if (obj8) {
1164 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
1165 SWIG_POINTER_EXCEPTION | 0)) == -1)
1166 SWIG_fail;
1167 if (arg9 == NULL) {
1168 PyErr_SetString(PyExc_TypeError,"null reference");
1169 SWIG_fail;
1170 }
1171 }
1172 if (obj9) {
1173 {
1174 arg10 = wxString_in_helper(obj9);
1175 if (arg10 == NULL) SWIG_fail;
1176 temp10 = true;
1177 }
1178 }
1179 {
1180 PyThreadState* __tstate = wxPyBeginAllowThreads();
1181 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);
1182
1183 wxPyEndAllowThreads(__tstate);
1184 if (PyErr_Occurred()) SWIG_fail;
1185 }
1186 {
1187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1188 }
1189 {
1190 if (temp4)
1191 delete arg4;
1192 }
1193 {
1194 if (temp8)
1195 delete arg8;
1196 }
1197 {
1198 if (temp10)
1199 delete arg10;
1200 }
1201 return resultobj;
1202 fail:
1203 {
1204 if (temp4)
1205 delete arg4;
1206 }
1207 {
1208 if (temp8)
1209 delete arg8;
1210 }
1211 {
1212 if (temp10)
1213 delete arg10;
1214 }
1215 return NULL;
1216 }
1217
1218
1219 static PyObject *_wrap_MediaCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) {
1220 PyObject *resultobj;
1221 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1222 bool result;
1223 PyObject * obj0 = 0 ;
1224 char *kwnames[] = {
1225 (char *) "self", NULL
1226 };
1227
1228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Play",kwnames,&obj0)) goto fail;
1229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1231 {
1232 PyThreadState* __tstate = wxPyBeginAllowThreads();
1233 result = (bool)(arg1)->Play();
1234
1235 wxPyEndAllowThreads(__tstate);
1236 if (PyErr_Occurred()) SWIG_fail;
1237 }
1238 {
1239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1240 }
1241 return resultobj;
1242 fail:
1243 return NULL;
1244 }
1245
1246
1247 static PyObject *_wrap_MediaCtrl_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
1248 PyObject *resultobj;
1249 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1250 bool result;
1251 PyObject * obj0 = 0 ;
1252 char *kwnames[] = {
1253 (char *) "self", NULL
1254 };
1255
1256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Pause",kwnames,&obj0)) goto fail;
1257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1259 {
1260 PyThreadState* __tstate = wxPyBeginAllowThreads();
1261 result = (bool)(arg1)->Pause();
1262
1263 wxPyEndAllowThreads(__tstate);
1264 if (PyErr_Occurred()) SWIG_fail;
1265 }
1266 {
1267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1268 }
1269 return resultobj;
1270 fail:
1271 return NULL;
1272 }
1273
1274
1275 static PyObject *_wrap_MediaCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
1276 PyObject *resultobj;
1277 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1278 bool result;
1279 PyObject * obj0 = 0 ;
1280 char *kwnames[] = {
1281 (char *) "self", NULL
1282 };
1283
1284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Stop",kwnames,&obj0)) goto fail;
1285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1287 {
1288 PyThreadState* __tstate = wxPyBeginAllowThreads();
1289 result = (bool)(arg1)->Stop();
1290
1291 wxPyEndAllowThreads(__tstate);
1292 if (PyErr_Occurred()) SWIG_fail;
1293 }
1294 {
1295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1296 }
1297 return resultobj;
1298 fail:
1299 return NULL;
1300 }
1301
1302
1303 static PyObject *_wrap_MediaCtrl_Load(PyObject *, PyObject *args, PyObject *kwargs) {
1304 PyObject *resultobj;
1305 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1306 wxString *arg2 = 0 ;
1307 bool result;
1308 bool temp2 = false ;
1309 PyObject * obj0 = 0 ;
1310 PyObject * obj1 = 0 ;
1311 char *kwnames[] = {
1312 (char *) "self",(char *) "fileName", NULL
1313 };
1314
1315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_Load",kwnames,&obj0,&obj1)) goto fail;
1316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1318 {
1319 arg2 = wxString_in_helper(obj1);
1320 if (arg2 == NULL) SWIG_fail;
1321 temp2 = true;
1322 }
1323 {
1324 PyThreadState* __tstate = wxPyBeginAllowThreads();
1325 result = (bool)(arg1)->Load((wxString const &)*arg2);
1326
1327 wxPyEndAllowThreads(__tstate);
1328 if (PyErr_Occurred()) SWIG_fail;
1329 }
1330 {
1331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1332 }
1333 {
1334 if (temp2)
1335 delete arg2;
1336 }
1337 return resultobj;
1338 fail:
1339 {
1340 if (temp2)
1341 delete arg2;
1342 }
1343 return NULL;
1344 }
1345
1346
1347 static PyObject *_wrap_MediaCtrl_LoadFromURI(PyObject *, PyObject *args, PyObject *kwargs) {
1348 PyObject *resultobj;
1349 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1350 wxString *arg2 = 0 ;
1351 bool result;
1352 bool temp2 = false ;
1353 PyObject * obj0 = 0 ;
1354 PyObject * obj1 = 0 ;
1355 char *kwnames[] = {
1356 (char *) "self",(char *) "location", NULL
1357 };
1358
1359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_LoadFromURI",kwnames,&obj0,&obj1)) goto fail;
1360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1362 {
1363 arg2 = wxString_in_helper(obj1);
1364 if (arg2 == NULL) SWIG_fail;
1365 temp2 = true;
1366 }
1367 {
1368 PyThreadState* __tstate = wxPyBeginAllowThreads();
1369 result = (bool)wxMediaCtrl_LoadFromURI(arg1,(wxString const &)*arg2);
1370
1371 wxPyEndAllowThreads(__tstate);
1372 if (PyErr_Occurred()) SWIG_fail;
1373 }
1374 {
1375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1376 }
1377 {
1378 if (temp2)
1379 delete arg2;
1380 }
1381 return resultobj;
1382 fail:
1383 {
1384 if (temp2)
1385 delete arg2;
1386 }
1387 return NULL;
1388 }
1389
1390
1391 static PyObject *_wrap_MediaCtrl_Loop(PyObject *, PyObject *args, PyObject *kwargs) {
1392 PyObject *resultobj;
1393 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1394 bool arg2 = (bool) true ;
1395 PyObject * obj0 = 0 ;
1396 PyObject * obj1 = 0 ;
1397 char *kwnames[] = {
1398 (char *) "self",(char *) "bLoop", NULL
1399 };
1400
1401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MediaCtrl_Loop",kwnames,&obj0,&obj1)) goto fail;
1402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1404 if (obj1) {
1405 arg2 = (bool)SWIG_As_bool(obj1);
1406 if (PyErr_Occurred()) SWIG_fail;
1407 }
1408 {
1409 PyThreadState* __tstate = wxPyBeginAllowThreads();
1410 (arg1)->Loop(arg2);
1411
1412 wxPyEndAllowThreads(__tstate);
1413 if (PyErr_Occurred()) SWIG_fail;
1414 }
1415 Py_INCREF(Py_None); resultobj = Py_None;
1416 return resultobj;
1417 fail:
1418 return NULL;
1419 }
1420
1421
1422 static PyObject *_wrap_MediaCtrl_IsLooped(PyObject *, PyObject *args, PyObject *kwargs) {
1423 PyObject *resultobj;
1424 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1425 bool result;
1426 PyObject * obj0 = 0 ;
1427 char *kwnames[] = {
1428 (char *) "self", NULL
1429 };
1430
1431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_IsLooped",kwnames,&obj0)) goto fail;
1432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1434 {
1435 PyThreadState* __tstate = wxPyBeginAllowThreads();
1436 result = (bool)(arg1)->IsLooped();
1437
1438 wxPyEndAllowThreads(__tstate);
1439 if (PyErr_Occurred()) SWIG_fail;
1440 }
1441 {
1442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1443 }
1444 return resultobj;
1445 fail:
1446 return NULL;
1447 }
1448
1449
1450 static PyObject *_wrap_MediaCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
1451 PyObject *resultobj;
1452 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1453 int result;
1454 PyObject * obj0 = 0 ;
1455 char *kwnames[] = {
1456 (char *) "self", NULL
1457 };
1458
1459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetState",kwnames,&obj0)) goto fail;
1460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1462 {
1463 PyThreadState* __tstate = wxPyBeginAllowThreads();
1464 result = (int)(arg1)->GetState();
1465
1466 wxPyEndAllowThreads(__tstate);
1467 if (PyErr_Occurred()) SWIG_fail;
1468 }
1469 resultobj = SWIG_From_int((int)result);
1470 return resultobj;
1471 fail:
1472 return NULL;
1473 }
1474
1475
1476 static PyObject *_wrap_MediaCtrl_GetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
1477 PyObject *resultobj;
1478 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1479 double result;
1480 PyObject * obj0 = 0 ;
1481 char *kwnames[] = {
1482 (char *) "self", NULL
1483 };
1484
1485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames,&obj0)) goto fail;
1486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1488 {
1489 PyThreadState* __tstate = wxPyBeginAllowThreads();
1490 result = (double)(arg1)->GetPlaybackRate();
1491
1492 wxPyEndAllowThreads(__tstate);
1493 if (PyErr_Occurred()) SWIG_fail;
1494 }
1495 resultobj = SWIG_From_double((double)result);
1496 return resultobj;
1497 fail:
1498 return NULL;
1499 }
1500
1501
1502 static PyObject *_wrap_MediaCtrl_SetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
1503 PyObject *resultobj;
1504 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1505 double arg2 ;
1506 bool result;
1507 PyObject * obj0 = 0 ;
1508 PyObject * obj1 = 0 ;
1509 char *kwnames[] = {
1510 (char *) "self",(char *) "dRate", NULL
1511 };
1512
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames,&obj0,&obj1)) goto fail;
1514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1516 arg2 = (double)SWIG_As_double(obj1);
1517 if (PyErr_Occurred()) SWIG_fail;
1518 {
1519 PyThreadState* __tstate = wxPyBeginAllowThreads();
1520 result = (bool)(arg1)->SetPlaybackRate(arg2);
1521
1522 wxPyEndAllowThreads(__tstate);
1523 if (PyErr_Occurred()) SWIG_fail;
1524 }
1525 {
1526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1527 }
1528 return resultobj;
1529 fail:
1530 return NULL;
1531 }
1532
1533
1534 static PyObject *_wrap_MediaCtrl_SetMediaPosition(PyObject *, PyObject *args, PyObject *kwargs) {
1535 PyObject *resultobj;
1536 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1537 wxLongLong arg2 ;
1538 bool result;
1539 PyObject * obj0 = 0 ;
1540 PyObject * obj1 = 0 ;
1541 char *kwnames[] = {
1542 (char *) "self",(char *) "where", NULL
1543 };
1544
1545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetMediaPosition",kwnames,&obj0,&obj1)) goto fail;
1546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1548 {
1549 arg2 = PyLong_AsLongLong(obj1);
1550 }
1551 {
1552 PyThreadState* __tstate = wxPyBeginAllowThreads();
1553 result = (bool)(arg1)->SetPosition(arg2);
1554
1555 wxPyEndAllowThreads(__tstate);
1556 if (PyErr_Occurred()) SWIG_fail;
1557 }
1558 {
1559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1560 }
1561 return resultobj;
1562 fail:
1563 return NULL;
1564 }
1565
1566
1567 static PyObject *_wrap_MediaCtrl_GetMediaPosition(PyObject *, PyObject *args, PyObject *kwargs) {
1568 PyObject *resultobj;
1569 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1570 wxLongLong result;
1571 PyObject * obj0 = 0 ;
1572 char *kwnames[] = {
1573 (char *) "self", NULL
1574 };
1575
1576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetMediaPosition",kwnames,&obj0)) goto fail;
1577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1579 {
1580 PyThreadState* __tstate = wxPyBeginAllowThreads();
1581 result = (arg1)->GetPosition();
1582
1583 wxPyEndAllowThreads(__tstate);
1584 if (PyErr_Occurred()) SWIG_fail;
1585 }
1586 {
1587 resultobj = PyLong_FromLongLong((&result)->GetValue());
1588 }
1589 return resultobj;
1590 fail:
1591 return NULL;
1592 }
1593
1594
1595 static PyObject *_wrap_MediaCtrl_GetMediaDuration(PyObject *, PyObject *args, PyObject *kwargs) {
1596 PyObject *resultobj;
1597 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1598 wxLongLong result;
1599 PyObject * obj0 = 0 ;
1600 char *kwnames[] = {
1601 (char *) "self", NULL
1602 };
1603
1604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetMediaDuration",kwnames,&obj0)) goto fail;
1605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1607 {
1608 PyThreadState* __tstate = wxPyBeginAllowThreads();
1609 result = (arg1)->GetDuration();
1610
1611 wxPyEndAllowThreads(__tstate);
1612 if (PyErr_Occurred()) SWIG_fail;
1613 }
1614 {
1615 resultobj = PyLong_FromLongLong((&result)->GetValue());
1616 }
1617 return resultobj;
1618 fail:
1619 return NULL;
1620 }
1621
1622
1623 static PyObject * MediaCtrl_swigregister(PyObject *, PyObject *args) {
1624 PyObject *obj;
1625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1626 SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl, obj);
1627 Py_INCREF(obj);
1628 return Py_BuildValue((char *)"");
1629 }
1630 static PyMethodDef SwigMethods[] = {
1631 { (char *)"new_MediaEvent", (PyCFunction) _wrap_new_MediaEvent, METH_VARARGS | METH_KEYWORDS, NULL },
1632 { (char *)"MediaEvent_swigregister", MediaEvent_swigregister, METH_VARARGS, NULL },
1633 { (char *)"new_MediaCtrl", (PyCFunction) _wrap_new_MediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1634 { (char *)"new_PreMediaCtrl", (PyCFunction) _wrap_new_PreMediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1635 { (char *)"new_MediaCtrlFromURI", (PyCFunction) _wrap_new_MediaCtrlFromURI, METH_VARARGS | METH_KEYWORDS, NULL },
1636 { (char *)"MediaCtrl_CreateFromURI", (PyCFunction) _wrap_MediaCtrl_CreateFromURI, METH_VARARGS | METH_KEYWORDS, NULL },
1637 { (char *)"MediaCtrl_Create", (PyCFunction) _wrap_MediaCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
1638 { (char *)"MediaCtrl_Play", (PyCFunction) _wrap_MediaCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL },
1639 { (char *)"MediaCtrl_Pause", (PyCFunction) _wrap_MediaCtrl_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
1640 { (char *)"MediaCtrl_Stop", (PyCFunction) _wrap_MediaCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
1641 { (char *)"MediaCtrl_Load", (PyCFunction) _wrap_MediaCtrl_Load, METH_VARARGS | METH_KEYWORDS, NULL },
1642 { (char *)"MediaCtrl_LoadFromURI", (PyCFunction) _wrap_MediaCtrl_LoadFromURI, METH_VARARGS | METH_KEYWORDS, NULL },
1643 { (char *)"MediaCtrl_Loop", (PyCFunction) _wrap_MediaCtrl_Loop, METH_VARARGS | METH_KEYWORDS, NULL },
1644 { (char *)"MediaCtrl_IsLooped", (PyCFunction) _wrap_MediaCtrl_IsLooped, METH_VARARGS | METH_KEYWORDS, NULL },
1645 { (char *)"MediaCtrl_GetState", (PyCFunction) _wrap_MediaCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
1646 { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_GetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL },
1647 { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_SetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL },
1648 { (char *)"MediaCtrl_SetMediaPosition", (PyCFunction) _wrap_MediaCtrl_SetMediaPosition, METH_VARARGS | METH_KEYWORDS, NULL },
1649 { (char *)"MediaCtrl_GetMediaPosition", (PyCFunction) _wrap_MediaCtrl_GetMediaPosition, METH_VARARGS | METH_KEYWORDS, NULL },
1650 { (char *)"MediaCtrl_GetMediaDuration", (PyCFunction) _wrap_MediaCtrl_GetMediaDuration, METH_VARARGS | METH_KEYWORDS, NULL },
1651 { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister, METH_VARARGS, NULL },
1652 { NULL, NULL, 0, NULL }
1653 };
1654
1655
1656 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1657
1658 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
1659 return (void *)((wxControl *) ((wxControlWithItems *) x));
1660 }
1661 static void *_p_wxMediaCtrlTo_p_wxControl(void *x) {
1662 return (void *)((wxControl *) ((wxMediaCtrl *) x));
1663 }
1664 static void *_p_wxControlTo_p_wxWindow(void *x) {
1665 return (void *)((wxWindow *) ((wxControl *) x));
1666 }
1667 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1668 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1669 }
1670 static void *_p_wxMediaCtrlTo_p_wxWindow(void *x) {
1671 return (void *)((wxWindow *) (wxControl *) ((wxMediaCtrl *) x));
1672 }
1673 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1674 return (void *)((wxWindow *) ((wxMenuBar *) x));
1675 }
1676 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
1677 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
1678 }
1679 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
1680 return (void *)((wxEvent *) ((wxMenuEvent *) x));
1681 }
1682 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
1683 return (void *)((wxEvent *) ((wxCloseEvent *) x));
1684 }
1685 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
1686 return (void *)((wxEvent *) ((wxMouseEvent *) x));
1687 }
1688 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
1689 return (void *)((wxEvent *) ((wxEraseEvent *) x));
1690 }
1691 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
1692 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
1693 }
1694 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
1695 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
1696 }
1697 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
1698 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
1699 }
1700 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
1701 return (void *)((wxEvent *) ((wxPyEvent *) x));
1702 }
1703 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
1704 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
1705 }
1706 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
1707 return (void *)((wxEvent *) ((wxIdleEvent *) x));
1708 }
1709 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
1710 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
1711 }
1712 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
1713 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
1714 }
1715 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
1716 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
1717 }
1718 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
1719 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
1720 }
1721 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
1722 return (void *)((wxEvent *) ((wxActivateEvent *) x));
1723 }
1724 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
1725 return (void *)((wxEvent *) ((wxSizeEvent *) x));
1726 }
1727 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
1728 return (void *)((wxEvent *) ((wxMoveEvent *) x));
1729 }
1730 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
1731 return (void *)((wxEvent *) ((wxPaintEvent *) x));
1732 }
1733 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
1734 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
1735 }
1736 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
1737 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
1738 }
1739 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
1740 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
1741 }
1742 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
1743 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
1744 }
1745 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
1746 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1747 }
1748 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
1749 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
1750 }
1751 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
1752 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
1753 }
1754 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
1755 return (void *)((wxEvent *) ((wxFocusEvent *) x));
1756 }
1757 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
1758 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
1759 }
1760 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
1761 return (void *)((wxEvent *) ((wxShowEvent *) x));
1762 }
1763 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
1764 return (void *)((wxEvent *) ((wxCommandEvent *) x));
1765 }
1766 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
1767 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
1768 }
1769 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
1770 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1771 }
1772 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
1773 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
1774 }
1775 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
1776 return (void *)((wxEvent *) ((wxKeyEvent *) x));
1777 }
1778 static void *_p_wxMediaEventTo_p_wxEvent(void *x) {
1779 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
1780 }
1781 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
1782 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
1783 }
1784 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1785 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1786 }
1787 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1788 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1789 }
1790 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1791 return (void *)((wxObject *) ((wxSizerItem *) x));
1792 }
1793 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1794 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1795 }
1796 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1797 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1798 }
1799 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1800 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1801 }
1802 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1803 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1804 }
1805 static void *_p_wxSizerTo_p_wxObject(void *x) {
1806 return (void *)((wxObject *) ((wxSizer *) x));
1807 }
1808 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1809 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1810 }
1811 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1812 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1813 }
1814 static void *_p_wxEventTo_p_wxObject(void *x) {
1815 return (void *)((wxObject *) ((wxEvent *) x));
1816 }
1817 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1818 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1819 }
1820 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1821 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1822 }
1823 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1824 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1825 }
1826 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1827 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1828 }
1829 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1830 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1831 }
1832 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1833 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1834 }
1835 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1836 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1837 }
1838 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1839 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1840 }
1841 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1842 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1843 }
1844 static void *_p_wxMediaCtrlTo_p_wxObject(void *x) {
1845 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
1846 }
1847 static void *_p_wxControlTo_p_wxObject(void *x) {
1848 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1849 }
1850 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1851 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1852 }
1853 static void *_p_wxMediaEventTo_p_wxObject(void *x) {
1854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
1855 }
1856 static void *_p_wxFSFileTo_p_wxObject(void *x) {
1857 return (void *)((wxObject *) ((wxFSFile *) x));
1858 }
1859 static void *_p_wxPySizerTo_p_wxObject(void *x) {
1860 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1861 }
1862 static void *_p_wxPyEventTo_p_wxObject(void *x) {
1863 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1864 }
1865 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1866 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1867 }
1868 static void *_p_wxShowEventTo_p_wxObject(void *x) {
1869 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1870 }
1871 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1872 return (void *)((wxObject *) ((wxMenuItem *) x));
1873 }
1874 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1875 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1876 }
1877 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1878 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1879 }
1880 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1881 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1882 }
1883 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1884 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1885 }
1886 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1887 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1888 }
1889 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1890 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1891 }
1892 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1893 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1894 }
1895 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1896 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1897 }
1898 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1899 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1900 }
1901 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1902 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1903 }
1904 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1905 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1906 }
1907 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1908 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1909 }
1910 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1911 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1912 }
1913 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1914 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1915 }
1916 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1917 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1918 }
1919 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1920 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1921 }
1922 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1923 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1924 }
1925 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1926 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1927 }
1928 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1929 return (void *)((wxObject *) ((wxImageHandler *) x));
1930 }
1931 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1932 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1933 }
1934 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1935 return (void *)((wxObject *) ((wxEvtHandler *) x));
1936 }
1937 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1938 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1939 }
1940 static void *_p_wxImageTo_p_wxObject(void *x) {
1941 return (void *)((wxObject *) ((wxImage *) x));
1942 }
1943 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1944 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1945 }
1946 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1947 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1948 }
1949 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1950 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1951 }
1952 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1953 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1954 }
1955 static void *_p_wxWindowTo_p_wxObject(void *x) {
1956 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1957 }
1958 static void *_p_wxMenuTo_p_wxObject(void *x) {
1959 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1960 }
1961 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1962 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1963 }
1964 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1965 return (void *)((wxObject *) ((wxFileSystem *) x));
1966 }
1967 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1968 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1969 }
1970 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1971 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1972 }
1973 static void *_p_wxPyAppTo_p_wxObject(void *x) {
1974 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1975 }
1976 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1977 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1978 }
1979 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1980 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1981 }
1982 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1983 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1984 }
1985 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1986 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1987 }
1988 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1989 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1990 }
1991 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1992 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1993 }
1994 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1995 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1996 }
1997 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1998 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1999 }
2000 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2001 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2002 }
2003 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2004 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2005 }
2006 static void *_p_wxValidatorTo_p_wxObject(void *x) {
2007 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2008 }
2009 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2010 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2011 }
2012 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2013 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2014 }
2015 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2016 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2017 }
2018 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2019 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2020 }
2021 static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x) {
2022 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
2023 }
2024 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2025 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2026 }
2027 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2028 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2029 }
2030 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2031 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2032 }
2033 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2034 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2035 }
2036 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
2037 return (void *)((wxValidator *) ((wxPyValidator *) x));
2038 }
2039 static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x) {
2040 return (void *)((wxNotifyEvent *) ((wxMediaEvent *) x));
2041 }
2042 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2043 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2044 }
2045 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2046 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2047 }
2048 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2049 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2050 }
2051 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2052 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2053 }
2054 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2055 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2056 }
2057 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2058 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2059 }
2060 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2061 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2062 }
2063 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2064 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2065 }
2066 static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x) {
2067 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxMediaEvent *) x));
2068 }
2069 static swig_type_info _swigt__p_wxLongLong[] = {{"_p_wxLongLong", 0, "wxLongLong *", 0, 0, 0, 0},{"_p_wxLongLong", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2070 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2071 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2072 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2073 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2074 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2075 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2076 static swig_type_info _swigt__p_wxMediaCtrl[] = {{"_p_wxMediaCtrl", 0, "wxMediaCtrl *", 0, 0, 0, 0},{"_p_wxMediaCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2077 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2078 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2079 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2080 static swig_type_info _swigt__p_wxMediaEvent[] = {{"_p_wxMediaEvent", 0, "wxMediaEvent *", 0, 0, 0, 0},{"_p_wxMediaEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
2081
2082 static swig_type_info *swig_types_initial[] = {
2083 _swigt__p_wxLongLong,
2084 _swigt__p_wxControl,
2085 _swigt__p_wxWindow,
2086 _swigt__p_wxEvent,
2087 _swigt__p_wxObject,
2088 _swigt__p_wxEvtHandler,
2089 _swigt__p_char,
2090 _swigt__p_wxMediaCtrl,
2091 _swigt__p_wxValidator,
2092 _swigt__p_wxNotifyEvent,
2093 _swigt__p_wxCommandEvent,
2094 _swigt__p_wxMediaEvent,
2095 0
2096 };
2097
2098
2099 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2100
2101 static swig_const_info swig_const_table[] = {
2102 {0, 0, 0, 0.0, 0, 0}};
2103
2104 #ifdef __cplusplus
2105 }
2106 #endif
2107
2108 #ifdef __cplusplus
2109 extern "C"
2110 #endif
2111 SWIGEXPORT(void) SWIG_init(void) {
2112 static PyObject *SWIG_globals = 0;
2113 static int typeinit = 0;
2114 PyObject *m, *d;
2115 int i;
2116 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
2117 m = Py_InitModule((char *) SWIG_name, SwigMethods);
2118 d = PyModule_GetDict(m);
2119
2120 if (!typeinit) {
2121 for (i = 0; swig_types_initial[i]; i++) {
2122 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
2123 }
2124 typeinit = 1;
2125 }
2126 SWIG_InstallConstants(d,swig_const_table);
2127
2128 PyDict_SetItemString(d,"MEDIASTATE_STOPPED", SWIG_From_int((int)wxMEDIASTATE_STOPPED));
2129 PyDict_SetItemString(d,"MEDIASTATE_PAUSED", SWIG_From_int((int)wxMEDIASTATE_PAUSED));
2130 PyDict_SetItemString(d,"MEDIASTATE_PLAYING", SWIG_From_int((int)wxMEDIASTATE_PLAYING));
2131 PyDict_SetItemString(d,"MEDIATIMEFORMAT_TIME", SWIG_From_int((int)wxMEDIATIMEFORMAT_TIME));
2132 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
2133 SWIG_addvarlink(SWIG_globals,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get, _wrap_MediaCtrlNameStr_set);
2134 PyDict_SetItemString(d, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED));
2135 PyDict_SetItemString(d, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP));
2136
2137
2138 }
2139