Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: w32adll.h
Link against: N/A

Class CSpriteAnim

CSpriteAnim

Support

Supported from 5.1

Description

Sprite animation interface. Sprites are bitmaps that can overlay a window or the screen. A sprite animation can be provided by deriving from this class.

The interface inherits from CAnim and has access to its functions. It additionally can access an interface for querying and manipulating a sprite, using its iSpriteFunctions member.

The derived class is constructed in the DLL factory class CAnimDll::CreateInstanceL() function, as explained in its description.

Derivation

CAnimServer side animated object base interface
CBaseBase class for all classes to be instantiated on the heap
CSpriteAnimSprite animation interface
MEventHandlerEvent handler interface

Defined in CSpriteAnim:
CSpriteAnim(), ConstructL(), iSpriteFunctions

Inherited from CAnim:
Animate(), Command(), CommandReplyL(), FocusChanged(), Redraw(), iFunctions, iGc

Inherited from CBase:
operator new()

Inherited from MEventHandler:
OfferRawEvent()

See also:


Construction and destruction


ConstructL()

virtual void ConstructL(TAny* aArgs)=0;

Description

Server side construction and initialisation of an animation class.

Parameters

TAny* aArgs

Packaged arguments which may be required during construction. These are transferred from aParams argument of the client side constructor — RAnim::Construct().


CSpriteAnim()

protected: inline CSpriteAnim() {}

Description

Protected constructor. Ensures that only derived classes can be constructed.

[Top]


Protected data members


iSpriteFunctions

MAnimSpriteFunctions* iSpriteFunctions

Description

Pointer to a class containing functions implemented by the window server. These are available to any CSpriteAnim derived class.

Note that this value is automatically set for you by the animation framework — you do not need to assign a value to this pointer.