|
||
class CSpriteAnimation : public CAnimation, public MAnimationDataProviderObserver;
Implementation of CAnimation
for sprite based animations.
A sprite animation displays the image using a sprite, which is a server side graphic object. This is likely to be more efficient than a basic animation, and requires slightly less work in the client application. However, it also provides less control over the actual rendering of the image.
A sprite animation must be associated with an RWindow
. However, no redraw events will be generated for it by the animation, and the client application does not need to take any
action once the animation has started. Holding the animation when the sprite is not visible is handled automatically on the
server side.
MAnimationDataProviderObserver
- Interface from a data provider to an animation
CBase
-
Base class for all classes to be instantiated on the heap.
CAnimation
- Pure virtual base class for animations.
CSpriteAnimation
- Implementation of CAnimation for sprite based animations.
Defined in CSpriteAnimation
:
CSpriteAnimation_Reserved2()
Reserved for future use DataProvider()
Provides an CSpriteAnimation DataProvider interface to the client application. DataProviderEventL(TInt,TAny *,TInt)
Receives an event from a data provider. Freeze()
Implements CAnimation::Freeze(). Hold()
Implements CAnimation::Hold(). NewL(CAnimationDataProvider *,const TPoint &,MAnimationObserver *,const CCoeControl *)
Two stage constructor.NewL(CAnimationDataProvider *,const TPoint &,RWsSession &,RWindow &,MAnimationObserver *)
Two stage constructor.NewL(CAnimationDataProvider *,const TPoint &,RWsSession &,RWindow &,const TDesC8 &,MAnimationObserver *)
Two stage constructor.NewL(CAnimationDataProvider *,const TPoint &,const TDesC8 &,MAnimationObserver *,const CCoeControl *)
Two stage constructor.Pause()
Implements CAnimation::Pause(). Resume()
Implements CAnimation::Resume(). SetHostL(const CCoeControl *)
SetPosition(const TPoint &)
Implements CAnimation::SetPosition(const TPoint &). Size()const
Implements CAnimation::Size Start(const TAnimationConfig &)
Implements CAnimation::Start(const TAnimationConfig &). Stop()
Implements CAnimation::Stop(). Unfreeze()
Implements CAnimation::Unfreeze(). Unhold()
Implements CAnimation::Unhold(). ~CSpriteAnimation()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from MAnimationDataProviderObserver
:
MAnimationDataProviderObserver_Reserved1()
Reserved for future use MAnimationDataProviderObserver_Reserved2()
Reserved for future use CAnimationDataProvider
Pure virtual base class for data providers.IMPORT_C static CSpriteAnimation* NewL(CAnimationDataProvider *aDataProvider, const TPoint &aPoint, RWsSession &aWsSession,
RWindow &aWindow, MAnimationObserver *aObserver=0);
Two stage constructor.
This creates and returns a new sprite animation.
|
|
NewL(CAnimationDataProvider *,const TPoint &,RWsSession &,RWindow &,const TDesC8 &,MAnimationObserver *)
IMPORT_C static CSpriteAnimation* NewL(CAnimationDataProvider *aDataProvider, const TPoint &aPoint, RWsSession &aWsSession,
RWindow &aWindow, const TDesC8 &aDataType, MAnimationObserver *aObserver=0);
Two stage constructor.
This is identical to the other NewL except that it allows an alternative data type to be specified. Unless you are trying to use a custom animator class the other form of constructor should be used.
|
|
IMPORT_C static CSpriteAnimation* NewL(CAnimationDataProvider *aDataProvider, const TPoint &aPoint, MAnimationObserver *aObserver=0,
const CCoeControl *aHost=0);
Two stage constructor.
This creates and returns a new sprite animation.
|
|
NewL(CAnimationDataProvider *,const TPoint &,const TDesC8 &,MAnimationObserver *,const CCoeControl *)
IMPORT_C static CSpriteAnimation* NewL(CAnimationDataProvider *aDataProvider, const TPoint &aPoint, const TDesC8 &aDataType,
MAnimationObserver *aObserver=0, const CCoeControl *aHost=0);
Two stage constructor.
This is identical to the other NewL except that it allows an alternative data type to be specified. Unless you are trying to use a custom animator class the other form of constructor should be used.
|
|
inline CAnimationDataProvider* DataProvider();
Provides an CSpriteAnimation DataProvider interface to the client application.
|
virtual void Start(const TAnimationConfig &aConfig);
Implements CAnimation::Start(const TAnimationConfig &)
.
|
virtual void SetPosition(const TPoint &aPoint);
Implements CAnimation::SetPosition(const TPoint &)
.
|
IMPORT_C virtual void SetHostL(const CCoeControl *aHost);
|
private: virtual void DataProviderEventL(TInt aEvent, TAny *aData, TInt aDataSize);
Receives an event from a data provider.
|