|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef TFLOWINDOW_H |
|
23 #define TFLOWINDOW_H |
|
24 |
|
25 #include <twindow.h> |
|
26 |
|
27 #include <w32std.h> |
|
28 #include <graphics/sgimagecollection.h> |
|
29 #include <graphics/surfaceupdateclient.h> |
|
30 |
|
31 /** |
|
32 * This class uses a RSgImage for drawing. The surface Id of the RSgImageCollection is used |
|
33 * by the SurfaceUpdateManager to draw the surface to the screen. |
|
34 * |
|
35 */ |
|
36 class CTFlowWindow : public CTWindow |
|
37 { |
|
38 public: |
|
39 virtual ~CTFlowWindow(); |
|
40 static CTWindow* NewL(RWsSession &aWs, const RWindowTreeNode &aParent, |
|
41 const TPoint& aStartingPoint, const TSize& aWindowSize); |
|
42 |
|
43 virtual void LoadL(CSurfaceUtility* aUtility, TPtrC aFileName); |
|
44 virtual void RenderL(); |
|
45 |
|
46 protected: |
|
47 CTFlowWindow(const TPoint& aStartingPoint, const TSize& aWindowSize); |
|
48 void ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent); |
|
49 |
|
50 private: |
|
51 RSgImageCollection iImageCollection; |
|
52 RSgImage iImage; |
|
53 TSgImageInfo iImageInfo; |
|
54 RSurfaceUpdateSession iUpdateSession; |
|
55 }; |
|
56 |
|
57 #endif /*TFLOWINDOW_H*/ |