Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <W32ADLL.H>

Class CWindowAnim

class CWindowAnim : public CAnim;

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(TInt).

Derivation

Members

Defined in CWindowAnim:

Inherited from CAnim:

Inherited from CBase:

Inherited from MEventHandler:

See also:


Construction and destruction


ConstructL(TAny *,TBool)

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

Description

Server side construction and initialisation of an animation class.

Note: the aHasFocus argument allows the animation to start in a known focus state. For example, an animation may or may not have focus, depending on how it was started. Together with the CWindowAnim::FocusChanged(TBool) function, this allows an animation to always know its focus state.

Parameters

TAny *aArgs

Packaged arguments which may be required during construction. These are transferred from the aParams argument of the client side constructor's RAnim::Construct(const RWindowBase &,TInt,const TDesC8 &).

TBool aHasFocus

Specifies 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


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.


FocusChanged(TBool)

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

Indicates whether the focus has or has not changed.


ReservedW1()const

private: inline virtual void ReservedW1() const;

Description


ReservedW2()const

private: inline virtual void ReservedW2() const;

Description

[Top]


Member data


iWindowFunctions

protected: MAnimWindowFunctions * iWindowFunctions;

Description

Pointer to a class containing functions implemented by the window server.

These are available to any CWindowAnim-derived class.

Note that this and the iGc pointer are automatically set for you by the animation framework - you do not need to assign a value to them.


iGc

protected: CAnimGc * iGc;

Description

Pointer to the graphics context.