Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: Animator.h
Link against: animationshared.lib

Class CAnimator

class CAnimator : public CBase;

Description

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.

Derivation

Members

Defined in CAnimator:
DataEventL(), Draw(), DrawMask(), Hold(), NewL(), Pause(), Resume(), Start(), Stop(), Unhold(), iDtor_ID_Key, iLoop, ~CAnimator()

Inherited from CBase:
Delete(), Extension_(), operator new()

See also:


Construction and destruction


NewL()

static IMPORT_C CAnimator *NewL(MAnimationDrawer *aRenderer);

Description

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.

Parameters

MAnimationDrawer *aRenderer

The MAnimationDrawer implementation for the animator to use.

Return value

CAnimator *

The new animator.


~CAnimator()

virtual IMPORT_C ~CAnimator();

Description

Destructor.

[Top]


Member functions


Start()

virtual void Start(const TAnimationConfig &aConfig)=0;

Description

Starts the animation running.

Parameters

const TAnimationConfig &aConfig

Runtime settings

See also:


Stop()

virtual void Stop()=0;

Description

Stops the animation and rewinds it.


Pause()

virtual void Pause()=0;

Description

Pauses the animation.


Resume()

virtual void Resume()=0;

Description

Resumes a paused animation.


Hold()

virtual void Hold()=0;

Description

Puts an animation on hold.


Unhold()

virtual void Unhold()=0;

Description

Restores a held animation and brings it back into synch.


DataEventL()

virtual void DataEventL(TInt aEvent, TAny *aData, TInt aDataSize)=0;

Description

Receives data from a data provider. The mechanism by which data is actually passed depends on the animation type.

Parameters

TInt aEvent

The event identifier

TAny *aData

A pointer to any data for the event

TInt aDataSize

The length of the data in aData

See also:


Draw()

virtual void Draw(CBitmapContext &aBitmapContext) const=0;

Description

Called from the renderer and draws the animation.

Parameters

CBitmapContext &aBitmapContext

The context on which the animation will be drawn


DrawMask()

virtual void DrawMask(CBitmapContext &aBitmapContext) const=0;

Description

Called from the renderer and draws the mask for the animation.

Parameters

CBitmapContext &aBitmapContext

The context on which the mask will be drawn

[Top]


Member data


iDtor_ID_Key

protected: TUid iDtor_ID_Key;

Description

Animator ECOM Plugin identifier


iLoop

protected: TInt iLoop;

Description

Data