]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/animate/msw/animate.py
1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 Simple animation player classes, including `GIFAnimationCtrl` for displaying
12 new_instancemethod
= new
.instancemethod
13 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
14 if (name
== "thisown"): return self
.this
.own(value
)
16 if type(value
).__name
__ == 'PySwigObject':
17 self
.__dict
__[name
] = value
19 method
= class_type
.__swig
_setmethods
__.get(name
,None)
20 if method
: return method(self
,value
)
21 if (not static
) or hasattr(self
,name
):
22 self
.__dict
__[name
] = value
24 raise AttributeError("You cannot add attributes to %s" % self
)
26 def _swig_setattr(self
,class_type
,name
,value
):
27 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
29 def _swig_getattr(self
,class_type
,name
):
30 if (name
== "thisown"): return self
.this
.own()
31 method
= class_type
.__swig
_getmethods
__.get(name
,None)
32 if method
: return method(self
)
33 raise AttributeError,name
36 try: strthis
= "proxy of " + self
.this
.__repr
__()
38 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
42 _object
= types
.ObjectType
44 except AttributeError:
50 def _swig_setattr_nondynamic_method(set):
51 def set_attr(self
,name
,value
):
52 if (name
== "thisown"): return self
.this
.own(value
)
53 if hasattr(self
,name
) or (name
== "this"):
56 raise AttributeError("You cannot add attributes to %s" % self
)
62 __docfilter__
= wx
._core
.__DocFilter
(globals())
63 ANIM_UNSPECIFIED
= _animate
.ANIM_UNSPECIFIED
64 ANIM_DONOTREMOVE
= _animate
.ANIM_DONOTREMOVE
65 ANIM_TOBACKGROUND
= _animate
.ANIM_TOBACKGROUND
66 ANIM_TOPREVIOUS
= _animate
.ANIM_TOPREVIOUS
67 class AnimationPlayer(_core
.Object
):
68 """Proxy of C++ AnimationPlayer class"""
69 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
71 def __init__(self
, *args
, **kwargs
):
72 """__init__(self, AnimationBase animation=None, bool destroyAnimation=False) -> AnimationPlayer"""
73 _animate
.AnimationPlayer_swiginit(self
,_animate
.new_AnimationPlayer(*args
, **kwargs
))
74 __swig_destroy__
= _animate
.delete_AnimationPlayer
75 __del__
= lambda self
: None;
76 def SetAnimation(*args
, **kwargs
):
77 """SetAnimation(self, AnimationBase animation, bool destroyAnimation=False)"""
78 return _animate
.AnimationPlayer_SetAnimation(*args
, **kwargs
)
80 def GetAnimation(*args
, **kwargs
):
81 """GetAnimation(self) -> AnimationBase"""
82 return _animate
.AnimationPlayer_GetAnimation(*args
, **kwargs
)
84 def SetDestroyAnimation(*args
, **kwargs
):
85 """SetDestroyAnimation(self, bool destroyAnimation)"""
86 return _animate
.AnimationPlayer_SetDestroyAnimation(*args
, **kwargs
)
88 def GetDestroyAnimation(*args
, **kwargs
):
89 """GetDestroyAnimation(self) -> bool"""
90 return _animate
.AnimationPlayer_GetDestroyAnimation(*args
, **kwargs
)
92 def SetCurrentFrame(*args
, **kwargs
):
93 """SetCurrentFrame(self, int currentFrame)"""
94 return _animate
.AnimationPlayer_SetCurrentFrame(*args
, **kwargs
)
96 def GetCurrentFrame(*args
, **kwargs
):
97 """GetCurrentFrame(self) -> int"""
98 return _animate
.AnimationPlayer_GetCurrentFrame(*args
, **kwargs
)
100 def SetWindow(*args
, **kwargs
):
101 """SetWindow(self, Window window)"""
102 return _animate
.AnimationPlayer_SetWindow(*args
, **kwargs
)
104 def GetWindow(*args
, **kwargs
):
105 """GetWindow(self) -> Window"""
106 return _animate
.AnimationPlayer_GetWindow(*args
, **kwargs
)
108 def SetPosition(*args
, **kwargs
):
109 """SetPosition(self, Point pos)"""
110 return _animate
.AnimationPlayer_SetPosition(*args
, **kwargs
)
112 def GetPosition(*args
, **kwargs
):
113 """GetPosition(self) -> Point"""
114 return _animate
.AnimationPlayer_GetPosition(*args
, **kwargs
)
116 def SetLooped(*args
, **kwargs
):
117 """SetLooped(self, bool looped)"""
118 return _animate
.AnimationPlayer_SetLooped(*args
, **kwargs
)
120 def GetLooped(*args
, **kwargs
):
121 """GetLooped(self) -> bool"""
122 return _animate
.AnimationPlayer_GetLooped(*args
, **kwargs
)
124 def HasAnimation(*args
, **kwargs
):
125 """HasAnimation(self) -> bool"""
126 return _animate
.AnimationPlayer_HasAnimation(*args
, **kwargs
)
128 def IsPlaying(*args
, **kwargs
):
129 """IsPlaying(self) -> bool"""
130 return _animate
.AnimationPlayer_IsPlaying(*args
, **kwargs
)
132 def UseBackgroundColour(*args
, **kwargs
):
133 """UseBackgroundColour(self, bool useBackground)"""
134 return _animate
.AnimationPlayer_UseBackgroundColour(*args
, **kwargs
)
136 def UsingBackgroundColour(*args
, **kwargs
):
137 """UsingBackgroundColour(self) -> bool"""
138 return _animate
.AnimationPlayer_UsingBackgroundColour(*args
, **kwargs
)
140 def SetCustomBackgroundColour(*args
, **kwargs
):
141 """SetCustomBackgroundColour(self, Colour col, bool useCustomBackgroundColour=True)"""
142 return _animate
.AnimationPlayer_SetCustomBackgroundColour(*args
, **kwargs
)
144 def UsingCustomBackgroundColour(*args
, **kwargs
):
145 """UsingCustomBackgroundColour(self) -> bool"""
146 return _animate
.AnimationPlayer_UsingCustomBackgroundColour(*args
, **kwargs
)
148 def GetCustomBackgroundColour(*args
, **kwargs
):
149 """GetCustomBackgroundColour(self) -> Colour"""
150 return _animate
.AnimationPlayer_GetCustomBackgroundColour(*args
, **kwargs
)
152 def UseParentBackground(*args
, **kwargs
):
153 """UseParentBackground(self, bool useParent)"""
154 return _animate
.AnimationPlayer_UseParentBackground(*args
, **kwargs
)
156 def UsingParentBackground(*args
, **kwargs
):
157 """UsingParentBackground(self) -> bool"""
158 return _animate
.AnimationPlayer_UsingParentBackground(*args
, **kwargs
)
160 def Play(*args
, **kwargs
):
161 """Play(self, Window window, Point pos=wxPoint(0, 0), bool looped=True) -> bool"""
162 return _animate
.AnimationPlayer_Play(*args
, **kwargs
)
164 def Build(*args
, **kwargs
):
165 """Build(self) -> bool"""
166 return _animate
.AnimationPlayer_Build(*args
, **kwargs
)
168 def Stop(*args
, **kwargs
):
170 return _animate
.AnimationPlayer_Stop(*args
, **kwargs
)
172 def Draw(*args
, **kwargs
):
173 """Draw(self, DC dc)"""
174 return _animate
.AnimationPlayer_Draw(*args
, **kwargs
)
176 def GetFrameCount(*args
, **kwargs
):
177 """GetFrameCount(self) -> int"""
178 return _animate
.AnimationPlayer_GetFrameCount(*args
, **kwargs
)
180 def GetFrame(*args
, **kwargs
):
181 """GetFrame(self, int i) -> Image"""
182 return _animate
.AnimationPlayer_GetFrame(*args
, **kwargs
)
184 def GetDisposalMethod(*args
, **kwargs
):
185 """GetDisposalMethod(self, int i) -> int"""
186 return _animate
.AnimationPlayer_GetDisposalMethod(*args
, **kwargs
)
188 def GetFrameRect(*args
, **kwargs
):
189 """GetFrameRect(self, int i) -> Rect"""
190 return _animate
.AnimationPlayer_GetFrameRect(*args
, **kwargs
)
192 def GetDelay(*args
, **kwargs
):
193 """GetDelay(self, int i) -> int"""
194 return _animate
.AnimationPlayer_GetDelay(*args
, **kwargs
)
196 def GetLogicalScreenSize(*args
, **kwargs
):
197 """GetLogicalScreenSize(self) -> Size"""
198 return _animate
.AnimationPlayer_GetLogicalScreenSize(*args
, **kwargs
)
200 def GetBackgroundColour(*args
, **kwargs
):
201 """GetBackgroundColour(self, Colour col) -> bool"""
202 return _animate
.AnimationPlayer_GetBackgroundColour(*args
, **kwargs
)
204 def GetTransparentColour(*args
, **kwargs
):
205 """GetTransparentColour(self, Colour col) -> bool"""
206 return _animate
.AnimationPlayer_GetTransparentColour(*args
, **kwargs
)
208 def PlayFrame(*args
, **kwargs
):
209 """PlayFrame(self, int frame, Window window, Point pos) -> bool"""
210 return _animate
.AnimationPlayer_PlayFrame(*args
, **kwargs
)
212 def PlayNextFrame(*args
, **kwargs
):
213 """PlayNextFrame(self) -> bool"""
214 return _animate
.AnimationPlayer_PlayNextFrame(*args
, **kwargs
)
216 def DrawFrame(*args
, **kwargs
):
217 """DrawFrame(self, int frame, DC dc, Point pos)"""
218 return _animate
.AnimationPlayer_DrawFrame(*args
, **kwargs
)
220 def DrawBackground(*args
, **kwargs
):
221 """DrawBackground(self, DC dc, Point pos, Colour colour)"""
222 return _animate
.AnimationPlayer_DrawBackground(*args
, **kwargs
)
224 def ClearCache(*args
, **kwargs
):
225 """ClearCache(self)"""
226 return _animate
.AnimationPlayer_ClearCache(*args
, **kwargs
)
228 def SaveBackground(*args
, **kwargs
):
229 """SaveBackground(self, Rect rect)"""
230 return _animate
.AnimationPlayer_SaveBackground(*args
, **kwargs
)
232 def GetBackingStore(*args
, **kwargs
):
233 """GetBackingStore(self) -> Bitmap"""
234 return _animate
.AnimationPlayer_GetBackingStore(*args
, **kwargs
)
236 _animate
.AnimationPlayer_swigregister(AnimationPlayer
)
238 AnimationControlNameStr
= cvar
.AnimationControlNameStr
240 class AnimationBase(_core
.Object
):
241 """Proxy of C++ AnimationBase class"""
242 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
243 def __init__(self
): raise AttributeError, "No constructor defined"
244 __repr__
= _swig_repr
245 __swig_destroy__
= _animate
.delete_AnimationBase
246 __del__
= lambda self
: None;
247 def GetFrameCount(*args
, **kwargs
):
248 """GetFrameCount(self) -> int"""
249 return _animate
.AnimationBase_GetFrameCount(*args
, **kwargs
)
251 def GetFrame(*args
, **kwargs
):
252 """GetFrame(self, int i) -> Image"""
253 return _animate
.AnimationBase_GetFrame(*args
, **kwargs
)
255 def GetDisposalMethod(*args
, **kwargs
):
256 """GetDisposalMethod(self, int i) -> int"""
257 return _animate
.AnimationBase_GetDisposalMethod(*args
, **kwargs
)
259 def GetFrameRect(*args
, **kwargs
):
260 """GetFrameRect(self, int i) -> Rect"""
261 return _animate
.AnimationBase_GetFrameRect(*args
, **kwargs
)
263 def GetDelay(*args
, **kwargs
):
264 """GetDelay(self, int i) -> int"""
265 return _animate
.AnimationBase_GetDelay(*args
, **kwargs
)
267 def GetLogicalScreenSize(*args
, **kwargs
):
268 """GetLogicalScreenSize(self) -> Size"""
269 return _animate
.AnimationBase_GetLogicalScreenSize(*args
, **kwargs
)
271 def GetBackgroundColour(*args
, **kwargs
):
272 """GetBackgroundColour(self, Colour col) -> bool"""
273 return _animate
.AnimationBase_GetBackgroundColour(*args
, **kwargs
)
275 def GetTransparentColour(*args
, **kwargs
):
276 """GetTransparentColour(self, Colour col) -> bool"""
277 return _animate
.AnimationBase_GetTransparentColour(*args
, **kwargs
)
279 def IsValid(*args
, **kwargs
):
280 """IsValid(self) -> bool"""
281 return _animate
.AnimationBase_IsValid(*args
, **kwargs
)
283 def LoadFile(*args
, **kwargs
):
284 """LoadFile(self, String filename) -> bool"""
285 return _animate
.AnimationBase_LoadFile(*args
, **kwargs
)
287 _animate
.AnimationBase_swigregister(AnimationBase
)
289 class GIFAnimation(AnimationBase
):
290 """Proxy of C++ GIFAnimation class"""
291 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
292 __repr__
= _swig_repr
293 def __init__(self
, *args
, **kwargs
):
294 """__init__(self) -> GIFAnimation"""
295 _animate
.GIFAnimation_swiginit(self
,_animate
.new_GIFAnimation(*args
, **kwargs
))
296 __swig_destroy__
= _animate
.delete_GIFAnimation
297 __del__
= lambda self
: None;
298 _animate
.GIFAnimation_swigregister(GIFAnimation
)
300 AN_FIT_ANIMATION
= _animate
.AN_FIT_ANIMATION
301 class GIFAnimationCtrl(_core
.Control
):
302 """Proxy of C++ GIFAnimationCtrl class"""
303 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
304 __repr__
= _swig_repr
305 def __init__(self
, *args
, **kwargs
):
307 __init__(self, Window parent, int id=-1, String filename=EmptyString,
308 Point pos=DefaultPosition, Size size=DefaultSize,
309 long style=wxAN_FIT_ANIMATION|wxNO_BORDER,
310 String name=AnimationControlNameStr) -> GIFAnimationCtrl
312 _animate
.GIFAnimationCtrl_swiginit(self
,_animate
.new_GIFAnimationCtrl(*args
, **kwargs
))
313 self
._setOORInfo
(self
)
315 def Create(*args
, **kwargs
):
317 Create(self, Window parent, int id=-1, String filename=EmptyString,
318 Point pos=DefaultPosition, Size size=DefaultSize,
319 long style=wxAN_FIT_ANIMATION|wxNO_BORDER,
320 String name=AnimationControlNameStr) -> bool
322 return _animate
.GIFAnimationCtrl_Create(*args
, **kwargs
)
324 def LoadFile(*args
, **kwargs
):
325 """LoadFile(self, String filename=EmptyString) -> bool"""
326 return _animate
.GIFAnimationCtrl_LoadFile(*args
, **kwargs
)
328 def Play(*args
, **kwargs
):
329 """Play(self, bool looped=True) -> bool"""
330 return _animate
.GIFAnimationCtrl_Play(*args
, **kwargs
)
332 def Stop(*args
, **kwargs
):
334 return _animate
.GIFAnimationCtrl_Stop(*args
, **kwargs
)
336 def FitToAnimation(*args
, **kwargs
):
337 """FitToAnimation(self)"""
338 return _animate
.GIFAnimationCtrl_FitToAnimation(*args
, **kwargs
)
340 def IsPlaying(*args
, **kwargs
):
341 """IsPlaying(self) -> bool"""
342 return _animate
.GIFAnimationCtrl_IsPlaying(*args
, **kwargs
)
344 def GetPlayer(*args
, **kwargs
):
345 """GetPlayer(self) -> AnimationPlayer"""
346 return _animate
.GIFAnimationCtrl_GetPlayer(*args
, **kwargs
)
348 def GetAnimation(*args
, **kwargs
):
349 """GetAnimation(self) -> AnimationBase"""
350 return _animate
.GIFAnimationCtrl_GetAnimation(*args
, **kwargs
)
352 def GetFilename(*args
, **kwargs
):
353 """GetFilename(self) -> String"""
354 return _animate
.GIFAnimationCtrl_GetFilename(*args
, **kwargs
)
356 def SetFilename(*args
, **kwargs
):
357 """SetFilename(self, String filename)"""
358 return _animate
.GIFAnimationCtrl_SetFilename(*args
, **kwargs
)
360 _animate
.GIFAnimationCtrl_swigregister(GIFAnimationCtrl
)
362 def PreGIFAnimationCtrl(*args
, **kwargs
):
363 """PreGIFAnimationCtrl() -> GIFAnimationCtrl"""
364 val
= _animate
.new_PreGIFAnimationCtrl(*args
, **kwargs
)