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.
CAnimation
Public Member Functions | |
---|---|
~CAnimator () | |
void | DataEventL ( TInt , TAny *, TInt ) |
void | Draw ( CBitmapContext &) |
void | DrawMask ( CBitmapContext &) |
void | Hold () |
IMPORT_C CAnimator * | NewL ( MAnimationDrawer *) |
void | Pause () |
void | Resume () |
void | Start (const TAnimationConfig &) |
void | Stop () |
void | Unhold () |
Protected Attributes | |
---|---|
TUid | iDtor_ID_Key |
TInt | iLoop |
void | DataEventL | ( | TInt | aEvent, |
TAny * | aData, | |||
TInt | aDataSize | |||
) | [pure virtual] |
Receives data from a data provider. The mechanism by which data is actually passed depends on the animation type.
void | Draw | ( | CBitmapContext & | aBitmapContext | ) | const [pure virtual] |
Called from the renderer and draws the animation.
CBitmapContext & aBitmapContext | The context on which the animation will be drawn |
void | DrawMask | ( | CBitmapContext & | aBitmapContext | ) | const [pure virtual] |
Called from the renderer and draws the mask for the animation.
CBitmapContext & aBitmapContext | The context on which the mask will be drawn |
IMPORT_C CAnimator * | NewL | ( | MAnimationDrawer * | aRenderer | ) | [static] |
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.
MAnimationDrawer * aRenderer | The MAnimationDrawer implementation for the animator to use. |
void | Start | ( | const TAnimationConfig & | aConfig | ) | [pure virtual] |
Starts the animation running. TAnimationConfig
const TAnimationConfig & aConfig | Runtime settings |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.