First public contribution.
1 // Copyright (c) 1996-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
22 #ifndef __TDERIVED_H__
23 #define __TDERIVED_H__
27 #include "../tlib/testbase.h"
29 #include "TGraphicsHarness.h"
31 class CDerivedWindowGc : public CWindowGc
34 CDerivedWindowGc(CWsScreenDevice *aDevice);
36 void DrawLine(const TPoint &aPoint1,const TPoint &aPoint2);
39 class RDerivedSession : public RWsSession
43 void EnableAutoFlush();
46 class RDerivedBlankWindow : public RBlankWindow
49 RDerivedBlankWindow();
50 RDerivedBlankWindow(RWsSession &aWs);
51 void SetColor(TRgb aColor);
55 class RDerivedWindow : public RWindow
59 RDerivedWindow(RWsSession &aWs);
60 void SetBackgroundColor(TRgb aColor);
61 void SetBackgroundColorGray();
64 class RDerivedBackedUpWindow : public RBackedUpWindow
67 RDerivedBackedUpWindow();
68 RDerivedBackedUpWindow(RWsSession &aWs);
72 class RDerivedWindowGroup : public RWindowGroup
75 RDerivedWindowGroup();
76 RDerivedWindowGroup(RWsSession &aWs);
80 class CDerivedScreenDevice : public CWsScreenDevice
83 CDerivedScreenDevice(RWsSession &aWs);
84 CDerivedScreenDevice();
85 TSize SizeInPixels() const;
88 class RDerivedSprite : public RWsSprite
92 RDerivedSprite(RWsSession &aWs);
95 class RDerivedPointerCursor : public RWsPointerCursor
98 RDerivedPointerCursor();
99 RDerivedPointerCursor(RWsSession &aWs);
102 class CTDerived : public CTWsGraphicsBase
105 CTDerived(CTestStep* aStep);
107 void DerivedWindowGcL();
108 void DerivedSession();
109 void DerivedWindows();
110 void DerivedScreenDeviceL();
111 void DerivedSprite();
114 //from CTGraphicsStep
115 virtual void RunTestCaseL(TInt aCurTestCase);
118 RDerivedSession iDSession;
119 RDerivedWindow iDRedraw;
120 RDerivedBlankWindow iDBlank;
121 RDerivedBackedUpWindow iDBackedUp;
122 RDerivedWindowGroup iDGroup;
123 RDerivedSprite iDSprite;
124 RDerivedPointerCursor iDPCursor;
127 class CTDerivedStep : public CTGraphicsStep
132 //from CTGraphicsStep
133 virtual CTGraphicsBase* CreateTestL();
136 _LIT(KTDerivedStep,"TDerived");