Update contrib.
1 // Copyright (c) 2007-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.
14 // Tests the usage of Off-Screen Bitmap
21 @internalComponent - Internal Symbian test code
24 #ifndef __TFLICKERFREE_H__
25 #define __TFLICKERFREE_H__
29 #include "../tlib/testbase.h"
31 #include <e32math.h> //to include math finction rand()
32 #include "TGraphicsHarness.h"
34 //===================================================
36 //===================================================
38 class CBGWin : public CTWin
43 /*Draws and colors the rectagles that are to fill the screen.*/
45 void ConstructWin(TPoint, TSize, TBool);
46 void EnableOSBd(TBool);
50 //===================================================
51 // CFlickerTest Definition
52 //===================================================
53 class CTFlickerFree : public CTWsGraphicsBase
56 CTFlickerFree(CTestStep* aStep);
58 /*Sets the windowing environment,*/
62 //from CTGraphicsStep - Calls the flicker-drawing test.
63 virtual void RunTestCaseL(TInt aCurTestCase);
65 /*Starts first with flickering screen and after 4 senconds it
66 switches to flicker free drawing.*/
67 void TestFlickering();
73 class CTFlickerFreeStep : public CTGraphicsStep
79 virtual CTGraphicsBase* CreateTestL();
82 _LIT(KTFlickerFreeStep,"TFlickerFree");