]>
Commit | Line | Data |
---|---|---|
8ac8dba0 RD |
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 | ||
300 | ||
301 | #if !wxUSE_MEDIACTRL | |
302 | enum wxMediaState | |
303 | { | |
304 | wxMEDIASTATE_STOPPED=0, | |
305 | wxMEDIASTATE_PAUSED=0, | |
306 | wxMEDIASTATE_PLAYING=0 | |
307 | }; | |
308 | ||
309 | enum wxMediaTimeFormat | |
310 | { | |
311 | wxMEDIATIMEFORMAT_TIME=0 | |
312 | }; | |
313 | ||
314 | class WXDLLIMPEXP_MEDIA wxMediaEvent : public wxNotifyEvent | |
315 | { | |
316 | public: | |
317 | wxMediaEvent(wxEventTypL, int ) { wxPyRaiseNotImplemented(); } | |
318 | }; | |
319 | ||
320 | class wxMediaCtrl : public wxControl | |
321 | { | |
322 | public: | |
323 | wxMediaCtrl() { wxPyRaiseNotImplemented(); } | |
324 | ||
325 | wxMediaCtrl(wxWindow* , wxWindowID , | |
326 | const wxString& , | |
327 | const wxPoint& , | |
328 | const wxSize& , | |
329 | long style , | |
330 | const wxString& , | |
331 | const wxValidator& , | |
332 | const wxString& ) { wxPyRaiseNotImplemented(); } | |
333 | ||
334 | wxMediaCtrl(wxWindow* , | |
335 | wxWindowID , | |
336 | const wxURI& , | |
337 | const wxPoint&, | |
338 | const wxSize& . | |
339 | long style, | |
340 | const wxString& , | |
341 | const wxValidator& , | |
342 | const wxString& ) { wxPyRaiseNotImplemented(); } | |
343 | ||
344 | bool Create(wxWindow* , wxWindowID , | |
345 | const wxString& , | |
346 | const wxPoint& , | |
347 | const wxSize& , | |
348 | long style , | |
349 | const wxString& , | |
350 | const wxValidator& , | |
351 | const wxString& ) { return false; } | |
352 | ||
353 | bool Create(wxWindow* , | |
354 | wxWindowID , | |
355 | const wxURI& , | |
356 | const wxPoint&, | |
357 | const wxSize& . | |
358 | long style, | |
359 | const wxString& , | |
360 | const wxValidator& , | |
361 | const wxString& ) { return false; } | |
362 | ||
363 | bool Play() { return false; } | |
364 | bool Pause() { return false; } | |
365 | bool Stop() { return false; } | |
366 | ||
367 | bool Load(const wxString& fileName) { return false; } | |
368 | bool Load(const wxURI& location) { return false; } | |
369 | ||
370 | void Loop(bool bLoop = true) {} | |
371 | bool IsLooped() { return false; } | |
372 | ||
373 | wxMediaState GetState() { return wxMEDIASTATE_STOPPED; } | |
374 | ||
375 | double GetPlaybackRate() { return 0.0; }; | |
376 | bool SetPlaybackRate(double dRate) { return false; } | |
377 | ||
378 | bool SetPosition(wxLongLong where) { return false; } | |
379 | wxLongLong GetPosition() { return 0; } | |
380 | wxLongLong GetDuration() { return 0; } | |
381 | }; | |
382 | #endif | |
383 | ||
384 | static const wxString wxPyMEDIABACKEND_DIRECTSHOW(wxMEDIABACKEND_DIRECTSHOW); | |
385 | static const wxString wxPyMEDIABACKEND_MCI(wxMEDIABACKEND_MCI); | |
386 | static const wxString wxPyMEDIABACKEND_QUICKTIME(wxMEDIABACKEND_QUICKTIME); | |
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("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 | 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){ | |
510 | return new wxMediaCtrl(parent, id, wxURI(location), | |
511 | pos, size, style, szBackend, validator, name); | |
512 | } | |
513 | 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){ | |
514 | return self->Create(parent, id, wxURI(location), | |
515 | pos, size, style, szBackend, validator, name); | |
516 | } | |
517 | bool wxMediaCtrl_LoadFromURI(wxMediaCtrl *self,wxString const &location){ | |
518 | return self->Load(wxURI(location)); | |
519 | } | |
520 | ||
521 | SWIGSTATICINLINE(int) | |
522 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
523 | { | |
524 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
525 | if (obj == Py_True) { | |
526 | if (val) *val = true; | |
527 | return 1; | |
528 | } | |
529 | if (obj == Py_False) { | |
530 | if (val) *val = false; | |
531 | return 1; | |
532 | } | |
533 | int res = 0; | |
534 | if (SWIG_AsVal_int(obj, &res)) { | |
535 | if (val) *val = (bool)res; | |
536 | return 1; | |
537 | } | |
538 | if (val) { | |
539 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
540 | } | |
541 | return 0; | |
542 | } | |
543 | ||
544 | ||
545 | SWIGSTATICINLINE(bool) | |
546 | SWIG_As_bool(PyObject* obj) | |
547 | { | |
548 | bool v; | |
549 | if (!SWIG_AsVal_bool(obj, &v)) { | |
550 | /* | |
551 | this is needed to make valgrind/purify happier. the other | |
552 | solution is throw an exception, but since this code should work | |
553 | with plain C .... | |
554 | */ | |
555 | memset((void*)&v, 0, sizeof(bool)); | |
556 | } | |
557 | return v; | |
558 | } | |
559 | ||
560 | ||
561 | SWIGSTATICINLINE(int) | |
562 | SWIG_Check_bool(PyObject* obj) | |
563 | { | |
564 | return SWIG_AsVal_bool(obj, (bool*)0); | |
565 | } | |
566 | ||
567 | ||
568 | // See my_fragments.i | |
569 | SWIGSTATICINLINE(int) | |
570 | SWIG_AsVal_double(PyObject *obj, double* val) | |
571 | { | |
572 | if (PyNumber_Check(obj)) { | |
573 | if (val) *val = PyFloat_AsDouble(obj); | |
574 | return 1; | |
575 | } | |
576 | else { | |
577 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
578 | obj->ob_type->tp_name); | |
579 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
580 | Py_DECREF(errmsg); | |
581 | } | |
582 | return 0; | |
583 | } | |
584 | ||
585 | ||
586 | SWIGSTATICINLINE(double) | |
587 | SWIG_As_double(PyObject* obj) | |
588 | { | |
589 | double v; | |
590 | if (!SWIG_AsVal_double(obj, &v)) { | |
591 | /* | |
592 | this is needed to make valgrind/purify happier. the other | |
593 | solution is throw an exception, but since this code should work | |
594 | with plain C .... | |
595 | */ | |
596 | memset((void*)&v, 0, sizeof(double)); | |
597 | } | |
598 | return v; | |
599 | } | |
600 | ||
601 | ||
602 | SWIGSTATICINLINE(int) | |
603 | SWIG_Check_double(PyObject* obj) | |
604 | { | |
605 | return SWIG_AsVal_double(obj, (double*)0); | |
606 | } | |
607 | ||
608 | #ifdef __cplusplus | |
609 | extern "C" { | |
610 | #endif | |
611 | static int _wrap_MEDIABACKEND_DIRECTSHOW_set(PyObject *) { | |
612 | PyErr_SetString(PyExc_TypeError,"Variable MEDIABACKEND_DIRECTSHOW is read-only."); | |
613 | return 1; | |
614 | } | |
615 | ||
616 | ||
617 | static PyObject *_wrap_MEDIABACKEND_DIRECTSHOW_get() { | |
618 | PyObject *pyobj; | |
619 | ||
620 | { | |
621 | #if wxUSE_UNICODE | |
622 | pyobj = PyUnicode_FromWideChar((&wxPyMEDIABACKEND_DIRECTSHOW)->c_str(), (&wxPyMEDIABACKEND_DIRECTSHOW)->Len()); | |
623 | #else | |
624 | pyobj = PyString_FromStringAndSize((&wxPyMEDIABACKEND_DIRECTSHOW)->c_str(), (&wxPyMEDIABACKEND_DIRECTSHOW)->Len()); | |
625 | #endif | |
626 | } | |
627 | return pyobj; | |
628 | } | |
629 | ||
630 | ||
631 | static int _wrap_MEDIABACKEND_MCI_set(PyObject *) { | |
632 | PyErr_SetString(PyExc_TypeError,"Variable MEDIABACKEND_MCI is read-only."); | |
633 | return 1; | |
634 | } | |
635 | ||
636 | ||
637 | static PyObject *_wrap_MEDIABACKEND_MCI_get() { | |
638 | PyObject *pyobj; | |
639 | ||
640 | { | |
641 | #if wxUSE_UNICODE | |
642 | pyobj = PyUnicode_FromWideChar((&wxPyMEDIABACKEND_MCI)->c_str(), (&wxPyMEDIABACKEND_MCI)->Len()); | |
643 | #else | |
644 | pyobj = PyString_FromStringAndSize((&wxPyMEDIABACKEND_MCI)->c_str(), (&wxPyMEDIABACKEND_MCI)->Len()); | |
645 | #endif | |
646 | } | |
647 | return pyobj; | |
648 | } | |
649 | ||
650 | ||
651 | static int _wrap_MEDIABACKEND_QUICKTIME_set(PyObject *) { | |
652 | PyErr_SetString(PyExc_TypeError,"Variable MEDIABACKEND_QUICKTIME is read-only."); | |
653 | return 1; | |
654 | } | |
655 | ||
656 | ||
657 | static PyObject *_wrap_MEDIABACKEND_QUICKTIME_get() { | |
658 | PyObject *pyobj; | |
659 | ||
660 | { | |
661 | #if wxUSE_UNICODE | |
662 | pyobj = PyUnicode_FromWideChar((&wxPyMEDIABACKEND_QUICKTIME)->c_str(), (&wxPyMEDIABACKEND_QUICKTIME)->Len()); | |
663 | #else | |
664 | pyobj = PyString_FromStringAndSize((&wxPyMEDIABACKEND_QUICKTIME)->c_str(), (&wxPyMEDIABACKEND_QUICKTIME)->Len()); | |
665 | #endif | |
666 | } | |
667 | return pyobj; | |
668 | } | |
669 | ||
670 | ||
671 | static PyObject *_wrap_new_MediaEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
672 | PyObject *resultobj; | |
673 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
674 | int arg2 = (int) 0 ; | |
675 | wxMediaEvent *result; | |
676 | PyObject * obj0 = 0 ; | |
677 | PyObject * obj1 = 0 ; | |
678 | char *kwnames[] = { | |
679 | (char *) "commandType",(char *) "id", NULL | |
680 | }; | |
681 | ||
682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MediaEvent",kwnames,&obj0,&obj1)) goto fail; | |
683 | if (obj0) { | |
684 | arg1 = (wxEventType)SWIG_As_int(obj0); | |
685 | if (PyErr_Occurred()) SWIG_fail; | |
686 | } | |
687 | if (obj1) { | |
688 | arg2 = (int)SWIG_As_int(obj1); | |
689 | if (PyErr_Occurred()) SWIG_fail; | |
690 | } | |
691 | { | |
692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
693 | result = (wxMediaEvent *)new wxMediaEvent(arg1,arg2); | |
694 | ||
695 | wxPyEndAllowThreads(__tstate); | |
696 | if (PyErr_Occurred()) SWIG_fail; | |
697 | } | |
698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaEvent, 1); | |
699 | return resultobj; | |
700 | fail: | |
701 | return NULL; | |
702 | } | |
703 | ||
704 | ||
705 | static PyObject * MediaEvent_swigregister(PyObject *, PyObject *args) { | |
706 | PyObject *obj; | |
707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
708 | SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent, obj); | |
709 | Py_INCREF(obj); | |
710 | return Py_BuildValue((char *)""); | |
711 | } | |
712 | static int _wrap_MediaCtrlNameStr_set(PyObject *) { | |
713 | PyErr_SetString(PyExc_TypeError,"Variable MediaCtrlNameStr is read-only."); | |
714 | return 1; | |
715 | } | |
716 | ||
717 | ||
718 | static PyObject *_wrap_MediaCtrlNameStr_get() { | |
719 | PyObject *pyobj; | |
720 | ||
721 | { | |
722 | #if wxUSE_UNICODE | |
723 | pyobj = PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len()); | |
724 | #else | |
725 | pyobj = PyString_FromStringAndSize((&wxPyMediaCtrlNameStr)->c_str(), (&wxPyMediaCtrlNameStr)->Len()); | |
726 | #endif | |
727 | } | |
728 | return pyobj; | |
729 | } | |
730 | ||
731 | ||
732 | static PyObject *_wrap_new_MediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
733 | PyObject *resultobj; | |
734 | wxWindow *arg1 = (wxWindow *) 0 ; | |
735 | int arg2 = (int) -1 ; | |
736 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
737 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
738 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
739 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
740 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
741 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
742 | long arg6 = (long) 0 ; | |
743 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
744 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
745 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
746 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
747 | wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ; | |
748 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
749 | wxMediaCtrl *result; | |
750 | bool temp3 = false ; | |
751 | wxPoint temp4 ; | |
752 | wxSize temp5 ; | |
753 | bool temp7 = false ; | |
754 | bool temp9 = false ; | |
755 | PyObject * obj0 = 0 ; | |
756 | PyObject * obj1 = 0 ; | |
757 | PyObject * obj2 = 0 ; | |
758 | PyObject * obj3 = 0 ; | |
759 | PyObject * obj4 = 0 ; | |
760 | PyObject * obj5 = 0 ; | |
761 | PyObject * obj6 = 0 ; | |
762 | PyObject * obj7 = 0 ; | |
763 | PyObject * obj8 = 0 ; | |
764 | char *kwnames[] = { | |
765 | (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL | |
766 | }; | |
767 | ||
768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
771 | if (obj1) { | |
772 | arg2 = (int)SWIG_As_int(obj1); | |
773 | if (PyErr_Occurred()) SWIG_fail; | |
774 | } | |
775 | if (obj2) { | |
776 | { | |
777 | arg3 = wxString_in_helper(obj2); | |
778 | if (arg3 == NULL) SWIG_fail; | |
779 | temp3 = true; | |
780 | } | |
781 | } | |
782 | if (obj3) { | |
783 | { | |
784 | arg4 = &temp4; | |
785 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
786 | } | |
787 | } | |
788 | if (obj4) { | |
789 | { | |
790 | arg5 = &temp5; | |
791 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
792 | } | |
793 | } | |
794 | if (obj5) { | |
795 | arg6 = (long)SWIG_As_long(obj5); | |
796 | if (PyErr_Occurred()) SWIG_fail; | |
797 | } | |
798 | if (obj6) { | |
799 | { | |
800 | arg7 = wxString_in_helper(obj6); | |
801 | if (arg7 == NULL) SWIG_fail; | |
802 | temp7 = true; | |
803 | } | |
804 | } | |
805 | if (obj7) { | |
806 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
807 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
808 | SWIG_fail; | |
809 | if (arg8 == NULL) { | |
810 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
811 | SWIG_fail; | |
812 | } | |
813 | } | |
814 | if (obj8) { | |
815 | { | |
816 | arg9 = wxString_in_helper(obj8); | |
817 | if (arg9 == NULL) SWIG_fail; | |
818 | temp9 = true; | |
819 | } | |
820 | } | |
821 | { | |
822 | if (!wxPyCheckForApp()) SWIG_fail; | |
823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
824 | 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); | |
825 | ||
826 | wxPyEndAllowThreads(__tstate); | |
827 | if (PyErr_Occurred()) SWIG_fail; | |
828 | } | |
829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1); | |
830 | { | |
831 | if (temp3) | |
832 | delete arg3; | |
833 | } | |
834 | { | |
835 | if (temp7) | |
836 | delete arg7; | |
837 | } | |
838 | { | |
839 | if (temp9) | |
840 | delete arg9; | |
841 | } | |
842 | return resultobj; | |
843 | fail: | |
844 | { | |
845 | if (temp3) | |
846 | delete arg3; | |
847 | } | |
848 | { | |
849 | if (temp7) | |
850 | delete arg7; | |
851 | } | |
852 | { | |
853 | if (temp9) | |
854 | delete arg9; | |
855 | } | |
856 | return NULL; | |
857 | } | |
858 | ||
859 | ||
860 | static PyObject *_wrap_new_PreMediaCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
861 | PyObject *resultobj; | |
862 | wxMediaCtrl *result; | |
863 | char *kwnames[] = { | |
864 | NULL | |
865 | }; | |
866 | ||
867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMediaCtrl",kwnames)) goto fail; | |
868 | { | |
869 | if (!wxPyCheckForApp()) SWIG_fail; | |
870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
871 | result = (wxMediaCtrl *)new wxMediaCtrl(); | |
872 | ||
873 | wxPyEndAllowThreads(__tstate); | |
874 | if (PyErr_Occurred()) SWIG_fail; | |
875 | } | |
876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1); | |
877 | return resultobj; | |
878 | fail: | |
879 | return NULL; | |
880 | } | |
881 | ||
882 | ||
883 | static PyObject *_wrap_new_MediaCtrlFromURI(PyObject *, PyObject *args, PyObject *kwargs) { | |
884 | PyObject *resultobj; | |
885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
886 | int arg2 = (int) -1 ; | |
887 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
888 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
889 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
890 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
891 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
892 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
893 | long arg6 = (long) 0 ; | |
894 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
895 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
896 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
897 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
898 | wxString const &arg9_defvalue = wxPyMediaCtrlNameStr ; | |
899 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
900 | wxMediaCtrl *result; | |
901 | bool temp3 = false ; | |
902 | wxPoint temp4 ; | |
903 | wxSize temp5 ; | |
904 | bool temp7 = false ; | |
905 | bool temp9 = false ; | |
906 | PyObject * obj0 = 0 ; | |
907 | PyObject * obj1 = 0 ; | |
908 | PyObject * obj2 = 0 ; | |
909 | PyObject * obj3 = 0 ; | |
910 | PyObject * obj4 = 0 ; | |
911 | PyObject * obj5 = 0 ; | |
912 | PyObject * obj6 = 0 ; | |
913 | PyObject * obj7 = 0 ; | |
914 | PyObject * obj8 = 0 ; | |
915 | char *kwnames[] = { | |
916 | (char *) "parent",(char *) "id",(char *) "location",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL | |
917 | }; | |
918 | ||
919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_MediaCtrlFromURI",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
922 | if (obj1) { | |
923 | arg2 = (int)SWIG_As_int(obj1); | |
924 | if (PyErr_Occurred()) SWIG_fail; | |
925 | } | |
926 | if (obj2) { | |
927 | { | |
928 | arg3 = wxString_in_helper(obj2); | |
929 | if (arg3 == NULL) SWIG_fail; | |
930 | temp3 = true; | |
931 | } | |
932 | } | |
933 | if (obj3) { | |
934 | { | |
935 | arg4 = &temp4; | |
936 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
937 | } | |
938 | } | |
939 | if (obj4) { | |
940 | { | |
941 | arg5 = &temp5; | |
942 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
943 | } | |
944 | } | |
945 | if (obj5) { | |
946 | arg6 = (long)SWIG_As_long(obj5); | |
947 | if (PyErr_Occurred()) SWIG_fail; | |
948 | } | |
949 | if (obj6) { | |
950 | { | |
951 | arg7 = wxString_in_helper(obj6); | |
952 | if (arg7 == NULL) SWIG_fail; | |
953 | temp7 = true; | |
954 | } | |
955 | } | |
956 | if (obj7) { | |
957 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
958 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
959 | SWIG_fail; | |
960 | if (arg8 == NULL) { | |
961 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
962 | SWIG_fail; | |
963 | } | |
964 | } | |
965 | if (obj8) { | |
966 | { | |
967 | arg9 = wxString_in_helper(obj8); | |
968 | if (arg9 == NULL) SWIG_fail; | |
969 | temp9 = true; | |
970 | } | |
971 | } | |
972 | { | |
973 | if (!wxPyCheckForApp()) SWIG_fail; | |
974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
975 | 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); | |
976 | ||
977 | wxPyEndAllowThreads(__tstate); | |
978 | if (PyErr_Occurred()) SWIG_fail; | |
979 | } | |
980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMediaCtrl, 1); | |
981 | { | |
982 | if (temp3) | |
983 | delete arg3; | |
984 | } | |
985 | { | |
986 | if (temp7) | |
987 | delete arg7; | |
988 | } | |
989 | { | |
990 | if (temp9) | |
991 | delete arg9; | |
992 | } | |
993 | return resultobj; | |
994 | fail: | |
995 | { | |
996 | if (temp3) | |
997 | delete arg3; | |
998 | } | |
999 | { | |
1000 | if (temp7) | |
1001 | delete arg7; | |
1002 | } | |
1003 | { | |
1004 | if (temp9) | |
1005 | delete arg9; | |
1006 | } | |
1007 | return NULL; | |
1008 | } | |
1009 | ||
1010 | ||
1011 | static PyObject *_wrap_MediaCtrl_CreateFromURI(PyObject *, PyObject *args, PyObject *kwargs) { | |
1012 | PyObject *resultobj; | |
1013 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1014 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1015 | int arg3 = (int) -1 ; | |
1016 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1017 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
1018 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1019 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1020 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1021 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1022 | long arg7 = (long) 0 ; | |
1023 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
1024 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1025 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
1026 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
1027 | wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ; | |
1028 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
1029 | bool result; | |
1030 | bool temp4 = false ; | |
1031 | wxPoint temp5 ; | |
1032 | wxSize temp6 ; | |
1033 | bool temp8 = false ; | |
1034 | bool temp10 = false ; | |
1035 | PyObject * obj0 = 0 ; | |
1036 | PyObject * obj1 = 0 ; | |
1037 | PyObject * obj2 = 0 ; | |
1038 | PyObject * obj3 = 0 ; | |
1039 | PyObject * obj4 = 0 ; | |
1040 | PyObject * obj5 = 0 ; | |
1041 | PyObject * obj6 = 0 ; | |
1042 | PyObject * obj7 = 0 ; | |
1043 | PyObject * obj8 = 0 ; | |
1044 | PyObject * obj9 = 0 ; | |
1045 | char *kwnames[] = { | |
1046 | (char *) "self",(char *) "parent",(char *) "id",(char *) "location",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL | |
1047 | }; | |
1048 | ||
1049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_CreateFromURI",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
1050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1054 | if (obj2) { | |
1055 | arg3 = (int)SWIG_As_int(obj2); | |
1056 | if (PyErr_Occurred()) SWIG_fail; | |
1057 | } | |
1058 | if (obj3) { | |
1059 | { | |
1060 | arg4 = wxString_in_helper(obj3); | |
1061 | if (arg4 == NULL) SWIG_fail; | |
1062 | temp4 = true; | |
1063 | } | |
1064 | } | |
1065 | if (obj4) { | |
1066 | { | |
1067 | arg5 = &temp5; | |
1068 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1069 | } | |
1070 | } | |
1071 | if (obj5) { | |
1072 | { | |
1073 | arg6 = &temp6; | |
1074 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1075 | } | |
1076 | } | |
1077 | if (obj6) { | |
1078 | arg7 = (long)SWIG_As_long(obj6); | |
1079 | if (PyErr_Occurred()) SWIG_fail; | |
1080 | } | |
1081 | if (obj7) { | |
1082 | { | |
1083 | arg8 = wxString_in_helper(obj7); | |
1084 | if (arg8 == NULL) SWIG_fail; | |
1085 | temp8 = true; | |
1086 | } | |
1087 | } | |
1088 | if (obj8) { | |
1089 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
1090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1091 | SWIG_fail; | |
1092 | if (arg9 == NULL) { | |
1093 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1094 | SWIG_fail; | |
1095 | } | |
1096 | } | |
1097 | if (obj9) { | |
1098 | { | |
1099 | arg10 = wxString_in_helper(obj9); | |
1100 | if (arg10 == NULL) SWIG_fail; | |
1101 | temp10 = true; | |
1102 | } | |
1103 | } | |
1104 | { | |
1105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1106 | 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); | |
1107 | ||
1108 | wxPyEndAllowThreads(__tstate); | |
1109 | if (PyErr_Occurred()) SWIG_fail; | |
1110 | } | |
1111 | { | |
1112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1113 | } | |
1114 | { | |
1115 | if (temp4) | |
1116 | delete arg4; | |
1117 | } | |
1118 | { | |
1119 | if (temp8) | |
1120 | delete arg8; | |
1121 | } | |
1122 | { | |
1123 | if (temp10) | |
1124 | delete arg10; | |
1125 | } | |
1126 | return resultobj; | |
1127 | fail: | |
1128 | { | |
1129 | if (temp4) | |
1130 | delete arg4; | |
1131 | } | |
1132 | { | |
1133 | if (temp8) | |
1134 | delete arg8; | |
1135 | } | |
1136 | { | |
1137 | if (temp10) | |
1138 | delete arg10; | |
1139 | } | |
1140 | return NULL; | |
1141 | } | |
1142 | ||
1143 | ||
1144 | static PyObject *_wrap_MediaCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject *resultobj; | |
1146 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1147 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1148 | int arg3 = (int) -1 ; | |
1149 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1150 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
1151 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1152 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1153 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1154 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1155 | long arg7 = (long) 0 ; | |
1156 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
1157 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1158 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
1159 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
1160 | wxString const &arg10_defvalue = wxPyMediaCtrlNameStr ; | |
1161 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
1162 | bool result; | |
1163 | bool temp4 = false ; | |
1164 | wxPoint temp5 ; | |
1165 | wxSize temp6 ; | |
1166 | bool temp8 = false ; | |
1167 | bool temp10 = false ; | |
1168 | PyObject * obj0 = 0 ; | |
1169 | PyObject * obj1 = 0 ; | |
1170 | PyObject * obj2 = 0 ; | |
1171 | PyObject * obj3 = 0 ; | |
1172 | PyObject * obj4 = 0 ; | |
1173 | PyObject * obj5 = 0 ; | |
1174 | PyObject * obj6 = 0 ; | |
1175 | PyObject * obj7 = 0 ; | |
1176 | PyObject * obj8 = 0 ; | |
1177 | PyObject * obj9 = 0 ; | |
1178 | char *kwnames[] = { | |
1179 | (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL | |
1180 | }; | |
1181 | ||
1182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
1183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1185 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1187 | if (obj2) { | |
1188 | arg3 = (int)SWIG_As_int(obj2); | |
1189 | if (PyErr_Occurred()) SWIG_fail; | |
1190 | } | |
1191 | if (obj3) { | |
1192 | { | |
1193 | arg4 = wxString_in_helper(obj3); | |
1194 | if (arg4 == NULL) SWIG_fail; | |
1195 | temp4 = true; | |
1196 | } | |
1197 | } | |
1198 | if (obj4) { | |
1199 | { | |
1200 | arg5 = &temp5; | |
1201 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1202 | } | |
1203 | } | |
1204 | if (obj5) { | |
1205 | { | |
1206 | arg6 = &temp6; | |
1207 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1208 | } | |
1209 | } | |
1210 | if (obj6) { | |
1211 | arg7 = (long)SWIG_As_long(obj6); | |
1212 | if (PyErr_Occurred()) SWIG_fail; | |
1213 | } | |
1214 | if (obj7) { | |
1215 | { | |
1216 | arg8 = wxString_in_helper(obj7); | |
1217 | if (arg8 == NULL) SWIG_fail; | |
1218 | temp8 = true; | |
1219 | } | |
1220 | } | |
1221 | if (obj8) { | |
1222 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
1223 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1224 | SWIG_fail; | |
1225 | if (arg9 == NULL) { | |
1226 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1227 | SWIG_fail; | |
1228 | } | |
1229 | } | |
1230 | if (obj9) { | |
1231 | { | |
1232 | arg10 = wxString_in_helper(obj9); | |
1233 | if (arg10 == NULL) SWIG_fail; | |
1234 | temp10 = true; | |
1235 | } | |
1236 | } | |
1237 | { | |
1238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1239 | 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); | |
1240 | ||
1241 | wxPyEndAllowThreads(__tstate); | |
1242 | if (PyErr_Occurred()) SWIG_fail; | |
1243 | } | |
1244 | { | |
1245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1246 | } | |
1247 | { | |
1248 | if (temp4) | |
1249 | delete arg4; | |
1250 | } | |
1251 | { | |
1252 | if (temp8) | |
1253 | delete arg8; | |
1254 | } | |
1255 | { | |
1256 | if (temp10) | |
1257 | delete arg10; | |
1258 | } | |
1259 | return resultobj; | |
1260 | fail: | |
1261 | { | |
1262 | if (temp4) | |
1263 | delete arg4; | |
1264 | } | |
1265 | { | |
1266 | if (temp8) | |
1267 | delete arg8; | |
1268 | } | |
1269 | { | |
1270 | if (temp10) | |
1271 | delete arg10; | |
1272 | } | |
1273 | return NULL; | |
1274 | } | |
1275 | ||
1276 | ||
1277 | static PyObject *_wrap_MediaCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) { | |
1278 | PyObject *resultobj; | |
1279 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1280 | bool result; | |
1281 | PyObject * obj0 = 0 ; | |
1282 | char *kwnames[] = { | |
1283 | (char *) "self", NULL | |
1284 | }; | |
1285 | ||
1286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Play",kwnames,&obj0)) goto fail; | |
1287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1289 | { | |
1290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1291 | result = (bool)(arg1)->Play(); | |
1292 | ||
1293 | wxPyEndAllowThreads(__tstate); | |
1294 | if (PyErr_Occurred()) SWIG_fail; | |
1295 | } | |
1296 | { | |
1297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1298 | } | |
1299 | return resultobj; | |
1300 | fail: | |
1301 | return NULL; | |
1302 | } | |
1303 | ||
1304 | ||
1305 | static PyObject *_wrap_MediaCtrl_Pause(PyObject *, PyObject *args, PyObject *kwargs) { | |
1306 | PyObject *resultobj; | |
1307 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1308 | bool result; | |
1309 | PyObject * obj0 = 0 ; | |
1310 | char *kwnames[] = { | |
1311 | (char *) "self", NULL | |
1312 | }; | |
1313 | ||
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Pause",kwnames,&obj0)) goto fail; | |
1315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1317 | { | |
1318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1319 | result = (bool)(arg1)->Pause(); | |
1320 | ||
1321 | wxPyEndAllowThreads(__tstate); | |
1322 | if (PyErr_Occurred()) SWIG_fail; | |
1323 | } | |
1324 | { | |
1325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1326 | } | |
1327 | return resultobj; | |
1328 | fail: | |
1329 | return NULL; | |
1330 | } | |
1331 | ||
1332 | ||
1333 | static PyObject *_wrap_MediaCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject *resultobj; | |
1335 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1336 | bool result; | |
1337 | PyObject * obj0 = 0 ; | |
1338 | char *kwnames[] = { | |
1339 | (char *) "self", NULL | |
1340 | }; | |
1341 | ||
1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_Stop",kwnames,&obj0)) goto fail; | |
1343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1345 | { | |
1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1347 | result = (bool)(arg1)->Stop(); | |
1348 | ||
1349 | wxPyEndAllowThreads(__tstate); | |
1350 | if (PyErr_Occurred()) SWIG_fail; | |
1351 | } | |
1352 | { | |
1353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1354 | } | |
1355 | return resultobj; | |
1356 | fail: | |
1357 | return NULL; | |
1358 | } | |
1359 | ||
1360 | ||
1361 | static PyObject *_wrap_MediaCtrl_Load(PyObject *, PyObject *args, PyObject *kwargs) { | |
1362 | PyObject *resultobj; | |
1363 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1364 | wxString *arg2 = 0 ; | |
1365 | bool result; | |
1366 | bool temp2 = false ; | |
1367 | PyObject * obj0 = 0 ; | |
1368 | PyObject * obj1 = 0 ; | |
1369 | char *kwnames[] = { | |
1370 | (char *) "self",(char *) "fileName", NULL | |
1371 | }; | |
1372 | ||
1373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_Load",kwnames,&obj0,&obj1)) goto fail; | |
1374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1376 | { | |
1377 | arg2 = wxString_in_helper(obj1); | |
1378 | if (arg2 == NULL) SWIG_fail; | |
1379 | temp2 = true; | |
1380 | } | |
1381 | { | |
1382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1383 | result = (bool)(arg1)->Load((wxString const &)*arg2); | |
1384 | ||
1385 | wxPyEndAllowThreads(__tstate); | |
1386 | if (PyErr_Occurred()) SWIG_fail; | |
1387 | } | |
1388 | { | |
1389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1390 | } | |
1391 | { | |
1392 | if (temp2) | |
1393 | delete arg2; | |
1394 | } | |
1395 | return resultobj; | |
1396 | fail: | |
1397 | { | |
1398 | if (temp2) | |
1399 | delete arg2; | |
1400 | } | |
1401 | return NULL; | |
1402 | } | |
1403 | ||
1404 | ||
1405 | static PyObject *_wrap_MediaCtrl_LoadFromURI(PyObject *, PyObject *args, PyObject *kwargs) { | |
1406 | PyObject *resultobj; | |
1407 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1408 | wxString *arg2 = 0 ; | |
1409 | bool result; | |
1410 | bool temp2 = false ; | |
1411 | PyObject * obj0 = 0 ; | |
1412 | PyObject * obj1 = 0 ; | |
1413 | char *kwnames[] = { | |
1414 | (char *) "self",(char *) "location", NULL | |
1415 | }; | |
1416 | ||
1417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_LoadFromURI",kwnames,&obj0,&obj1)) goto fail; | |
1418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1420 | { | |
1421 | arg2 = wxString_in_helper(obj1); | |
1422 | if (arg2 == NULL) SWIG_fail; | |
1423 | temp2 = true; | |
1424 | } | |
1425 | { | |
1426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1427 | result = (bool)wxMediaCtrl_LoadFromURI(arg1,(wxString const &)*arg2); | |
1428 | ||
1429 | wxPyEndAllowThreads(__tstate); | |
1430 | if (PyErr_Occurred()) SWIG_fail; | |
1431 | } | |
1432 | { | |
1433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1434 | } | |
1435 | { | |
1436 | if (temp2) | |
1437 | delete arg2; | |
1438 | } | |
1439 | return resultobj; | |
1440 | fail: | |
1441 | { | |
1442 | if (temp2) | |
1443 | delete arg2; | |
1444 | } | |
1445 | return NULL; | |
1446 | } | |
1447 | ||
1448 | ||
1449 | static PyObject *_wrap_MediaCtrl_Loop(PyObject *, PyObject *args, PyObject *kwargs) { | |
1450 | PyObject *resultobj; | |
1451 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1452 | bool arg2 = (bool) true ; | |
1453 | PyObject * obj0 = 0 ; | |
1454 | PyObject * obj1 = 0 ; | |
1455 | char *kwnames[] = { | |
1456 | (char *) "self",(char *) "bLoop", NULL | |
1457 | }; | |
1458 | ||
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MediaCtrl_Loop",kwnames,&obj0,&obj1)) goto fail; | |
1460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1462 | if (obj1) { | |
1463 | arg2 = (bool)SWIG_As_bool(obj1); | |
1464 | if (PyErr_Occurred()) SWIG_fail; | |
1465 | } | |
1466 | { | |
1467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1468 | (arg1)->Loop(arg2); | |
1469 | ||
1470 | wxPyEndAllowThreads(__tstate); | |
1471 | if (PyErr_Occurred()) SWIG_fail; | |
1472 | } | |
1473 | Py_INCREF(Py_None); resultobj = Py_None; | |
1474 | return resultobj; | |
1475 | fail: | |
1476 | return NULL; | |
1477 | } | |
1478 | ||
1479 | ||
1480 | static PyObject *_wrap_MediaCtrl_IsLooped(PyObject *, PyObject *args, PyObject *kwargs) { | |
1481 | PyObject *resultobj; | |
1482 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1483 | bool result; | |
1484 | PyObject * obj0 = 0 ; | |
1485 | char *kwnames[] = { | |
1486 | (char *) "self", NULL | |
1487 | }; | |
1488 | ||
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_IsLooped",kwnames,&obj0)) goto fail; | |
1490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1492 | { | |
1493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1494 | result = (bool)(arg1)->IsLooped(); | |
1495 | ||
1496 | wxPyEndAllowThreads(__tstate); | |
1497 | if (PyErr_Occurred()) SWIG_fail; | |
1498 | } | |
1499 | { | |
1500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1501 | } | |
1502 | return resultobj; | |
1503 | fail: | |
1504 | return NULL; | |
1505 | } | |
1506 | ||
1507 | ||
1508 | static PyObject *_wrap_MediaCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject *resultobj; | |
1510 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1511 | int result; | |
1512 | PyObject * obj0 = 0 ; | |
1513 | char *kwnames[] = { | |
1514 | (char *) "self", NULL | |
1515 | }; | |
1516 | ||
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetState",kwnames,&obj0)) goto fail; | |
1518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1520 | { | |
1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1522 | result = (int)(arg1)->GetState(); | |
1523 | ||
1524 | wxPyEndAllowThreads(__tstate); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | resultobj = SWIG_From_int((int)result); | |
1528 | return resultobj; | |
1529 | fail: | |
1530 | return NULL; | |
1531 | } | |
1532 | ||
1533 | ||
1534 | static PyObject *_wrap_MediaCtrl_GetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) { | |
1535 | PyObject *resultobj; | |
1536 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1537 | double result; | |
1538 | PyObject * obj0 = 0 ; | |
1539 | char *kwnames[] = { | |
1540 | (char *) "self", NULL | |
1541 | }; | |
1542 | ||
1543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames,&obj0)) goto fail; | |
1544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1546 | { | |
1547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1548 | result = (double)(arg1)->GetPlaybackRate(); | |
1549 | ||
1550 | wxPyEndAllowThreads(__tstate); | |
1551 | if (PyErr_Occurred()) SWIG_fail; | |
1552 | } | |
1553 | resultobj = SWIG_From_double((double)result); | |
1554 | return resultobj; | |
1555 | fail: | |
1556 | return NULL; | |
1557 | } | |
1558 | ||
1559 | ||
1560 | static PyObject *_wrap_MediaCtrl_SetPlaybackRate(PyObject *, PyObject *args, PyObject *kwargs) { | |
1561 | PyObject *resultobj; | |
1562 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1563 | double arg2 ; | |
1564 | bool result; | |
1565 | PyObject * obj0 = 0 ; | |
1566 | PyObject * obj1 = 0 ; | |
1567 | char *kwnames[] = { | |
1568 | (char *) "self",(char *) "dRate", NULL | |
1569 | }; | |
1570 | ||
1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames,&obj0,&obj1)) goto fail; | |
1572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1574 | arg2 = (double)SWIG_As_double(obj1); | |
1575 | if (PyErr_Occurred()) SWIG_fail; | |
1576 | { | |
1577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1578 | result = (bool)(arg1)->SetPlaybackRate(arg2); | |
1579 | ||
1580 | wxPyEndAllowThreads(__tstate); | |
1581 | if (PyErr_Occurred()) SWIG_fail; | |
1582 | } | |
1583 | { | |
1584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1585 | } | |
1586 | return resultobj; | |
1587 | fail: | |
1588 | return NULL; | |
1589 | } | |
1590 | ||
1591 | ||
1592 | static PyObject *_wrap_MediaCtrl_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
1593 | PyObject *resultobj; | |
1594 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1595 | wxLongLong arg2 ; | |
1596 | bool result; | |
1597 | PyObject * obj0 = 0 ; | |
1598 | PyObject * obj1 = 0 ; | |
1599 | char *kwnames[] = { | |
1600 | (char *) "self",(char *) "where", NULL | |
1601 | }; | |
1602 | ||
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MediaCtrl_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
1604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1606 | { | |
1607 | arg2 = PyLong_AsLongLong(obj1); | |
1608 | } | |
1609 | { | |
1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1611 | result = (bool)(arg1)->SetPosition(arg2); | |
1612 | ||
1613 | wxPyEndAllowThreads(__tstate); | |
1614 | if (PyErr_Occurred()) SWIG_fail; | |
1615 | } | |
1616 | { | |
1617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1618 | } | |
1619 | return resultobj; | |
1620 | fail: | |
1621 | return NULL; | |
1622 | } | |
1623 | ||
1624 | ||
1625 | static PyObject *_wrap_MediaCtrl_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
1626 | PyObject *resultobj; | |
1627 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1628 | wxLongLong result; | |
1629 | PyObject * obj0 = 0 ; | |
1630 | char *kwnames[] = { | |
1631 | (char *) "self", NULL | |
1632 | }; | |
1633 | ||
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetPosition",kwnames,&obj0)) goto fail; | |
1635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1637 | { | |
1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1639 | result = (arg1)->GetPosition(); | |
1640 | ||
1641 | wxPyEndAllowThreads(__tstate); | |
1642 | if (PyErr_Occurred()) SWIG_fail; | |
1643 | } | |
1644 | { | |
1645 | resultobj = PyLong_FromLongLong((&result)->GetValue()); | |
1646 | } | |
1647 | return resultobj; | |
1648 | fail: | |
1649 | return NULL; | |
1650 | } | |
1651 | ||
1652 | ||
1653 | static PyObject *_wrap_MediaCtrl_GetDuration(PyObject *, PyObject *args, PyObject *kwargs) { | |
1654 | PyObject *resultobj; | |
1655 | wxMediaCtrl *arg1 = (wxMediaCtrl *) 0 ; | |
1656 | wxLongLong result; | |
1657 | PyObject * obj0 = 0 ; | |
1658 | char *kwnames[] = { | |
1659 | (char *) "self", NULL | |
1660 | }; | |
1661 | ||
1662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MediaCtrl_GetDuration",kwnames,&obj0)) goto fail; | |
1663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMediaCtrl, | |
1664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1665 | { | |
1666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1667 | result = (arg1)->GetDuration(); | |
1668 | ||
1669 | wxPyEndAllowThreads(__tstate); | |
1670 | if (PyErr_Occurred()) SWIG_fail; | |
1671 | } | |
1672 | { | |
1673 | resultobj = PyLong_FromLongLong((&result)->GetValue()); | |
1674 | } | |
1675 | return resultobj; | |
1676 | fail: | |
1677 | return NULL; | |
1678 | } | |
1679 | ||
1680 | ||
1681 | static PyObject * MediaCtrl_swigregister(PyObject *, PyObject *args) { | |
1682 | PyObject *obj; | |
1683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1684 | SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl, obj); | |
1685 | Py_INCREF(obj); | |
1686 | return Py_BuildValue((char *)""); | |
1687 | } | |
1688 | static PyMethodDef SwigMethods[] = { | |
1689 | { (char *)"new_MediaEvent", (PyCFunction) _wrap_new_MediaEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1690 | { (char *)"MediaEvent_swigregister", MediaEvent_swigregister, METH_VARARGS, NULL }, | |
1691 | { (char *)"new_MediaCtrl", (PyCFunction) _wrap_new_MediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1692 | { (char *)"new_PreMediaCtrl", (PyCFunction) _wrap_new_PreMediaCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1693 | { (char *)"new_MediaCtrlFromURI", (PyCFunction) _wrap_new_MediaCtrlFromURI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1694 | { (char *)"MediaCtrl_CreateFromURI", (PyCFunction) _wrap_MediaCtrl_CreateFromURI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1695 | { (char *)"MediaCtrl_Create", (PyCFunction) _wrap_MediaCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1696 | { (char *)"MediaCtrl_Play", (PyCFunction) _wrap_MediaCtrl_Play, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1697 | { (char *)"MediaCtrl_Pause", (PyCFunction) _wrap_MediaCtrl_Pause, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1698 | { (char *)"MediaCtrl_Stop", (PyCFunction) _wrap_MediaCtrl_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1699 | { (char *)"MediaCtrl_Load", (PyCFunction) _wrap_MediaCtrl_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1700 | { (char *)"MediaCtrl_LoadFromURI", (PyCFunction) _wrap_MediaCtrl_LoadFromURI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1701 | { (char *)"MediaCtrl_Loop", (PyCFunction) _wrap_MediaCtrl_Loop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1702 | { (char *)"MediaCtrl_IsLooped", (PyCFunction) _wrap_MediaCtrl_IsLooped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1703 | { (char *)"MediaCtrl_GetState", (PyCFunction) _wrap_MediaCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1704 | { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_GetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1705 | { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction) _wrap_MediaCtrl_SetPlaybackRate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1706 | { (char *)"MediaCtrl_SetPosition", (PyCFunction) _wrap_MediaCtrl_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1707 | { (char *)"MediaCtrl_GetPosition", (PyCFunction) _wrap_MediaCtrl_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1708 | { (char *)"MediaCtrl_GetDuration", (PyCFunction) _wrap_MediaCtrl_GetDuration, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1709 | { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister, METH_VARARGS, NULL }, | |
1710 | { NULL, NULL, 0, NULL } | |
1711 | }; | |
1712 | ||
1713 | ||
1714 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
1715 | ||
1716 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
1717 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
1718 | } | |
1719 | static void *_p_wxMediaCtrlTo_p_wxControl(void *x) { | |
1720 | return (void *)((wxControl *) ((wxMediaCtrl *) x)); | |
1721 | } | |
1722 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
1723 | return (void *)((wxWindow *) ((wxControl *) x)); | |
1724 | } | |
1725 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
1726 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
1727 | } | |
1728 | static void *_p_wxMediaCtrlTo_p_wxWindow(void *x) { | |
1729 | return (void *)((wxWindow *) (wxControl *) ((wxMediaCtrl *) x)); | |
1730 | } | |
1731 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
1732 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
1733 | } | |
1734 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
1735 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
1736 | } | |
1737 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
1738 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
1739 | } | |
1740 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
1741 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
1742 | } | |
1743 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
1744 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
1745 | } | |
1746 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
1747 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
1748 | } | |
1749 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
1750 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
1751 | } | |
1752 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
1753 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
1754 | } | |
1755 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
1756 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
1757 | } | |
1758 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
1759 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
1760 | } | |
1761 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
1762 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
1763 | } | |
1764 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
1765 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
1766 | } | |
1767 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
1768 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
1769 | } | |
1770 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
1771 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
1772 | } | |
1773 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
1774 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
1775 | } | |
1776 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
1777 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
1778 | } | |
1779 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
1780 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
1781 | } | |
1782 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
1783 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
1784 | } | |
1785 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
1786 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
1787 | } | |
1788 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
1789 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
1790 | } | |
1791 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
1792 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
1793 | } | |
1794 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
1795 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
1796 | } | |
1797 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
1798 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
1799 | } | |
1800 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
1801 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
1802 | } | |
1803 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
1804 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
1805 | } | |
1806 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
1807 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
1808 | } | |
1809 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
1810 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
1811 | } | |
1812 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
1813 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
1814 | } | |
1815 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
1816 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
1817 | } | |
1818 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
1819 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
1820 | } | |
1821 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
1822 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
1823 | } | |
1824 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
1825 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
1826 | } | |
1827 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
1828 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
1829 | } | |
1830 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
1831 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
1832 | } | |
1833 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
1834 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
1835 | } | |
1836 | static void *_p_wxMediaEventTo_p_wxEvent(void *x) { | |
1837 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x)); | |
1838 | } | |
1839 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
1840 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
1841 | } | |
1842 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
1843 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
1844 | } | |
1845 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
1846 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
1847 | } | |
1848 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
1849 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
1850 | } | |
1851 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
1852 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
1853 | } | |
1854 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
1855 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
1856 | } | |
1857 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
1858 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
1859 | } | |
1860 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
1861 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
1862 | } | |
1863 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
1864 | return (void *)((wxObject *) ((wxSizer *) x)); | |
1865 | } | |
1866 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
1867 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
1868 | } | |
1869 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
1870 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
1871 | } | |
1872 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
1873 | return (void *)((wxObject *) ((wxEvent *) x)); | |
1874 | } | |
1875 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
1876 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
1877 | } | |
1878 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
1879 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
1880 | } | |
1881 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
1882 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
1883 | } | |
1884 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
1885 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
1886 | } | |
1887 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
1888 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
1889 | } | |
1890 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
1891 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
1892 | } | |
1893 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
1894 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
1895 | } | |
1896 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
1897 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
1898 | } | |
1899 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
1900 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
1901 | } | |
1902 | static void *_p_wxMediaCtrlTo_p_wxObject(void *x) { | |
1903 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxMediaCtrl *) x)); | |
1904 | } | |
1905 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
1906 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
1907 | } | |
1908 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
1909 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
1910 | } | |
1911 | static void *_p_wxMediaEventTo_p_wxObject(void *x) { | |
1912 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxMediaEvent *) x)); | |
1913 | } | |
1914 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
1915 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
1916 | } | |
1917 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
1918 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
1919 | } | |
1920 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
1921 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
1922 | } | |
1923 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
1924 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
1925 | } | |
1926 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
1927 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
1928 | } | |
1929 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
1930 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
1931 | } | |
1932 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
1933 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
1934 | } | |
1935 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
1936 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
1937 | } | |
1938 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
1939 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
1940 | } | |
1941 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
1942 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
1943 | } | |
1944 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
1945 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
1946 | } | |
1947 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
1948 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
1949 | } | |
1950 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
1951 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
1952 | } | |
1953 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
1954 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
1955 | } | |
1956 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
1957 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
1958 | } | |
1959 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
1960 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
1961 | } | |
1962 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
1963 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
1964 | } | |
1965 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
1966 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
1967 | } | |
1968 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
1969 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
1970 | } | |
1971 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
1972 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
1973 | } | |
1974 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
1975 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
1976 | } | |
1977 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
1978 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
1979 | } | |
1980 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
1981 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
1982 | } | |
1983 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
1984 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
1985 | } | |
1986 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
1987 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
1988 | } | |
1989 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
1990 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
1991 | } | |
1992 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
1993 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
1994 | } | |
1995 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
1996 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
1997 | } | |
1998 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
1999 | return (void *)((wxObject *) ((wxImage *) x)); | |
2000 | } | |
2001 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
2002 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
2003 | } | |
2004 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
2005 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2006 | } | |
2007 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
2008 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
2009 | } | |
2010 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
2011 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
2012 | } | |
2013 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
2014 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
2015 | } | |
2016 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
2017 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
2018 | } | |
2019 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
2020 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
2021 | } | |
2022 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
2023 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
2024 | } | |
2025 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
2026 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2027 | } | |
2028 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
2029 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
2030 | } | |
2031 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
2032 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
2033 | } | |
2034 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
2035 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
2036 | } | |
2037 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
2038 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
2039 | } | |
2040 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
2041 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
2042 | } | |
2043 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
2044 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
2045 | } | |
2046 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
2047 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
2048 | } | |
2049 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
2050 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
2051 | } | |
2052 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
2053 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
2054 | } | |
2055 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
2056 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
2057 | } | |
2058 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
2059 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
2060 | } | |
2061 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
2062 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
2063 | } | |
2064 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
2065 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
2066 | } | |
2067 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
2068 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
2069 | } | |
2070 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
2071 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
2072 | } | |
2073 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
2074 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
2075 | } | |
2076 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
2077 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
2078 | } | |
2079 | static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x) { | |
2080 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxMediaCtrl *) x)); | |
2081 | } | |
2082 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
2083 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
2084 | } | |
2085 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
2086 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
2087 | } | |
2088 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
2089 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
2090 | } | |
2091 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
2092 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
2093 | } | |
2094 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
2095 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
2096 | } | |
2097 | static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x) { | |
2098 | return (void *)((wxNotifyEvent *) ((wxMediaEvent *) x)); | |
2099 | } | |
2100 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
2101 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
2102 | } | |
2103 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
2104 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
2105 | } | |
2106 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
2107 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
2108 | } | |
2109 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
2110 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
2111 | } | |
2112 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
2113 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
2114 | } | |
2115 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
2116 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
2117 | } | |
2118 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
2119 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
2120 | } | |
2121 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
2122 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
2123 | } | |
2124 | static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x) { | |
2125 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxMediaEvent *) x)); | |
2126 | } | |
2127 | 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}}; | |
2128 | 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}}; | |
2129 | 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}}; | |
2130 | 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}}; | |
2131 | 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}}; | |
2132 | 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}}; | |
2133 | 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}}; | |
2134 | 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}}; | |
2135 | 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}}; | |
2136 | 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}}; | |
2137 | 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}}; | |
2138 | 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}}; | |
2139 | ||
2140 | static swig_type_info *swig_types_initial[] = { | |
2141 | _swigt__p_wxLongLong, | |
2142 | _swigt__p_wxControl, | |
2143 | _swigt__p_wxWindow, | |
2144 | _swigt__p_wxEvent, | |
2145 | _swigt__p_wxObject, | |
2146 | _swigt__p_wxEvtHandler, | |
2147 | _swigt__p_char, | |
2148 | _swigt__p_wxMediaCtrl, | |
2149 | _swigt__p_wxValidator, | |
2150 | _swigt__p_wxNotifyEvent, | |
2151 | _swigt__p_wxCommandEvent, | |
2152 | _swigt__p_wxMediaEvent, | |
2153 | 0 | |
2154 | }; | |
2155 | ||
2156 | ||
2157 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
2158 | ||
2159 | static swig_const_info swig_const_table[] = { | |
2160 | {0, 0, 0, 0.0, 0, 0}}; | |
2161 | ||
2162 | #ifdef __cplusplus | |
2163 | } | |
2164 | #endif | |
2165 | ||
2166 | #ifdef __cplusplus | |
2167 | extern "C" | |
2168 | #endif | |
2169 | SWIGEXPORT(void) SWIG_init(void) { | |
2170 | static PyObject *SWIG_globals = 0; | |
2171 | static int typeinit = 0; | |
2172 | PyObject *m, *d; | |
2173 | int i; | |
2174 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
2175 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
2176 | d = PyModule_GetDict(m); | |
2177 | ||
2178 | if (!typeinit) { | |
2179 | for (i = 0; swig_types_initial[i]; i++) { | |
2180 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
2181 | } | |
2182 | typeinit = 1; | |
2183 | } | |
2184 | SWIG_InstallConstants(d,swig_const_table); | |
2185 | ||
2186 | PyDict_SetItemString(d,"MEDIASTATE_STOPPED", SWIG_From_int((int)wxMEDIASTATE_STOPPED)); | |
2187 | PyDict_SetItemString(d,"MEDIASTATE_PAUSED", SWIG_From_int((int)wxMEDIASTATE_PAUSED)); | |
2188 | PyDict_SetItemString(d,"MEDIASTATE_PLAYING", SWIG_From_int((int)wxMEDIASTATE_PLAYING)); | |
2189 | PyDict_SetItemString(d,"MEDIATIMEFORMAT_TIME", SWIG_From_int((int)wxMEDIATIMEFORMAT_TIME)); | |
2190 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
2191 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIABACKEND_DIRECTSHOW",_wrap_MEDIABACKEND_DIRECTSHOW_get, _wrap_MEDIABACKEND_DIRECTSHOW_set); | |
2192 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIABACKEND_MCI",_wrap_MEDIABACKEND_MCI_get, _wrap_MEDIABACKEND_MCI_set); | |
2193 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIABACKEND_QUICKTIME",_wrap_MEDIABACKEND_QUICKTIME_get, _wrap_MEDIABACKEND_QUICKTIME_set); | |
2194 | SWIG_addvarlink(SWIG_globals,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get, _wrap_MediaCtrlNameStr_set); | |
2195 | PyDict_SetItemString(d, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED)); | |
2196 | PyDict_SetItemString(d, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP)); | |
2197 | ||
2198 | ||
2199 | } | |
2200 |