Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: w32adll.h
Link against: N/A

Class CWindowAnim

CWindowAnim

Support

Supported from 5.1

Description

Window animation interface. This interface is provided to create animations other than sprites. A window 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 the window in which the animation takes place, using its iWindowFunctions 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
CWindowAnimWindow animation interface
MEventHandlerEvent handler interface

Defined in CWindowAnim:
*iWindowFunctions, CWindowAnim(), ConstructL(), FocusChanged(), Redraw(), iGc

Inherited from CAnim:
Animate(), Command(), CommandReplyL(), iFunctions

Inherited from CBase:
operator new()

Inherited from MEventHandler:
OfferRawEvent()

See also:


Construction and destruction


ConstructL()

virtual void ConstructL(TAny* aArgs, TBool aHasFocus)=0;

Description

Server side construction and initialisation of an animation class.

Note:

Parameters

TAny* aArgs

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

TBool aHasFocus

Specify whether or not the animation has window server focus.


CWindowAnim()

protected: inline CWindowAnim() {}

Description

Protected constructor. Prevents objects of this class being directly constructed.

[Top]


Member functions


FocusChanged()

virtual void FocusChanged(TBool aState)=0;

Description

Notifies change of focus. The function is called by the window server to notify a change of focus — allowing the animation code to track whether it does or does not have focus, and to change its appearance accordingly.

Parameters

TBool aState

Focus has or has not changed.


Redraw()

virtual void Redraw()=0;

Description

Redraws the objects. The function is called by the window server when it needs to redraw the object — the object must provide all the low level drawing code.

[Top]


Protected data members

Description

Note that these values are automatically set for you by the animation framework — you do not need to assign a value to these pointers.


*iWindowFunctions

MAnimWindowFunctions *iWindowFunctions

Description

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


iGc

CAnimGc* iGc

Description

Pointer to the graphics context.