Symbian3/SDK/Source/GUID-2C17B7CA-39A3-5E2B-9B8E-239158A94F5C.dita
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
parent 0 89d6a7a84779
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept xml:lang="en" id="GUID-2C17B7CA-39A3-5E2B-9B8E-239158A94F5C"><title>Creating Sprites and Pointer Cursors</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>This topic describes the steps for creating a sprite. </p> <p>When an application wants to use a sprite, it typically carries out the following steps: </p> <ul><li id="GUID-64B1FE4E-71C6-57E9-B9A2-B99695722D47"><p>Construct an <xref href="GUID-75C09150-E93B-323D-AFBF-E42C7BD78229.dita"><apiname>RWsSprite</apiname></xref>  </p> </li> <li id="GUID-58E9071A-B1FC-5A67-B6F5-0472B1D38479"><p>Construct the required number of sprite members with bitmaps, bitmap masks, and time intervals </p> </li> <li id="GUID-58FE4FE3-1F6A-5CCA-8B2F-6078CBF7C8C2"><p>Add the sprite members to the sprite using <xref href="GUID-20B1C5E7-8587-3528-9A33-C56D5C2A4C6F.dita#GUID-20B1C5E7-8587-3528-9A33-C56D5C2A4C6F/GUID-79DE992E-1A8E-3974-81BB-285F6A50A920"><apiname>RWsSpriteBase::AppendMember()</apiname></xref>  </p> </li> <li id="GUID-DCC36D98-8408-5D33-A4FB-A1FF4C8C062A"><p>Activate the sprite using <xref href="GUID-20B1C5E7-8587-3528-9A33-C56D5C2A4C6F.dita#GUID-20B1C5E7-8587-3528-9A33-C56D5C2A4C6F/GUID-016BEED8-65E2-3E88-8336-B47C092C5227"><apiname>RWsSpriteBase::Activate()</apiname></xref>. </p> </li> </ul> <p>The sprite's position can be changed after the sprite has been activated using <xref href="GUID-75C09150-E93B-323D-AFBF-E42C7BD78229.dita#GUID-75C09150-E93B-323D-AFBF-E42C7BD78229/GUID-102BCF72-8CC3-39B1-963F-7CB7CFD237A1"><apiname>RWsSprite::SetPosition()</apiname></xref>. The sprite's appearance can also be changed, using <xref href="GUID-20B1C5E7-8587-3528-9A33-C56D5C2A4C6F.dita#GUID-20B1C5E7-8587-3528-9A33-C56D5C2A4C6F/GUID-3EA4BDD1-2065-3F41-B2D4-A30CFCFCE81A"><apiname>RWsSpriteBase::UpdateMember()</apiname></xref>. </p> <p>The procedure for creating a pointer cursor is similar, except that an <xref href="GUID-6E71A7F9-E980-3D99-ACB0-6743A0D13EBF.dita"><apiname>RWsPointerCursor</apiname></xref> is constructed instead of an <codeph>RWsSprite</codeph>. </p> </conbody><related-links><link href="GUID-567DFA14-A7AA-56F5-9741-CB1F28BCD39F.dita"><linktext>Sprites and Cursors</linktext> </link> </related-links></concept>