First public contribution.
2 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
20 @internalComponent - Internal Symbian test code
23 #ifndef __TBACKUPW_H__
24 #define __TBACKUPW_H__
28 #include "../tlib/testbase.h"
31 #include "TGraphicsHarness.h"
33 const TInt KLastSubtest = 13;
35 class CTBackedUpWindow : public CTWsGraphicsBase
38 CTBackedUpWindow(CTestStep* aStep);
41 void DoSubTestL(TInt iState);
43 void CheckWindow(CFbsBitmap *aBitmap);
44 void Draw(TInt aDrawFunc, TAny *aParam);
45 void Draw(TInt aDrawFunc, TAny *aParam, CBitmapContext *aGc1, CBitmapContext *aGc2);
46 void DrawWithTwoGcsL();
52 void DupBitmapTestL();
53 void UpdateBitmapTestL();
56 void doGraphicFunctionsL(CBitmapContext *gc,TBool aExtraDrawBitMap);
57 void AllGraphicFunctionsL(RBlankWindow &aBlank,TBool aExtraDrawBitMap=ETrue);
58 void AllGraphicFunctionsTestsL();
61 virtual void RunTestCaseL(TInt aCurTestCase);
68 RBackedUpWindow iBackedUpWindow;
69 RBlankWindow iOomFrontWindow;
72 CFbsDevice *iBitmapDevice;
73 CFbsBitmap* iTestBitmap;
74 CFbsBitmap* iMaskBitmap;
77 LOCAL_D const TPoint moveList[]={TPoint(1,0),TPoint(10,20),TPoint(-50,0),TPoint(30,-1),TPoint(-1000,20)};
81 class CTBackedUpWindowStep : public CTGraphicsStep
84 CTBackedUpWindowStep();
87 virtual CTGraphicsBase* CreateTestL();
90 _LIT(KTBackedUpWindowStep,"TBackedUpWindow");