]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/media.py
buttonbar.cpp/.h must be in GUI_CMN_SRC/HDR as toolbkg.cpp which is in common depends...
[wxWidgets.git] / wxPython / src / msw / media.py
CommitLineData
554f62e9 1# This file was created automatically by SWIG 1.3.29.
8ac8dba0
RD
2# Don't modify this file, modify the SWIG interface instead.
3
4"""
093d3ff1 5Classes for a media player control
8ac8dba0
RD
6"""
7
8import _media
554f62e9
RD
9import new
10new_instancemethod = new.instancemethod
093d3ff1 11def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
554f62e9 12 if (name == "thisown"): return self.this.own(value)
093d3ff1 13 if (name == "this"):
554f62e9
RD
14 if type(value).__name__ == 'PySwigObject':
15 self.__dict__[name] = value
093d3ff1
RD
16 return
17 method = class_type.__swig_setmethods__.get(name,None)
18 if method: return method(self,value)
554f62e9 19 if (not static) or hasattr(self,name):
093d3ff1
RD
20 self.__dict__[name] = value
21 else:
22 raise AttributeError("You cannot add attributes to %s" % self)
23
24def _swig_setattr(self,class_type,name,value):
25 return _swig_setattr_nondynamic(self,class_type,name,value,0)
26
27def _swig_getattr(self,class_type,name):
554f62e9 28 if (name == "thisown"): return self.this.own()
093d3ff1
RD
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
554f62e9
RD
33def _swig_repr(self):
34 try: strthis = "proxy of " + self.this.__repr__()
35 except: strthis = ""
36 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
37
093d3ff1
RD
38import types
39try:
40 _object = types.ObjectType
41 _newclass = 1
42except AttributeError:
43 class _object : pass
44 _newclass = 0
45del types
46
47
48def _swig_setattr_nondynamic_method(set):
49 def set_attr(self,name,value):
554f62e9
RD
50 if (name == "thisown"): return self.this.own(value)
51 if hasattr(self,name) or (name == "this"):
093d3ff1
RD
52 set(self,name,value)
53 else:
54 raise AttributeError("You cannot add attributes to %s" % self)
55 return set_attr
56
57
8ac8dba0
RD
58import _core
59wx = _core
60__docfilter__ = wx.__DocFilter(globals())
61MEDIASTATE_STOPPED = _media.MEDIASTATE_STOPPED
62MEDIASTATE_PAUSED = _media.MEDIASTATE_PAUSED
63MEDIASTATE_PLAYING = _media.MEDIASTATE_PLAYING
b1fcee84
RD
64MEDIACTRLPLAYERCONTROLS_NONE = _media.MEDIACTRLPLAYERCONTROLS_NONE
65MEDIACTRLPLAYERCONTROLS_STEP = _media.MEDIACTRLPLAYERCONTROLS_STEP
66MEDIACTRLPLAYERCONTROLS_VOLUME = _media.MEDIACTRLPLAYERCONTROLS_VOLUME
67MEDIACTRLPLAYERCONTROLS_DEFAULT = _media.MEDIACTRLPLAYERCONTROLS_DEFAULT
8ac8dba0 68class MediaEvent(_core.NotifyEvent):
093d3ff1 69 """Proxy of C++ MediaEvent class"""
554f62e9
RD
70 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
71 __repr__ = _swig_repr
72 def __init__(self, *args, **kwargs):
8ac8dba0 73 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MediaEvent"""
554f62e9
RD
74 _media.MediaEvent_swiginit(self,_media.new_MediaEvent(*args, **kwargs))
75MediaEvent_swigregister = _media.MediaEvent_swigregister
76MediaEvent_swigregister(MediaEvent)
b1fcee84
RD
77cvar = _media.cvar
78MEDIABACKEND_DIRECTSHOW = cvar.MEDIABACKEND_DIRECTSHOW
79MEDIABACKEND_MCI = cvar.MEDIABACKEND_MCI
80MEDIABACKEND_QUICKTIME = cvar.MEDIABACKEND_QUICKTIME
81MEDIABACKEND_GSTREAMER = cvar.MEDIABACKEND_GSTREAMER
554f62e9
RD
82MEDIABACKEND_REALPLAYER = cvar.MEDIABACKEND_REALPLAYER
83MEDIABACKEND_WMP10 = cvar.MEDIABACKEND_WMP10
8ac8dba0
RD
84
85class MediaCtrl(_core.Control):
093d3ff1 86 """Proxy of C++ MediaCtrl class"""
554f62e9
RD
87 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
88 __repr__ = _swig_repr
89 def __init__(self, *args, **kwargs):
8ac8dba0
RD
90 """
91 __init__(self, Window parent, int id=-1, String fileName=EmptyString,
92 Point pos=DefaultPosition, Size size=DefaultSize,
93 long style=0, String szBackend=EmptyString,
94 Validator validator=DefaultValidator,
95 String name=MediaCtrlNameStr) -> MediaCtrl
96 """
554f62e9 97 _media.MediaCtrl_swiginit(self,_media.new_MediaCtrl(*args, **kwargs))
8ac8dba0
RD
98 self._setOORInfo(self)
99
8ac8dba0
RD
100 def Create(*args, **kwargs):
101 """
102 Create(self, Window parent, int id=-1, String fileName=EmptyString,
103 Point pos=DefaultPosition, Size size=DefaultSize,
104 long style=0, String szBackend=EmptyString,
105 Validator validator=DefaultValidator,
106 String name=MediaCtrlNameStr) -> bool
107 """
108 return _media.MediaCtrl_Create(*args, **kwargs)
109
110 def Play(*args, **kwargs):
111 """Play(self) -> bool"""
112 return _media.MediaCtrl_Play(*args, **kwargs)
113
114 def Pause(*args, **kwargs):
115 """Pause(self) -> bool"""
116 return _media.MediaCtrl_Pause(*args, **kwargs)
117
118 def Stop(*args, **kwargs):
119 """Stop(self) -> bool"""
120 return _media.MediaCtrl_Stop(*args, **kwargs)
121
8ac8dba0
RD
122 def GetState(*args, **kwargs):
123 """GetState(self) -> int"""
124 return _media.MediaCtrl_GetState(*args, **kwargs)
125
126 def GetPlaybackRate(*args, **kwargs):
127 """GetPlaybackRate(self) -> double"""
128 return _media.MediaCtrl_GetPlaybackRate(*args, **kwargs)
129
130 def SetPlaybackRate(*args, **kwargs):
131 """SetPlaybackRate(self, double dRate) -> bool"""
132 return _media.MediaCtrl_SetPlaybackRate(*args, **kwargs)
133
093d3ff1
RD
134 def Seek(*args, **kwargs):
135 """Seek(self, wxFileOffset where, int mode=FromStart) -> wxFileOffset"""
136 return _media.MediaCtrl_Seek(*args, **kwargs)
8ac8dba0 137
093d3ff1
RD
138 def Tell(*args, **kwargs):
139 """Tell(self) -> wxFileOffset"""
140 return _media.MediaCtrl_Tell(*args, **kwargs)
8ac8dba0 141
093d3ff1
RD
142 def Length(*args, **kwargs):
143 """Length(self) -> wxFileOffset"""
144 return _media.MediaCtrl_Length(*args, **kwargs)
8ac8dba0 145
9d7dfdff
RD
146 def GetVolume(*args, **kwargs):
147 """GetVolume(self) -> double"""
148 return _media.MediaCtrl_GetVolume(*args, **kwargs)
149
150 def SetVolume(*args, **kwargs):
151 """SetVolume(self, double dVolume) -> bool"""
152 return _media.MediaCtrl_SetVolume(*args, **kwargs)
153
154 def ShowPlayerControls(*args, **kwargs):
b1fcee84 155 """ShowPlayerControls(self, int flags=MEDIACTRLPLAYERCONTROLS_DEFAULT) -> bool"""
9d7dfdff
RD
156 return _media.MediaCtrl_ShowPlayerControls(*args, **kwargs)
157
158 def Load(*args, **kwargs):
159 """Load(self, String fileName) -> bool"""
160 return _media.MediaCtrl_Load(*args, **kwargs)
161
162 def LoadURI(*args, **kwargs):
163 """LoadURI(self, String fileName) -> bool"""
164 return _media.MediaCtrl_LoadURI(*args, **kwargs)
165
166 def LoadURIWithProxy(*args, **kwargs):
167 """LoadURIWithProxy(self, String fileName, String proxy) -> bool"""
168 return _media.MediaCtrl_LoadURIWithProxy(*args, **kwargs)
169
170 LoadFromURI = LoadURI
554f62e9
RD
171 def GetDownloadProgress(*args, **kwargs):
172 """GetDownloadProgress(self) -> wxFileOffset"""
173 return _media.MediaCtrl_GetDownloadProgress(*args, **kwargs)
174
175 def GetDownloadTotal(*args, **kwargs):
176 """GetDownloadTotal(self) -> wxFileOffset"""
177 return _media.MediaCtrl_GetDownloadTotal(*args, **kwargs)
8ac8dba0 178
554f62e9
RD
179MediaCtrl_swigregister = _media.MediaCtrl_swigregister
180MediaCtrl_swigregister(MediaCtrl)
8ac8dba0
RD
181MediaCtrlNameStr = cvar.MediaCtrlNameStr
182
183def PreMediaCtrl(*args, **kwargs):
184 """PreMediaCtrl() -> MediaCtrl"""
185 val = _media.new_PreMediaCtrl(*args, **kwargs)
8ac8dba0
RD
186 return val
187
8ac8dba0
RD
188wxEVT_MEDIA_FINISHED = _media.wxEVT_MEDIA_FINISHED
189wxEVT_MEDIA_STOP = _media.wxEVT_MEDIA_STOP
7449af73 190wxEVT_MEDIA_LOADED = _media.wxEVT_MEDIA_LOADED
554f62e9
RD
191wxEVT_MEDIA_STATECHANGED = _media.wxEVT_MEDIA_STATECHANGED
192wxEVT_MEDIA_PLAY = _media.wxEVT_MEDIA_PLAY
193wxEVT_MEDIA_PAUSE = _media.wxEVT_MEDIA_PAUSE
194EVT_MEDIA_FINISHED = wx.PyEventBinder( wxEVT_MEDIA_FINISHED, 1)
195EVT_MEDIA_STOP = wx.PyEventBinder( wxEVT_MEDIA_STOP, 1)
196EVT_MEDIA_LOADED = wx.PyEventBinder( wxEVT_MEDIA_LOADED, 1)
197EVT_MEDIA_STATECHANGED = wx.PyEventBinder( wxEVT_MEDIA_STATECHANGED, 1)
198EVT_MEDIA_PLAY = wx.PyEventBinder( wxEVT_MEDIA_PLAY, 1)
199EVT_MEDIA_PAUSE = wx.PyEventBinder( wxEVT_MEDIA_PAUSE, 1)
7449af73 200
8ac8dba0
RD
201
202