CAnimation Class Reference

#include <mw/animation.h>

class CAnimation : public CBase

Inherits from

Public Member Functions
pure virtual voidFreeze()
pure virtual voidHold()
pure virtual voidPause()
pure virtual voidResume()
pure virtual voidSetPosition(const TPoint &)
pure virtual voidStart(const TAnimationConfig &)
pure virtual voidStop()
pure virtual voidUnfreeze()
pure virtual voidUnhold()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()

Detailed Description

Pure virtual base class for animations.

This defines an abstracted interface between a client application and an animation. Most of the implementation details are handled by an animator plugin. The source of the animation data and its interpretation are usually handled by a data provider.

See also: CAnimationDataProvider CAnimator MAnimationObserver

Member Function Documentation

Freeze ( )

voidFreeze()[pure virtual]

Causes whatever ticker this animation provides to its animator to be frozen untill a corresponding call to unfreeze.

You should not normally need to call this function.

See also: Unfreeze()

Hold ( )

voidHold()[pure virtual]

Puts an animation on hold, which is similar to pause, but keeps track of the time steps passing and catches up when resumed. This can be used to temporarily cease processing an animation without it getting out of step with others.

Pause ( )

voidPause()[pure virtual]

Causes the animation to stop, but without rewinding.

Resume ( )

voidResume()[pure virtual]

Causes a paused animation to continue from where it left off.

SetPosition ( const TPoint & )

voidSetPosition(const TPoint &aPoint)[pure virtual]

Sets the coordinates of the animation. This generally refers to the top left corner of the total area the animation covers.

Parameters
aPointThe new coordinates of the animation (usually the top left corner)

Start ( const TAnimationConfig & )

voidStart(const TAnimationConfig &aConfig)[pure virtual]

Causes the animation to start, at the first time step or logical equivalent. If the animation is already running, it rewinds.

See also: TAnimationConfig

Parameters
aConfigSpecifies run time attributes of the animation.

Stop ( )

voidStop()[pure virtual]

Causes the animation to stop, and rewinds to the first frame.

Unfreeze ( )

voidUnfreeze()[pure virtual]

Causes whatever ticker this animation provides to its animator to be unfrozen.

You should not normally need to call this function.

See also: Freeze()

Unhold ( )

voidUnhold()[pure virtual]

Resumes a held animation.