|
||
class CAnimator : public CBase;
Pure virtual base class for animators.
Each data type supported by the animation framework is represented by an animator, which handles the data interpretation, timing and control. Each animator is provided in the form of an ECOM plugin.
You do not need to instatiate animators in a client application. This is handled by the animation classes.
CBase
-
Base class for all classes to be instantiated on the heap.
CAnimator
- Pure virtual base class for animators.
Defined in CAnimator
:
DataEventL(TInt,TAny *,TInt)
Receives data from a data provider. The mechanism by which data is actually pass...Draw(CBitmapContext &)const
Called from the renderer and draws the animation. DrawMask(CBitmapContext &)const
Called from the renderer and draws the mask for the animation. Hold()
Puts an animation on hold. NewL(MAnimationDrawer *)
Locates and constructs an animator.Pause()
Pauses the animation. Resume()
Resumes a paused animation. Start(const TAnimationConfig &)
Starts the animation running. Stop()
Stops the animation and rewinds it. Unhold()
Restores a held animation and brings it back into synch. iDtor_ID_Key
Animator ECOM Plugin identifier iLoop
Data ~CAnimator()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...CAnimation
Pure virtual base class for animations.IMPORT_C static CAnimator* NewL(MAnimationDrawer *aRenderer);
Locates and constructs an animator.
The MAnimationDrawer
passed as an argument returns a string through the function AnimatorDataType. If a matching animator plugin can be found
then it will be loaded and constructed.
|
|
virtual void Start(const TAnimationConfig &aConfig)=0;
Starts the animation running.
|
TAnimationConfig
These are passed to animator objects when an animation is started and provide so...virtual void DataEventL(TInt aEvent, TAny *aData, TInt aDataSize)=0;
Receives data from a data provider. The mechanism by which data is actually passed depends on the animation type.
|
MAnimationDataProviderObserver
Interface from a data provider to an animationvirtual void Draw(CBitmapContext &aBitmapContext) const=0;
Called from the renderer and draws the animation.
|
virtual void DrawMask(CBitmapContext &aBitmapContext) const=0;
Called from the renderer and draws the mask for the animation.
|
protected: TInt iLoop;
Data