|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-27018D94-5273-5AC3-98E5-D2924776740C" xml:lang="en"><title>BackedUp: |
|
13 backed-up windows</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section><title>Description</title> <p>This example demonstrates how to implement |
|
15 a backed up window. </p> <p>It implements freehand drawing in a similar way |
|
16 to the <filepath>PtBuffer</filepath> example, using the pointer move buffer. |
|
17 However, in this example, the window which may be drawn to is an <codeph>RBackedUpWindow</codeph> rather |
|
18 than an <codeph>RWindow</codeph>. This means that any drawing is redrawn automatically |
|
19 if it becomes covered up and then uncovered: the backed-up window receives |
|
20 no redraw events. The example includes a small window which can be dragged |
|
21 around the screen to illustrate this. </p> </section> |
|
22 <section id="GUID-2CC58218-AABD-52F8-B8D1-303185C6F6BA"><title>Download</title> <p>Click |
|
23 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-8e5125ad-7e58-429a-8936-35b0b0c3c999.zip" scope="external">BackedUp.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-8e5125ad-7e58-429a-8936-35b0b0c3c999.html" scope="peer">browse</xref> to view the example code. </p> </section> |
|
24 <section><title>Running on the emulator</title> <p>Drag the mouse with left |
|
25 mouse button down for freehand drawing. You do not need to press the <userinput>Shift</userinput> key. </p> </section> |
|
26 <section><title>Running on the target phone</title> <p>Draw using the pointer. |
|
27 You do not need to press the <userinput>Shift</userinput> key. </p> </section> |
|
28 <section><title>Class Summary</title><p>For Backedup Window: </p><p><xref href="GUID-27A95595-F74D-32B2-A960-0CA290C8A3B3.dita"><apiname>RBackedUpWindow</apiname></xref></p><p>For |
|
29 Screen Device: </p><p><xref href="GUID-30479BE3-296E-3B4D-914D-B080ABD733E4.dita"><apiname>CWsScreenDevice</apiname></xref></p></section> |
|
30 </conbody></concept> |