Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:

See also:


Construction and destruction


NewL(MAnimationDrawer *)

IMPORT_C static 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()

IMPORT_C virtual ~CAnimator();

Description

Destructor.

[Top]


Member functions


Start(const TAnimationConfig &)

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(TInt,TAny *,TInt)

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(CBitmapContext &)const

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(CBitmapContext &)const

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