Paired server side and client side classes are required for each animation object. The server side class should be derived from one of the abstract base classes, based on CAnim , depending on whether the animation is to draw to a sprite or a window:
CSpriteAnim for sprite animations
CWindowAnim for window animations
CFreeTimerWindowAnim for free timer animations
CAnim defines the server side functions that are used to implement a given animation, including the drawing commands that the Window Server calls and any other command functions the animation may require. These functions must be implemented by the user in the derived class.
The MAnimGeneralFunctions , MAnimWindowFunctions and MAnimSpriteFunctions classes provide a set of helper functions that are implemented by the Window Server and to which CAnim provides the iFunctions pointer. These helper functions, which include for example functions to set the animation timings, to set the drawing rectangle, to panic the client from the server, and so on, are therefore available to any CAnim derived class.
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.