|
1 // Copyright (c) 2008-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 __TSIMPLEDRAWING_DIRECTGDI_H__ |
|
23 #define __TSIMPLEDRAWING_DIRECTGDI_H__ |
|
24 |
|
25 #include "tdirectgditestbase.h" |
|
26 #include <bitdev.h> |
|
27 #include <graphics/directgdicontext.h> |
|
28 |
|
29 #include <test/tefunit.h> |
|
30 #include <bitdraw.h> |
|
31 |
|
32 class CFbsBitmap; |
|
33 |
|
34 class CTSimpleDrawingDirectGdi : public CTDirectGdiTestBase |
|
35 { |
|
36 public: |
|
37 CTSimpleDrawingDirectGdi(); |
|
38 ~CTSimpleDrawingDirectGdi(); |
|
39 |
|
40 private: |
|
41 // From CStepStep |
|
42 virtual TVerdict doTestStepPreambleL(); |
|
43 virtual TVerdict doTestStepL(); |
|
44 virtual TVerdict doTestStepPostambleL(); |
|
45 |
|
46 void ClearingL(); |
|
47 void LineDrawingL(); |
|
48 void CopyRectL(); |
|
49 void VerticalLinesL(); |
|
50 void HorizontalLinesL(); |
|
51 void ThickLinesL(); |
|
52 void DrawRectL(); |
|
53 void TextDrawingL(); |
|
54 void TextDrawingAntiAliasedL(); |
|
55 void TextDrawingWithOverheadL(); |
|
56 void LargeTextDrawingL(); |
|
57 |
|
58 // Helpers |
|
59 void DoLineDrawingL(TPtrC aTestName, const TSize& aPenSize); |
|
60 |
|
61 private: |
|
62 CFbsBitmap* iBitmap; |
|
63 TRect iScreenRect; |
|
64 TDisplayMode iDisplayMode; |
|
65 }; |
|
66 |
|
67 _LIT(KTSimpleDrawingPerfDirectGdi,"tsimpledrawing_directgdi"); |
|
68 |
|
69 #endif // __TSIMPLEDRAWING_DIRECTGDI_H__ |