class CWindowAnim : public CAnim |
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().
Public Member Functions | |
---|---|
void | ConstructL(TAny *, TBool) |
void | FocusChanged(TBool) |
void | Redraw() |
Protected Member Functions | |
---|---|
CWindowAnim() |
Private Member Functions | |
---|---|
void | ReservedW1() |
void | ReservedW2() |
Protected Attributes | |
---|---|
CAnimGc * | iGc |
MAnimWindowFunctions * | iWindowFunctions |
Inherited Attributes | |
---|---|
CAnim::iFunctions |
CWindowAnim | ( | ) | [protected, inline] |
Protected constructor.
Prevents objects of this class being directly constructed.
void | ConstructL | ( | TAny * | aArgs, |
TBool | aHasFocus | |||
) | [pure virtual] |
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 FocusChanged() function, this allows an animation to always know its focus state.
void | FocusChanged | ( | TBool | aState | ) | [pure virtual] |
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.
TBool aState | Indicates whether the focus has or has not changed. |
void | Redraw | ( | ) | [pure virtual] |
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.
MAnimWindowFunctions * | iWindowFunctions | [protected] |
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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.