Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
29 class CSurfaceUtility;
30 class CEglEnvironment;
34 * Baseclass for all test windows. Is responsible for creation of destruction of the actual
35 * WServ window. Also computes dirty regions for the window.
38 class CTWindow : public CBase
42 virtual void LoadL(CSurfaceUtility* aUtility, TPtrC aFileName);
43 virtual void RenderL();
45 void Move(TInt aX, TInt aY);
46 TPoint CurrentPosition();
47 void SetPosition(TInt aX, TInt aY);
48 const RRegion& DirtyRegion() const;
49 void SetVisible(TBool aIsVisible);
50 TInt SetBackgroundSurface(const TSurfaceId& aSurface);
53 static TSize GetDisplaySizeInPixels();
54 static CFbsBitmap* CreateBitmapFromFileL(const TDesC& aFileName);
57 CTWindow(const TPoint& aStartingPoint, const TSize& aWindowSize);
58 void ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent);
71 // function pointer is used by the controller to create windows
72 typedef CTWindow* (*pTWindowCreatorFunction)(RWsSession &aWs,
73 const RWindowTreeNode &aParent,
74 const TPoint& aStartingPoint,
75 const TSize& aWindowSize);