]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/media_wrap.cpp
Updated to SWIG 1.3.24 (plus a patch that corrects a bug and adds back
[wxWidgets.git] / wxPython / src / gtk / 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_wxControl swig_types[0]
212 #define SWIGTYPE_p_wxWindow swig_types[1]
213 #define SWIGTYPE_p_wxEvent swig_types[2]
214 #define SWIGTYPE_p_wxObject swig_types[3]
215 #define SWIGTYPE_p_wxEvtHandler swig_types[4]
216 #define SWIGTYPE_p_char swig_types[5]
217 #define SWIGTYPE_p_wxMediaCtrl swig_types[6]
218 #define SWIGTYPE_p_wxFileOffset 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 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
270 #define SWIG_From_signed_SS_char PyInt_FromLong
271 /*@@*/
272 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
273 #define SWIG_From_unsigned_SS_char PyInt_FromLong
274 /*@@*/
275 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
276 #define SWIG_From_short PyInt_FromLong
277 /*@@*/
278 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
279 #define SWIG_From_unsigned_SS_short PyInt_FromLong
280 /*@@*/
281 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
282 #define SWIG_From_int PyInt_FromLong
283 /*@@*/
284 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
285 #define SWIG_From_long PyInt_FromLong
286 /*@@*/
287 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
288 #define SWIG_From_float PyFloat_FromDouble
289 /*@@*/
290 /*@/opt/swig/share/swig/1.3.22/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
311 class wxMediaEvent : public wxNotifyEvent
312 {
313 public:
314 wxMediaEvent(wxEventType, int ) { wxPyRaiseNotImplemented(); }
315 };
316
317 class wxMediaCtrl : public wxControl
318 {
319 public:
320 wxMediaCtrl() { wxPyRaiseNotImplemented(); }
321
322 wxMediaCtrl(wxWindow* , wxWindowID ,
323 const wxString& ,
324 const wxPoint& ,
325 const wxSize& ,
326 long style ,
327 const wxString& ,
328 const wxValidator& ,
329 const wxString& ) { wxPyRaiseNotImplemented(); }
330
331 // wxMediaCtrl(wxWindow* ,
332 // wxWindowID ,
333 // const wxURI& ,
334 // const wxPoint&,
335 // const wxSize& ,
336 // long style,
337 // const wxString& ,
338 // const wxValidator& ,
339 // const wxString& ) { wxPyRaiseNotImplemented(); }
340
341 bool Create(wxWindow* , wxWindowID ,
342 const wxString& ,
343 const wxPoint& ,
344 const wxSize& ,
345 long style ,
346 const wxString& ,
347 const wxValidator& ,
348 const wxString& ) { return false; }
349
350 // bool Create(wxWindow* ,
351 // wxWindowID ,
352 // const wxURI& ,
353 // const wxPoint&,
354 // const wxSize& ,
355 // long style,
356 // const wxString& ,
357 // const wxValidator& ,
358 // const wxString& ) { return false; }
359
360 bool Play() { return false; }
361 bool Pause() { return false; }
362 bool Stop() { return false; }
363
364 bool Load(const wxString& fileName) { return false; }
365 bool Load(const wxURI& location) { return false; }
366
367 void Loop(bool bLoop = true) {}
368 bool IsLooped() { return false; }
369
370 wxMediaState GetState() { return wxMEDIASTATE_STOPPED; }
371
372 double GetPlaybackRate() { return 0.0; }
373 bool SetPlaybackRate(double dRate) { return false; }
374
375 wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart)
376 { return 0; }
377
378 wxFileOffset Tell() { return 0; }
379 wxFileOffset Length() { return 0; }
380 };
381
382 const wxEventType wxEVT_MEDIA_FINISHED = 0;
383 const wxEventType wxEVT_MEDIA_STOP = 0;
384
385 #endif
386
387
388 #include <limits.h>
389
390
391 SWIGSTATICINLINE(int)
392 SWIG_CheckLongInRange(long value, long min_value, long max_value,
393 const char *errmsg)
394 {
395 if (value < min_value) {
396 if (errmsg) {
397 PyErr_Format(PyExc_OverflowError,
398 "value %ld is less than '%s' minimum %ld",
399 value, errmsg, min_value);
400 }
401 return 0;
402 } else if (value > max_value) {
403 if (errmsg) {
404 PyErr_Format(PyExc_OverflowError,
405 "value %ld is greater than '%s' maximum %ld",
406 value, errmsg, max_value);
407 }
408 return 0;
409 }
410 return 1;
411 }
412
413
414 // See my_fragments.i
415 SWIGSTATICINLINE(int)
416 SWIG_AsVal_long(PyObject* obj, long* val)
417 {
418 if (PyNumber_Check(obj)) {
419 if (val) *val = PyInt_AsLong(obj);
420 return 1;
421 }
422 else {
423 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
424 obj->ob_type->tp_name);
425 PyErr_SetObject(PyExc_TypeError, errmsg);
426 Py_DECREF(errmsg);
427 }
428 return 0;
429 }
430
431
432 #if INT_MAX != LONG_MAX
433 SWIGSTATICINLINE(int)
434 SWIG_AsVal_int(PyObject *obj, int *val)
435 {
436 const char* errmsg = val ? "int" : 0;
437 long v;
438 if (SWIG_AsVal_long(obj, &v)) {
439 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
440 if (val) *val = swig_numeric_cast(v, int);
441 return 1;
442 } else {
443 return 0;
444 }
445 } else {
446 PyErr_Clear();
447 }
448 if (val) {
449 PyErr_SetString(PyExc_TypeError, "an int is expected");
450 }
451 return 0;
452 }
453 #else
454 SWIGSTATICINLINE(int)
455 SWIG_AsVal_int(PyObject *obj, int *val)
456 {
457 return SWIG_AsVal_long(obj,(long*)val);
458 }
459 #endif
460
461
462 SWIGSTATICINLINE(int)
463 SWIG_As_int(PyObject* obj)
464 {
465 int v;
466 if (!SWIG_AsVal_int(obj, &v)) {
467 /*
468 this is needed to make valgrind/purify happier. the other
469 solution is throw an exception, but since this code should work
470 with plain C ....
471 */
472 memset((void*)&v, 0, sizeof(int));
473 }
474 return v;
475 }
476
477
478 SWIGSTATICINLINE(int)
479 SWIG_Check_int(PyObject* obj)
480 {
481 return SWIG_AsVal_int(obj, (int*)0);
482 }
483
484 static const wxString wxPyEmptyString(wxEmptyString);
485 static const wxString wxPyMediaCtrlNameStr(wxT("mediaCtrl"));
486
487 SWIGSTATICINLINE(long)
488 SWIG_As_long(PyObject* obj)
489 {
490 long v;
491 if (!SWIG_AsVal_long(obj, &v)) {
492 /*
493 this is needed to make valgrind/purify happier. the other
494 solution is throw an exception, but since this code should work
495 with plain C ....
496 */
497 memset((void*)&v, 0, sizeof(long));
498 }
499 return v;
500 }
501
502
503 SWIGSTATICINLINE(int)
504 SWIG_Check_long(PyObject* obj)
505 {
506 return SWIG_AsVal_long(obj, (long*)0);
507 }
508
509 bool wxMediaCtrl_LoadFromURI(wxMediaCtrl *self,wxString const &location){
510 return self->Load(wxURI(location));
511 }
512
513 SWIGSTATICINLINE(int)
514 SWIG_AsVal_bool(PyObject *obj, bool *val)
515 {
516 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
517 if (obj == Py_True) {
518 if (val) *val = true;
519 return 1;
520 }
521 if (obj == Py_False) {
522 if (val) *val = false;
523 return 1;
524 }
525 int res = 0;
526 if (SWIG_AsVal_int(obj, &res)) {
527 if (val) *val = (bool)res;
528 return 1;
529 }
530 if (val) {
531 PyErr_SetString(PyExc_TypeError, "a bool is expected");
532 }
533 return 0;
534 }
535
536
537 SWIGSTATICINLINE(bool)
538 SWIG_As_bool(PyObject* obj)
539 {
540 bool v;
541 if (!SWIG_AsVal_bool(obj, &v)) {
542 /*
543 this is needed to make valgrind/purify happier. the other
544 solution is throw an exception, but since this code should work
545 with plain C ....
546 */
547 memset((void*)&v, 0, sizeof(bool));
548 }
549 return v;
550 }
551
552
553 SWIGSTATICINLINE(int)
554 SWIG_Check_bool(PyObject* obj)
555 {
556 return SWIG_AsVal_bool(obj, (bool*)0);
557 }
558
559
560 // See my_fragments.i
561 SWIGSTATICINLINE(int)
562 SWIG_AsVal_double(PyObject *obj, double* val)
563 {
564 if (PyNumber_Check(obj)) {
565 if (val) *val = PyFloat_AsDouble(obj);
566 return 1;
567 }
568 else {
569 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
570 obj->ob_type->tp_name);
571 PyErr_SetObject(PyExc_TypeError, errmsg);
572 Py_DECREF(errmsg);
573 }
574 return 0;
575 }
576
577
578 SWIGSTATICINLINE(double)
579 SWIG_As_double(PyObject* obj)
580 {
581 double v;
582 if (!SWIG_AsVal_double(obj, &v)) {
583 /*
584 this is needed to make valgrind/purify happier. the other
585 solution is throw an exception, but since this code should work
586 with plain C ....
587 */
588 memset((void*)&v, 0, sizeof(double));
589 }
590 return v;
591 }
592
593
594 SWIGSTATICINLINE(int)
595 SWIG_Check_double(PyObject* obj)
596 {
597 return SWIG_AsVal_double(obj, (double*)0);
598 }
599
600 #ifdef __cplusplus
601 extern "C" {
602 #endif
603 static PyObject *_wrap_new_MediaEvent(PyObject *, PyObject *args, PyObject *kwargs) {
604 PyObject *resultobj;
605 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
606 int arg2 = (int) 0 ;
607 wxMediaEvent *result;
608 PyObject * obj0 = 0 ;
609 PyObject * obj1 = 0 ;
610 char *kwnames[] = {
611 (char *) "commandType",(char *) "id", NULL
612 };
613
614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MediaEvent",kwnames,&obj0,&obj1)) goto fail;
615 if (obj0) {
616 arg1 = (wxEventType)SWIG_As_int(obj0);
617 if (PyErr_Occurred()) SWIG_fail;
618 }
619 if (obj1) {
620 arg2 = (int)SWIG_As_int(obj1);
621 if (PyErr_Occurred()) SWIG_fail;
622 }
623 {
624 PyThreadState* __tstate = wxPyBeginAllowThreads();
625 result = (wxMediaEvent *)new wxMediaEvent(arg1,arg2);
626
627 wxPyEndAllowThreads(__tstate);
628 if (PyErr_Occurred()) SWIG_fail;
629 }
630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaEvent, 1);
631 return resultobj;
632 fail:
633 return NULL;
634 }
635
636
637 static PyObject * MediaEvent_swigregister(PyObject *, PyObject *args) {
638 PyObject *obj;
639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
640 SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent, obj);
641 Py_INCREF(obj);
642 return Py_BuildValue((char *)"");
643 }
644 static int _wrap_MediaCtrlNameStr_set(PyObject *) {
645 PyErr_SetString(PyExc_TypeError,"Variable MediaCtrlNameStr is read-only.");
646 return 1;
647 }
648
649
650 static PyObject *_wrap_MediaCtrlNameStr_get() {
651 PyObject *pyobj;
652
653 {
654 #if wxUSE_UNICODE
655 pyobj = PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
656 #else
657 pyobj = PyString_FromStringAndSize((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len());
658 #endif
659 }
660 return pyobj;
661 }
662
663
664 static PyObject *_wrap_new_MediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
665 PyObject *resultobj;
666 wxWindow *arg1 = (wxWindow *) 0 ;
667 int arg2 = (int) -1 ;
668 wxString const &arg3_defvalue = wxPyEmptyString ;
669 wxString *arg3 = (wxString *) &arg3_defvalue ;
670 wxPoint const &arg4_defvalue = wxDefaultPosition ;
671 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
672 wxSize const &arg5_defvalue = wxDefaultSize ;
673 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
674 long arg6 = (long) 0 ;
675 wxString const &arg7_defvalue = wxPyEmptyString ;
676 wxString *arg7 = (wxString *) &arg7_defvalue ;
677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
679 wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ;
680 wxString *arg9 = (wxString *) &arg9_defvalue ;
681 wxMediaCtrl *result;
682 bool temp3 = false ;
683 wxPoint temp4 ;
684 wxSize temp5 ;
685 bool temp7 = false ;
686 bool temp9 = false ;
687 PyObject * obj0 = 0 ;
688 PyObject * obj1 = 0 ;
689 PyObject * obj2 = 0 ;
690 PyObject * obj3 = 0 ;
691 PyObject * obj4 = 0 ;
692 PyObject * obj5 = 0 ;
693 PyObject * obj6 = 0 ;
694 PyObject * obj7 = 0 ;
695 PyObject * obj8 = 0 ;
696 char *kwnames[] = {
697 (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
698 };
699
700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
703 if (obj1) {
704 arg2 = (int)SWIG_As_int(obj1);
705 if (PyErr_Occurred()) SWIG_fail;
706 }
707 if (obj2) {
708 {
709 arg3 = wxString_in_helper(obj2);
710 if (arg3 == NULL) SWIG_fail;
711 temp3 = true;
712 }
713 }
714 if (obj3) {
715 {
716 arg4 = &temp4;
717 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
718 }
719 }
720 if (obj4) {
721 {
722 arg5 = &temp5;
723 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
724 }
725 }
726 if (obj5) {
727 arg6 = (long)SWIG_As_long(obj5);
728 if (PyErr_Occurred()) SWIG_fail;
729 }
730 if (obj6) {
731 {
732 arg7 = wxString_in_helper(obj6);
733 if (arg7 == NULL) SWIG_fail;
734 temp7 = true;
735 }
736 }
737 if (obj7) {
738 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
739 SWIG_POINTER_EXCEPTION | 0)) == -1)
740 SWIG_fail;
741 if (arg8 == NULL) {
742 PyErr_SetString(PyExc_TypeError,"null reference");
743 SWIG_fail;
744 }
745 }
746 if (obj8) {
747 {
748 arg9 = wxString_in_helper(obj8);
749 if (arg9 == NULL) SWIG_fail;
750 temp9 = true;
751 }
752 }
753 {
754 if (!wxPyCheckForApp()) SWIG_fail;
755 PyThreadState* __tstate = wxPyBeginAllowThreads();
756 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);
757
758 wxPyEndAllowThreads(__tstate);
759 if (PyErr_Occurred()) SWIG_fail;
760 }
761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
762 {
763 if (temp3)
764 delete arg3;
765 }
766 {
767 if (temp7)
768 delete arg7;
769 }
770 {
771 if (temp9)
772 delete arg9;
773 }
774 return resultobj;
775 fail:
776 {
777 if (temp3)
778 delete arg3;
779 }
780 {
781 if (temp7)
782 delete arg7;
783 }
784 {
785 if (temp9)
786 delete arg9;
787 }
788 return NULL;
789 }
790
791
792 static PyObject *_wrap_new_PreMediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
793 PyObject *resultobj;
794 wxMediaCtrl *result;
795 char *kwnames[] = {
796 NULL
797 };
798
799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMediaCtrl",kwnames)) goto fail;
800 {
801 if (!wxPyCheckForApp()) SWIG_fail;
802 PyThreadState* __tstate = wxPyBeginAllowThreads();
803 result = (wxMediaCtrl *)new wxMediaCtrl();
804
805 wxPyEndAllowThreads(__tstate);
806 if (PyErr_Occurred()) SWIG_fail;
807 }
808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1);
809 return resultobj;
810 fail:
811 return NULL;
812 }
813
814
815 static PyObject *_wrap_MediaCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
816 PyObject *resultobj;
817 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
818 wxWindow *arg2 = (wxWindow *) 0 ;
819 int arg3 = (int) -1 ;
820 wxString const &arg4_defvalue = wxPyEmptyString ;
821 wxString *arg4 = (wxString *) &arg4_defvalue ;
822 wxPoint const &arg5_defvalue = wxDefaultPosition ;
823 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
824 wxSize const &arg6_defvalue = wxDefaultSize ;
825 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
826 long arg7 = (long) 0 ;
827 wxString const &arg8_defvalue = wxPyEmptyString ;
828 wxString *arg8 = (wxString *) &arg8_defvalue ;
829 wxValidator const &arg9_defvalue = wxDefaultValidator ;
830 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
831 wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ;
832 wxString *arg10 = (wxString *) &arg10_defvalue ;
833 bool result;
834 bool temp4 = false ;
835 wxPoint temp5 ;
836 wxSize temp6 ;
837 bool temp8 = false ;
838 bool temp10 = false ;
839 PyObject * obj0 = 0 ;
840 PyObject * obj1 = 0 ;
841 PyObject * obj2 = 0 ;
842 PyObject * obj3 = 0 ;
843 PyObject * obj4 = 0 ;
844 PyObject * obj5 = 0 ;
845 PyObject * obj6 = 0 ;
846 PyObject * obj7 = 0 ;
847 PyObject * obj8 = 0 ;
848 PyObject * obj9 = 0 ;
849 char *kwnames[] = {
850 (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL
851 };
852
853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
856 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
858 if (obj2) {
859 arg3 = (int)SWIG_As_int(obj2);
860 if (PyErr_Occurred()) SWIG_fail;
861 }
862 if (obj3) {
863 {
864 arg4 = wxString_in_helper(obj3);
865 if (arg4 == NULL) SWIG_fail;
866 temp4 = true;
867 }
868 }
869 if (obj4) {
870 {
871 arg5 = &temp5;
872 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
873 }
874 }
875 if (obj5) {
876 {
877 arg6 = &temp6;
878 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
879 }
880 }
881 if (obj6) {
882 arg7 = (long)SWIG_As_long(obj6);
883 if (PyErr_Occurred()) SWIG_fail;
884 }
885 if (obj7) {
886 {
887 arg8 = wxString_in_helper(obj7);
888 if (arg8 == NULL) SWIG_fail;
889 temp8 = true;
890 }
891 }
892 if (obj8) {
893 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
894 SWIG_POINTER_EXCEPTION | 0)) == -1)
895 SWIG_fail;
896 if (arg9 == NULL) {
897 PyErr_SetString(PyExc_TypeError,"null reference");
898 SWIG_fail;
899 }
900 }
901 if (obj9) {
902 {
903 arg10 = wxString_in_helper(obj9);
904 if (arg10 == NULL) SWIG_fail;
905 temp10 = true;
906 }
907 }
908 {
909 PyThreadState* __tstate = wxPyBeginAllowThreads();
910 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);
911
912 wxPyEndAllowThreads(__tstate);
913 if (PyErr_Occurred()) SWIG_fail;
914 }
915 {
916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
917 }
918 {
919 if (temp4)
920 delete arg4;
921 }
922 {
923 if (temp8)
924 delete arg8;
925 }
926 {
927 if (temp10)
928 delete arg10;
929 }
930 return resultobj;
931 fail:
932 {
933 if (temp4)
934 delete arg4;
935 }
936 {
937 if (temp8)
938 delete arg8;
939 }
940 {
941 if (temp10)
942 delete arg10;
943 }
944 return NULL;
945 }
946
947
948 static PyObject *_wrap_MediaCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) {
949 PyObject *resultobj;
950 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
951 bool result;
952 PyObject * obj0 = 0 ;
953 char *kwnames[] = {
954 (char *) "self", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Play",kwnames,&obj0)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 result = (bool)(arg1)->Play();
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 {
968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
969 }
970 return resultobj;
971 fail:
972 return NULL;
973 }
974
975
976 static PyObject *_wrap_MediaCtrl_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
979 bool result;
980 PyObject * obj0 = 0 ;
981 char *kwnames[] = {
982 (char *) "self", NULL
983 };
984
985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Pause",kwnames,&obj0)) goto fail;
986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
988 {
989 PyThreadState* __tstate = wxPyBeginAllowThreads();
990 result = (bool)(arg1)->Pause();
991
992 wxPyEndAllowThreads(__tstate);
993 if (PyErr_Occurred()) SWIG_fail;
994 }
995 {
996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
997 }
998 return resultobj;
999 fail:
1000 return NULL;
1001 }
1002
1003
1004 static PyObject *_wrap_MediaCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
1005 PyObject *resultobj;
1006 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1007 bool result;
1008 PyObject * obj0 = 0 ;
1009 char *kwnames[] = {
1010 (char *) "self", NULL
1011 };
1012
1013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Stop",kwnames,&obj0)) goto fail;
1014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1016 {
1017 PyThreadState* __tstate = wxPyBeginAllowThreads();
1018 result = (bool)(arg1)->Stop();
1019
1020 wxPyEndAllowThreads(__tstate);
1021 if (PyErr_Occurred()) SWIG_fail;
1022 }
1023 {
1024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1025 }
1026 return resultobj;
1027 fail:
1028 return NULL;
1029 }
1030
1031
1032 static PyObject *_wrap_MediaCtrl_Load(PyObject *, PyObject *args, PyObject *kwargs) {
1033 PyObject *resultobj;
1034 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1035 wxString *arg2 = 0 ;
1036 bool result;
1037 bool temp2 = false ;
1038 PyObject * obj0 = 0 ;
1039 PyObject * obj1 = 0 ;
1040 char *kwnames[] = {
1041 (char *) "self",(char *) "fileName", NULL
1042 };
1043
1044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_Load",kwnames,&obj0,&obj1)) goto fail;
1045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1047 {
1048 arg2 = wxString_in_helper(obj1);
1049 if (arg2 == NULL) SWIG_fail;
1050 temp2 = true;
1051 }
1052 {
1053 PyThreadState* __tstate = wxPyBeginAllowThreads();
1054 result = (bool)(arg1)->Load((wxString const &)*arg2);
1055
1056 wxPyEndAllowThreads(__tstate);
1057 if (PyErr_Occurred()) SWIG_fail;
1058 }
1059 {
1060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1061 }
1062 {
1063 if (temp2)
1064 delete arg2;
1065 }
1066 return resultobj;
1067 fail:
1068 {
1069 if (temp2)
1070 delete arg2;
1071 }
1072 return NULL;
1073 }
1074
1075
1076 static PyObject *_wrap_MediaCtrl_LoadFromURI(PyObject *, PyObject *args, PyObject *kwargs) {
1077 PyObject *resultobj;
1078 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1079 wxString *arg2 = 0 ;
1080 bool result;
1081 bool temp2 = false ;
1082 PyObject * obj0 = 0 ;
1083 PyObject * obj1 = 0 ;
1084 char *kwnames[] = {
1085 (char *) "self",(char *) "location", NULL
1086 };
1087
1088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_LoadFromURI",kwnames,&obj0,&obj1)) goto fail;
1089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1091 {
1092 arg2 = wxString_in_helper(obj1);
1093 if (arg2 == NULL) SWIG_fail;
1094 temp2 = true;
1095 }
1096 {
1097 PyThreadState* __tstate = wxPyBeginAllowThreads();
1098 result = (bool)wxMediaCtrl_LoadFromURI(arg1,(wxString const &)*arg2);
1099
1100 wxPyEndAllowThreads(__tstate);
1101 if (PyErr_Occurred()) SWIG_fail;
1102 }
1103 {
1104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1105 }
1106 {
1107 if (temp2)
1108 delete arg2;
1109 }
1110 return resultobj;
1111 fail:
1112 {
1113 if (temp2)
1114 delete arg2;
1115 }
1116 return NULL;
1117 }
1118
1119
1120 static PyObject *_wrap_MediaCtrl_Loop(PyObject *, PyObject *args, PyObject *kwargs) {
1121 PyObject *resultobj;
1122 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1123 bool arg2 = (bool) true ;
1124 PyObject * obj0 = 0 ;
1125 PyObject * obj1 = 0 ;
1126 char *kwnames[] = {
1127 (char *) "self",(char *) "bLoop", NULL
1128 };
1129
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MediaCtrl_Loop",kwnames,&obj0,&obj1)) goto fail;
1131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1133 if (obj1) {
1134 arg2 = (bool)SWIG_As_bool(obj1);
1135 if (PyErr_Occurred()) SWIG_fail;
1136 }
1137 {
1138 PyThreadState* __tstate = wxPyBeginAllowThreads();
1139 (arg1)->Loop(arg2);
1140
1141 wxPyEndAllowThreads(__tstate);
1142 if (PyErr_Occurred()) SWIG_fail;
1143 }
1144 Py_INCREF(Py_None); resultobj = Py_None;
1145 return resultobj;
1146 fail:
1147 return NULL;
1148 }
1149
1150
1151 static PyObject *_wrap_MediaCtrl_IsLooped(PyObject *, PyObject *args, PyObject *kwargs) {
1152 PyObject *resultobj;
1153 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1154 bool result;
1155 PyObject * obj0 = 0 ;
1156 char *kwnames[] = {
1157 (char *) "self", NULL
1158 };
1159
1160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_IsLooped",kwnames,&obj0)) goto fail;
1161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1163 {
1164 PyThreadState* __tstate = wxPyBeginAllowThreads();
1165 result = (bool)(arg1)->IsLooped();
1166
1167 wxPyEndAllowThreads(__tstate);
1168 if (PyErr_Occurred()) SWIG_fail;
1169 }
1170 {
1171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1172 }
1173 return resultobj;
1174 fail:
1175 return NULL;
1176 }
1177
1178
1179 static PyObject *_wrap_MediaCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
1180 PyObject *resultobj;
1181 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1182 int result;
1183 PyObject * obj0 = 0 ;
1184 char *kwnames[] = {
1185 (char *) "self", NULL
1186 };
1187
1188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetState",kwnames,&obj0)) goto fail;
1189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1191 {
1192 PyThreadState* __tstate = wxPyBeginAllowThreads();
1193 result = (int)(arg1)->GetState();
1194
1195 wxPyEndAllowThreads(__tstate);
1196 if (PyErr_Occurred()) SWIG_fail;
1197 }
1198 resultobj = SWIG_From_int((int)result);
1199 return resultobj;
1200 fail:
1201 return NULL;
1202 }
1203
1204
1205 static PyObject *_wrap_MediaCtrl_GetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
1206 PyObject *resultobj;
1207 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1208 double result;
1209 PyObject * obj0 = 0 ;
1210 char *kwnames[] = {
1211 (char *) "self", NULL
1212 };
1213
1214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames,&obj0)) goto fail;
1215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1217 {
1218 PyThreadState* __tstate = wxPyBeginAllowThreads();
1219 result = (double)(arg1)->GetPlaybackRate();
1220
1221 wxPyEndAllowThreads(__tstate);
1222 if (PyErr_Occurred()) SWIG_fail;
1223 }
1224 resultobj = SWIG_From_double((double)result);
1225 return resultobj;
1226 fail:
1227 return NULL;
1228 }
1229
1230
1231 static PyObject *_wrap_MediaCtrl_SetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) {
1232 PyObject *resultobj;
1233 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1234 double arg2 ;
1235 bool result;
1236 PyObject * obj0 = 0 ;
1237 PyObject * obj1 = 0 ;
1238 char *kwnames[] = {
1239 (char *) "self",(char *) "dRate", NULL
1240 };
1241
1242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames,&obj0,&obj1)) goto fail;
1243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1245 arg2 = (double)SWIG_As_double(obj1);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 result = (bool)(arg1)->SetPlaybackRate(arg2);
1250
1251 wxPyEndAllowThreads(__tstate);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 }
1254 {
1255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1256 }
1257 return resultobj;
1258 fail:
1259 return NULL;
1260 }
1261
1262
1263 static PyObject *_wrap_MediaCtrl_Seek(PyObject *, PyObject *args, PyObject *kwargs) {
1264 PyObject *resultobj;
1265 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1266 wxFileOffset arg2 ;
1267 int arg3 = (int) wxFromStart ;
1268 wxFileOffset result;
1269 PyObject * obj0 = 0 ;
1270 PyObject * obj1 = 0 ;
1271 PyObject * obj2 = 0 ;
1272 char *kwnames[] = {
1273 (char *) "self",(char *) "where",(char *) "mode", NULL
1274 };
1275
1276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MediaCtrl_Seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
1277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1279 {
1280 if (sizeof(wxFileOffset) > sizeof(long))
1281 arg2 = PyLong_AsLongLong(obj1);
1282 else
1283 arg2 = PyInt_AsLong(obj1);
1284 }
1285 if (obj2) {
1286 arg3 = (int)SWIG_As_int(obj2);
1287 if (PyErr_Occurred()) SWIG_fail;
1288 }
1289 {
1290 PyThreadState* __tstate = wxPyBeginAllowThreads();
1291 result = (arg1)->Seek(arg2,(wxSeekMode )arg3);
1292
1293 wxPyEndAllowThreads(__tstate);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 }
1296 {
1297 if (sizeof(wxFileOffset) > sizeof(long))
1298 resultobj = PyLong_FromLongLong(result);
1299 else
1300 resultobj = PyInt_FromLong(result);
1301 }
1302 return resultobj;
1303 fail:
1304 return NULL;
1305 }
1306
1307
1308 static PyObject *_wrap_MediaCtrl_Tell(PyObject *, PyObject *args, PyObject *kwargs) {
1309 PyObject *resultobj;
1310 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1311 wxFileOffset result;
1312 PyObject * obj0 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "self", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Tell",kwnames,&obj0)) goto fail;
1318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1320 {
1321 PyThreadState* __tstate = wxPyBeginAllowThreads();
1322 result = (arg1)->Tell();
1323
1324 wxPyEndAllowThreads(__tstate);
1325 if (PyErr_Occurred()) SWIG_fail;
1326 }
1327 {
1328 if (sizeof(wxFileOffset) > sizeof(long))
1329 resultobj = PyLong_FromLongLong(result);
1330 else
1331 resultobj = PyInt_FromLong(result);
1332 }
1333 return resultobj;
1334 fail:
1335 return NULL;
1336 }
1337
1338
1339 static PyObject *_wrap_MediaCtrl_Length(PyObject *, PyObject *args, PyObject *kwargs) {
1340 PyObject *resultobj;
1341 wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ;
1342 wxFileOffset result;
1343 PyObject * obj0 = 0 ;
1344 char *kwnames[] = {
1345 (char *) "self", NULL
1346 };
1347
1348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Length",kwnames,&obj0)) goto fail;
1349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl,
1350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1351 {
1352 PyThreadState* __tstate = wxPyBeginAllowThreads();
1353 result = (arg1)->Length();
1354
1355 wxPyEndAllowThreads(__tstate);
1356 if (PyErr_Occurred()) SWIG_fail;
1357 }
1358 {
1359 if (sizeof(wxFileOffset) > sizeof(long))
1360 resultobj = PyLong_FromLongLong(result);
1361 else
1362 resultobj = PyInt_FromLong(result);
1363 }
1364 return resultobj;
1365 fail:
1366 return NULL;
1367 }
1368
1369
1370 static PyObject * MediaCtrl_swigregister(PyObject *, PyObject *args) {
1371 PyObject *obj;
1372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1373 SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl, obj);
1374 Py_INCREF(obj);
1375 return Py_BuildValue((char *)"");
1376 }
1377 static PyMethodDef SwigMethods[] = {
1378 { (char *)"new_MediaEvent", (PyCFunction) _wrap_new_MediaEvent, METH_VARARGS | METH_KEYWORDS, NULL },
1379 { (char *)"MediaEvent_swigregister", MediaEvent_swigregister, METH_VARARGS, NULL },
1380 { (char *)"new_MediaCtrl", (PyCFunction) _wrap_new_MediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1381 { (char *)"new_PreMediaCtrl", (PyCFunction) _wrap_new_PreMediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
1382 { (char *)"MediaCtrl_Create", (PyCFunction) _wrap_MediaCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
1383 { (char *)"MediaCtrl_Play", (PyCFunction) _wrap_MediaCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL },
1384 { (char *)"MediaCtrl_Pause", (PyCFunction) _wrap_MediaCtrl_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
1385 { (char *)"MediaCtrl_Stop", (PyCFunction) _wrap_MediaCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
1386 { (char *)"MediaCtrl_Load", (PyCFunction) _wrap_MediaCtrl_Load, METH_VARARGS | METH_KEYWORDS, NULL },
1387 { (char *)"MediaCtrl_LoadFromURI", (PyCFunction) _wrap_MediaCtrl_LoadFromURI, METH_VARARGS | METH_KEYWORDS, NULL },
1388 { (char *)"MediaCtrl_Loop", (PyCFunction) _wrap_MediaCtrl_Loop, METH_VARARGS | METH_KEYWORDS, NULL },
1389 { (char *)"MediaCtrl_IsLooped", (PyCFunction) _wrap_MediaCtrl_IsLooped, METH_VARARGS | METH_KEYWORDS, NULL },
1390 { (char *)"MediaCtrl_GetState", (PyCFunction) _wrap_MediaCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
1391 { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_GetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL },
1392 { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_SetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL },
1393 { (char *)"MediaCtrl_Seek", (PyCFunction) _wrap_MediaCtrl_Seek, METH_VARARGS | METH_KEYWORDS, NULL },
1394 { (char *)"MediaCtrl_Tell", (PyCFunction) _wrap_MediaCtrl_Tell, METH_VARARGS | METH_KEYWORDS, NULL },
1395 { (char *)"MediaCtrl_Length", (PyCFunction) _wrap_MediaCtrl_Length, METH_VARARGS | METH_KEYWORDS, NULL },
1396 { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister, METH_VARARGS, NULL },
1397 { NULL, NULL, 0, NULL }
1398 };
1399
1400
1401 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1402
1403 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
1404 return (void *)((wxControl *) ((wxControlWithItems *) x));
1405 }
1406 static void *_p_wxMediaCtrlTo_p_wxControl(void *x) {
1407 return (void *)((wxControl *) ((wxMediaCtrl *) x));
1408 }
1409 static void *_p_wxControlTo_p_wxWindow(void *x) {
1410 return (void *)((wxWindow *) ((wxControl *) x));
1411 }
1412 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1413 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1414 }
1415 static void *_p_wxMediaCtrlTo_p_wxWindow(void *x) {
1416 return (void *)((wxWindow *) (wxControl *) ((wxMediaCtrl *) x));
1417 }
1418 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1419 return (void *)((wxWindow *) ((wxMenuBar *) x));
1420 }
1421 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
1422 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
1423 }
1424 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
1425 return (void *)((wxEvent *) ((wxMenuEvent *) x));
1426 }
1427 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
1428 return (void *)((wxEvent *) ((wxCloseEvent *) x));
1429 }
1430 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
1431 return (void *)((wxEvent *) ((wxMouseEvent *) x));
1432 }
1433 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
1434 return (void *)((wxEvent *) ((wxEraseEvent *) x));
1435 }
1436 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
1437 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
1438 }
1439 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
1440 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
1441 }
1442 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
1443 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
1444 }
1445 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
1446 return (void *)((wxEvent *) ((wxPyEvent *) x));
1447 }
1448 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
1449 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
1450 }
1451 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
1452 return (void *)((wxEvent *) ((wxIdleEvent *) x));
1453 }
1454 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
1455 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
1456 }
1457 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
1458 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
1459 }
1460 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
1461 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
1462 }
1463 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
1464 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
1465 }
1466 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
1467 return (void *)((wxEvent *) ((wxActivateEvent *) x));
1468 }
1469 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
1470 return (void *)((wxEvent *) ((wxSizeEvent *) x));
1471 }
1472 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
1473 return (void *)((wxEvent *) ((wxMoveEvent *) x));
1474 }
1475 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
1476 return (void *)((wxEvent *) ((wxPaintEvent *) x));
1477 }
1478 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
1479 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
1480 }
1481 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
1482 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
1483 }
1484 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
1485 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
1486 }
1487 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
1488 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
1489 }
1490 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
1491 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1492 }
1493 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
1494 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
1495 }
1496 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
1497 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
1498 }
1499 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
1500 return (void *)((wxEvent *) ((wxFocusEvent *) x));
1501 }
1502 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
1503 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
1504 }
1505 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
1506 return (void *)((wxEvent *) ((wxShowEvent *) x));
1507 }
1508 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
1509 return (void *)((wxEvent *) ((wxCommandEvent *) x));
1510 }
1511 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
1512 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
1513 }
1514 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
1515 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1516 }
1517 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
1518 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
1519 }
1520 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
1521 return (void *)((wxEvent *) ((wxKeyEvent *) x));
1522 }
1523 static void *_p_wxMediaEventTo_p_wxEvent(void *x) {
1524 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
1525 }
1526 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
1527 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
1528 }
1529 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1530 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1531 }
1532 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1533 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1534 }
1535 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1536 return (void *)((wxObject *) ((wxSizerItem *) x));
1537 }
1538 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1539 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1540 }
1541 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1542 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1543 }
1544 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1545 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1546 }
1547 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1548 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1549 }
1550 static void *_p_wxSizerTo_p_wxObject(void *x) {
1551 return (void *)((wxObject *) ((wxSizer *) x));
1552 }
1553 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1554 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1555 }
1556 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1557 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1558 }
1559 static void *_p_wxEventTo_p_wxObject(void *x) {
1560 return (void *)((wxObject *) ((wxEvent *) x));
1561 }
1562 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1563 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1564 }
1565 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1566 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1567 }
1568 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1569 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1570 }
1571 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1572 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1573 }
1574 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1575 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1576 }
1577 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1578 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1579 }
1580 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1581 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1582 }
1583 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1584 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1585 }
1586 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1587 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1588 }
1589 static void *_p_wxMediaCtrlTo_p_wxObject(void *x) {
1590 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
1591 }
1592 static void *_p_wxControlTo_p_wxObject(void *x) {
1593 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1594 }
1595 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1596 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1597 }
1598 static void *_p_wxMediaEventTo_p_wxObject(void *x) {
1599 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x));
1600 }
1601 static void *_p_wxFSFileTo_p_wxObject(void *x) {
1602 return (void *)((wxObject *) ((wxFSFile *) x));
1603 }
1604 static void *_p_wxPySizerTo_p_wxObject(void *x) {
1605 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1606 }
1607 static void *_p_wxPyEventTo_p_wxObject(void *x) {
1608 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1609 }
1610 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1611 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1612 }
1613 static void *_p_wxShowEventTo_p_wxObject(void *x) {
1614 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1615 }
1616 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1617 return (void *)((wxObject *) ((wxMenuItem *) x));
1618 }
1619 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1620 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1621 }
1622 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1623 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1624 }
1625 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1626 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1627 }
1628 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1629 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1630 }
1631 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1632 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1633 }
1634 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1635 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1636 }
1637 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1638 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1639 }
1640 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1641 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1642 }
1643 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1644 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1645 }
1646 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1647 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1648 }
1649 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1650 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1651 }
1652 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1653 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1654 }
1655 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1656 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1657 }
1658 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1659 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1660 }
1661 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1662 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1663 }
1664 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1665 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1666 }
1667 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1668 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1669 }
1670 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1671 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1672 }
1673 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1674 return (void *)((wxObject *) ((wxImageHandler *) x));
1675 }
1676 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1677 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1678 }
1679 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1680 return (void *)((wxObject *) ((wxEvtHandler *) x));
1681 }
1682 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1683 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1684 }
1685 static void *_p_wxImageTo_p_wxObject(void *x) {
1686 return (void *)((wxObject *) ((wxImage *) x));
1687 }
1688 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1689 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1690 }
1691 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1692 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1693 }
1694 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1695 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1696 }
1697 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1698 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1699 }
1700 static void *_p_wxWindowTo_p_wxObject(void *x) {
1701 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1702 }
1703 static void *_p_wxMenuTo_p_wxObject(void *x) {
1704 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1705 }
1706 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1707 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1708 }
1709 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1710 return (void *)((wxObject *) ((wxFileSystem *) x));
1711 }
1712 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1713 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1714 }
1715 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1716 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1717 }
1718 static void *_p_wxPyAppTo_p_wxObject(void *x) {
1719 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1720 }
1721 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1722 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1723 }
1724 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1725 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1726 }
1727 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1728 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1729 }
1730 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1731 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1732 }
1733 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1734 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1735 }
1736 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1737 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1738 }
1739 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1740 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1741 }
1742 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1743 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1744 }
1745 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1746 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1747 }
1748 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1749 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1750 }
1751 static void *_p_wxValidatorTo_p_wxObject(void *x) {
1752 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1753 }
1754 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1755 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1756 }
1757 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1758 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1759 }
1760 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1761 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1762 }
1763 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1764 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1765 }
1766 static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x) {
1767 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxMediaCtrl *) x));
1768 }
1769 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1770 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1771 }
1772 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1773 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1774 }
1775 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1776 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1777 }
1778 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1779 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1780 }
1781 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
1782 return (void *)((wxValidator *) ((wxPyValidator *) x));
1783 }
1784 static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x) {
1785 return (void *)((wxNotifyEvent *) ((wxMediaEvent *) x));
1786 }
1787 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
1788 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
1789 }
1790 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
1791 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
1792 }
1793 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
1794 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
1795 }
1796 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
1797 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
1798 }
1799 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
1800 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1801 }
1802 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
1803 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
1804 }
1805 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
1806 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
1807 }
1808 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
1809 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
1810 }
1811 static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x) {
1812 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxMediaEvent *) x));
1813 }
1814 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}};
1815 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}};
1816 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}};
1817 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}};
1818 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}};
1819 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}};
1820 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}};
1821 static swig_type_info _swigt__p_wxFileOffset[] = {{"_p_wxFileOffset", 0, "wxFileOffset *", 0, 0, 0, 0},{"_p_wxFileOffset", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1822 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}};
1823 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}};
1824 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}};
1825 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}};
1826
1827 static swig_type_info *swig_types_initial[] = {
1828 _swigt__p_wxControl,
1829 _swigt__p_wxWindow,
1830 _swigt__p_wxEvent,
1831 _swigt__p_wxObject,
1832 _swigt__p_wxEvtHandler,
1833 _swigt__p_char,
1834 _swigt__p_wxMediaCtrl,
1835 _swigt__p_wxFileOffset,
1836 _swigt__p_wxValidator,
1837 _swigt__p_wxNotifyEvent,
1838 _swigt__p_wxCommandEvent,
1839 _swigt__p_wxMediaEvent,
1840 0
1841 };
1842
1843
1844 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1845
1846 static swig_const_info swig_const_table[] = {
1847 {0, 0, 0, 0.0, 0, 0}};
1848
1849 #ifdef __cplusplus
1850 }
1851 #endif
1852
1853 #ifdef __cplusplus
1854 extern "C"
1855 #endif
1856 SWIGEXPORT(void) SWIG_init(void) {
1857 static PyObject *SWIG_globals = 0;
1858 static int typeinit = 0;
1859 PyObject *m, *d;
1860 int i;
1861 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1862 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1863 d = PyModule_GetDict(m);
1864
1865 if (!typeinit) {
1866 for (i = 0; swig_types_initial[i]; i++) {
1867 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1868 }
1869 typeinit = 1;
1870 }
1871 SWIG_InstallConstants(d,swig_const_table);
1872
1873 PyDict_SetItemString(d,"MEDIASTATE_STOPPED", SWIG_From_int((int)wxMEDIASTATE_STOPPED));
1874 PyDict_SetItemString(d,"MEDIASTATE_PAUSED", SWIG_From_int((int)wxMEDIASTATE_PAUSED));
1875 PyDict_SetItemString(d,"MEDIASTATE_PLAYING", SWIG_From_int((int)wxMEDIASTATE_PLAYING));
1876 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1877 SWIG_addvarlink(SWIG_globals,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get, _wrap_MediaCtrlNameStr_set);
1878 PyDict_SetItemString(d, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED));
1879 PyDict_SetItemString(d, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP));
1880
1881
1882 }
1883