]>
Commit | Line | Data |
---|---|---|
8ac8dba0 RD |
1 | # This file was created automatically by SWIG. |
2 | # Don't modify this file, modify the SWIG interface instead. | |
3 | ||
4 | """ | |
5 | Classes for a medai player control | |
6 | """ | |
7 | ||
8 | import _media | |
9 | ||
10 | import _core | |
11 | wx = _core | |
12 | __docfilter__ = wx.__DocFilter(globals()) | |
13 | MEDIASTATE_STOPPED = _media.MEDIASTATE_STOPPED | |
14 | MEDIASTATE_PAUSED = _media.MEDIASTATE_PAUSED | |
15 | MEDIASTATE_PLAYING = _media.MEDIASTATE_PLAYING | |
16 | MEDIATIMEFORMAT_TIME = _media.MEDIATIMEFORMAT_TIME | |
17 | class MediaEvent(_core.NotifyEvent): | |
18 | def __repr__(self): | |
19 | return "<%s.%s; proxy of C++ wxMediaEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
20 | def __init__(self, *args, **kwargs): | |
21 | """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MediaEvent""" | |
22 | newobj = _media.new_MediaEvent(*args, **kwargs) | |
23 | self.this = newobj.this | |
24 | self.thisown = 1 | |
25 | del newobj.thisown | |
26 | ||
27 | class MediaEventPtr(MediaEvent): | |
28 | def __init__(self, this): | |
29 | self.this = this | |
30 | if not hasattr(self,"thisown"): self.thisown = 0 | |
31 | self.__class__ = MediaEvent | |
32 | _media.MediaEvent_swigregister(MediaEventPtr) | |
33 | ||
34 | class MediaCtrl(_core.Control): | |
35 | def __repr__(self): | |
36 | return "<%s.%s; proxy of C++ wxMediaCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
37 | def __init__(self, *args, **kwargs): | |
38 | """ | |
39 | __init__(self, Window parent, int id=-1, String fileName=EmptyString, | |
40 | Point pos=DefaultPosition, Size size=DefaultSize, | |
41 | long style=0, String szBackend=EmptyString, | |
42 | Validator validator=DefaultValidator, | |
43 | String name=MediaCtrlNameStr) -> MediaCtrl | |
44 | """ | |
45 | newobj = _media.new_MediaCtrl(*args, **kwargs) | |
46 | self.this = newobj.this | |
47 | self.thisown = 1 | |
48 | del newobj.thisown | |
49 | self._setOORInfo(self) | |
50 | ||
51 | def CreateFromURI(*args, **kwargs): | |
52 | """ | |
53 | CreateFromURI(self, Window parent, int id=-1, String location=EmptyString, | |
54 | Point pos=DefaultPosition, Size size=DefaultSize, | |
55 | long style=0, String szBackend=EmptyString, | |
56 | Validator validator=DefaultValidator, | |
57 | String name=MediaCtrlNameStr) -> bool | |
58 | """ | |
59 | return _media.MediaCtrl_CreateFromURI(*args, **kwargs) | |
60 | ||
61 | def Create(*args, **kwargs): | |
62 | """ | |
63 | Create(self, Window parent, int id=-1, String fileName=EmptyString, | |
64 | Point pos=DefaultPosition, Size size=DefaultSize, | |
65 | long style=0, String szBackend=EmptyString, | |
66 | Validator validator=DefaultValidator, | |
67 | String name=MediaCtrlNameStr) -> bool | |
68 | """ | |
69 | return _media.MediaCtrl_Create(*args, **kwargs) | |
70 | ||
71 | def Play(*args, **kwargs): | |
72 | """Play(self) -> bool""" | |
73 | return _media.MediaCtrl_Play(*args, **kwargs) | |
74 | ||
75 | def Pause(*args, **kwargs): | |
76 | """Pause(self) -> bool""" | |
77 | return _media.MediaCtrl_Pause(*args, **kwargs) | |
78 | ||
79 | def Stop(*args, **kwargs): | |
80 | """Stop(self) -> bool""" | |
81 | return _media.MediaCtrl_Stop(*args, **kwargs) | |
82 | ||
83 | def Load(*args, **kwargs): | |
84 | """Load(self, String fileName) -> bool""" | |
85 | return _media.MediaCtrl_Load(*args, **kwargs) | |
86 | ||
87 | def LoadFromURI(*args, **kwargs): | |
88 | """LoadFromURI(self, String location) -> bool""" | |
89 | return _media.MediaCtrl_LoadFromURI(*args, **kwargs) | |
90 | ||
91 | def Loop(*args, **kwargs): | |
92 | """Loop(self, bool bLoop=True)""" | |
93 | return _media.MediaCtrl_Loop(*args, **kwargs) | |
94 | ||
95 | def IsLooped(*args, **kwargs): | |
96 | """IsLooped(self) -> bool""" | |
97 | return _media.MediaCtrl_IsLooped(*args, **kwargs) | |
98 | ||
99 | def GetState(*args, **kwargs): | |
100 | """GetState(self) -> int""" | |
101 | return _media.MediaCtrl_GetState(*args, **kwargs) | |
102 | ||
103 | def GetPlaybackRate(*args, **kwargs): | |
104 | """GetPlaybackRate(self) -> double""" | |
105 | return _media.MediaCtrl_GetPlaybackRate(*args, **kwargs) | |
106 | ||
107 | def SetPlaybackRate(*args, **kwargs): | |
108 | """SetPlaybackRate(self, double dRate) -> bool""" | |
109 | return _media.MediaCtrl_SetPlaybackRate(*args, **kwargs) | |
110 | ||
5cbf236d RD |
111 | def SetMediaPosition(*args, **kwargs): |
112 | """SetMediaPosition(self, wxLongLong where) -> bool""" | |
113 | return _media.MediaCtrl_SetMediaPosition(*args, **kwargs) | |
8ac8dba0 | 114 | |
5cbf236d | 115 | def GetMediaPosition(*args, **kwargs): |
8ac8dba0 | 116 | """ |
5cbf236d | 117 | GetMediaPosition(self) -> wxLongLong |
8ac8dba0 RD |
118 | |
119 | Get the window's position. | |
120 | """ | |
5cbf236d | 121 | return _media.MediaCtrl_GetMediaPosition(*args, **kwargs) |
8ac8dba0 | 122 | |
5cbf236d RD |
123 | def GetMediaDuration(*args, **kwargs): |
124 | """GetMediaDuration(self) -> wxLongLong""" | |
125 | return _media.MediaCtrl_GetMediaDuration(*args, **kwargs) | |
8ac8dba0 RD |
126 | |
127 | ||
128 | class MediaCtrlPtr(MediaCtrl): | |
129 | def __init__(self, this): | |
130 | self.this = this | |
131 | if not hasattr(self,"thisown"): self.thisown = 0 | |
132 | self.__class__ = MediaCtrl | |
133 | _media.MediaCtrl_swigregister(MediaCtrlPtr) | |
134 | cvar = _media.cvar | |
135 | MediaCtrlNameStr = cvar.MediaCtrlNameStr | |
136 | ||
137 | def PreMediaCtrl(*args, **kwargs): | |
138 | """PreMediaCtrl() -> MediaCtrl""" | |
139 | val = _media.new_PreMediaCtrl(*args, **kwargs) | |
140 | val.thisown = 1 | |
141 | return val | |
142 | ||
143 | def MediaCtrlFromURI(*args, **kwargs): | |
144 | """ | |
145 | MediaCtrlFromURI(Window parent, int id=-1, String location=EmptyString, | |
146 | Point pos=DefaultPosition, Size size=DefaultSize, | |
147 | long style=0, String szBackend=EmptyString, | |
148 | Validator validator=DefaultValidator, | |
149 | String name=MediaCtrlNameStr) -> MediaCtrl | |
150 | """ | |
151 | val = _media.new_MediaCtrlFromURI(*args, **kwargs) | |
152 | val.thisown = 1 | |
153 | self._setOORInfo(self) | |
154 | return val | |
155 | ||
156 | wxEVT_MEDIA_FINISHED = _media.wxEVT_MEDIA_FINISHED | |
157 | wxEVT_MEDIA_STOP = _media.wxEVT_MEDIA_STOP | |
158 | EVT_MEDIA_FINISHED = wx.PyEventBinder( wxEVT_MEDIA_FINISHED, 1) | |
159 | EVT_MEDIA_STOP = wx.PyEventBinder( wxEVT_MEDIA_STOP, 1) | |
160 | ||
161 |