windowing/windowserver/test/tauto/TGDI.H
author hgs
Tue, 22 Jun 2010 15:21:29 +0300
changeset 103 2717213c588a
permissions -rw-r--r--
201024
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
103
hgs
parents:
diff changeset
     1
// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     2
// All rights reserved.
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     7
//
hgs
parents:
diff changeset
     8
// Initial Contributors:
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
//
hgs
parents:
diff changeset
    11
// Contributors:
hgs
parents:
diff changeset
    12
//
hgs
parents:
diff changeset
    13
// Description:
hgs
parents:
diff changeset
    14
//
hgs
parents:
diff changeset
    15
hgs
parents:
diff changeset
    16
/**
hgs
parents:
diff changeset
    17
 @file
hgs
parents:
diff changeset
    18
 @test
hgs
parents:
diff changeset
    19
 @internalComponent - Internal Symbian test code
hgs
parents:
diff changeset
    20
*/
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifndef __TGDI_H__
hgs
parents:
diff changeset
    23
#define __TGDI_H__
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
#include <e32std.h>
hgs
parents:
diff changeset
    26
#include <w32std.h>
hgs
parents:
diff changeset
    27
#include "../tlib/testbase.h"
hgs
parents:
diff changeset
    28
#include <bitstd.h>
hgs
parents:
diff changeset
    29
#include "AUTO.H"
hgs
parents:
diff changeset
    30
#include "TGraphicsHarness.h"
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
class CGdiTestLowLevel;
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
CGdiTestLowLevel *SetOriginTest();
hgs
parents:
diff changeset
    35
CGdiTestLowLevel *PolyLineTest();
hgs
parents:
diff changeset
    36
CGdiTestLowLevel *PolygonTest();
hgs
parents:
diff changeset
    37
CGdiTestLowLevel *BlitMaskedTest();
hgs
parents:
diff changeset
    38
CGdiTestLowLevel *DrawArcTest();
hgs
parents:
diff changeset
    39
CGdiTestLowLevel *DrawPieTest();
hgs
parents:
diff changeset
    40
CGdiTestLowLevel *DrawRoundRectTest();
hgs
parents:
diff changeset
    41
CGdiTestLowLevel *BoxTextTest();
hgs
parents:
diff changeset
    42
CGdiTestLowLevel *VertTextTest();
hgs
parents:
diff changeset
    43
CGdiTestLowLevel *JustifiedTextTest();
hgs
parents:
diff changeset
    44
CGdiTestLowLevel *VertBoxTextTest();
hgs
parents:
diff changeset
    45
CGdiTestLowLevel *WideLineTest();
hgs
parents:
diff changeset
    46
CGdiTestLowLevel *DrawTextTest();
hgs
parents:
diff changeset
    47
CGdiTestLowLevel *DrawRectTest();
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
class CTGdi;
hgs
parents:
diff changeset
    50
class CGdiTestLowLevel : public CBase
hgs
parents:
diff changeset
    51
//
hgs
parents:
diff changeset
    52
// BaseTest uses code that is assumed to be good to draw to one window
hgs
parents:
diff changeset
    53
// TheTest uses the code beng tested to draw a matching pattern
hgs
parents:
diff changeset
    54
//
hgs
parents:
diff changeset
    55
	{
hgs
parents:
diff changeset
    56
public:
hgs
parents:
diff changeset
    57
	void AssignGdi(CWindowGc *aGc);
hgs
parents:
diff changeset
    58
	void SetGdiTest(CTGdi *aGdiTest);
hgs
parents:
diff changeset
    59
	virtual void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
    60
	virtual void BaseTest(const TRect &aRect, TInt aCount)=0;
hgs
parents:
diff changeset
    61
	virtual void TheTest(const TRect &aRect, TInt aCount)=0;
hgs
parents:
diff changeset
    62
	virtual void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
    63
	virtual TInt Count(TBool aMainTests)=0;
hgs
parents:
diff changeset
    64
protected:
hgs
parents:
diff changeset
    65
	CWindowGc *iGdi;
hgs
parents:
diff changeset
    66
	CTGdi *iGdiTest;
hgs
parents:
diff changeset
    67
	};
hgs
parents:
diff changeset
    68
hgs
parents:
diff changeset
    69
class CGdiRect : public CGdiTestLowLevel
hgs
parents:
diff changeset
    70
	{
hgs
parents:
diff changeset
    71
public:
hgs
parents:
diff changeset
    72
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
    73
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
    74
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
    75
protected:
hgs
parents:
diff changeset
    76
	TRgb iBrushCol;
hgs
parents:
diff changeset
    77
	TRgb iPenCol;
hgs
parents:
diff changeset
    78
	};
hgs
parents:
diff changeset
    79
hgs
parents:
diff changeset
    80
hgs
parents:
diff changeset
    81
class CGdiDrawRect : public CGdiRect
hgs
parents:
diff changeset
    82
	{
hgs
parents:
diff changeset
    83
public:
hgs
parents:
diff changeset
    84
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
    85
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
    86
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
    87
	};
hgs
parents:
diff changeset
    88
hgs
parents:
diff changeset
    89
class CGdiDrawRoundRect : public CGdiRect
hgs
parents:
diff changeset
    90
	{
hgs
parents:
diff changeset
    91
public:
hgs
parents:
diff changeset
    92
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
    93
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
    94
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
    95
	};
hgs
parents:
diff changeset
    96
hgs
parents:
diff changeset
    97
class CGdiDrawACP : public CGdiTestLowLevel
hgs
parents:
diff changeset
    98
	{
hgs
parents:
diff changeset
    99
public:
hgs
parents:
diff changeset
   100
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   101
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   102
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   103
protected:
hgs
parents:
diff changeset
   104
	TRgb iBrushCol;
hgs
parents:
diff changeset
   105
	TRgb iPenCol;
hgs
parents:
diff changeset
   106
	};
hgs
parents:
diff changeset
   107
hgs
parents:
diff changeset
   108
class CGdiDrawArc : public CGdiDrawACP
hgs
parents:
diff changeset
   109
	{
hgs
parents:
diff changeset
   110
public:
hgs
parents:
diff changeset
   111
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   112
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   113
	};
hgs
parents:
diff changeset
   114
hgs
parents:
diff changeset
   115
class CGdiDrawPie : public CGdiDrawACP
hgs
parents:
diff changeset
   116
	{
hgs
parents:
diff changeset
   117
public:
hgs
parents:
diff changeset
   118
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   119
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   120
	};
hgs
parents:
diff changeset
   121
hgs
parents:
diff changeset
   122
class CGdiPolyLine : public CGdiTestLowLevel
hgs
parents:
diff changeset
   123
	{
hgs
parents:
diff changeset
   124
public:
hgs
parents:
diff changeset
   125
	CGdiPolyLine();
hgs
parents:
diff changeset
   126
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   127
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   128
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   129
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   130
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   131
private:
hgs
parents:
diff changeset
   132
	CArrayFixSeg<TPoint> iPnts;
hgs
parents:
diff changeset
   133
	};
hgs
parents:
diff changeset
   134
hgs
parents:
diff changeset
   135
class CGdiPolygon : public CGdiTestLowLevel
hgs
parents:
diff changeset
   136
	{
hgs
parents:
diff changeset
   137
private:
hgs
parents:
diff changeset
   138
	enum {KMaxPolygonPoints=100};
hgs
parents:
diff changeset
   139
	enum {KPolygonStep=4};
hgs
parents:
diff changeset
   140
public:
hgs
parents:
diff changeset
   141
	CGdiPolygon();
hgs
parents:
diff changeset
   142
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   143
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   144
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   145
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   146
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   147
private:
hgs
parents:
diff changeset
   148
	CArrayFixSeg<TPoint> iPnts;
hgs
parents:
diff changeset
   149
	};
hgs
parents:
diff changeset
   150
hgs
parents:
diff changeset
   151
class CGdiWideLine : public CGdiTestLowLevel
hgs
parents:
diff changeset
   152
	{
hgs
parents:
diff changeset
   153
private:
hgs
parents:
diff changeset
   154
	enum TMaxWidths {
hgs
parents:
diff changeset
   155
		EMainNumWidths=16,
hgs
parents:
diff changeset
   156
		EMinorNumWidths=4};
hgs
parents:
diff changeset
   157
public:
hgs
parents:
diff changeset
   158
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   159
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   160
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   161
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   162
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   163
private:
hgs
parents:
diff changeset
   164
	TInt iWidth;
hgs
parents:
diff changeset
   165
	};
hgs
parents:
diff changeset
   166
hgs
parents:
diff changeset
   167
class CGdiSetOrigin : public CGdiTestLowLevel
hgs
parents:
diff changeset
   168
	{
hgs
parents:
diff changeset
   169
public:
hgs
parents:
diff changeset
   170
	~CGdiSetOrigin();
hgs
parents:
diff changeset
   171
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   172
	void DrawIt(const TPoint &aOffset);
hgs
parents:
diff changeset
   173
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   174
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   175
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   176
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   177
private:
hgs
parents:
diff changeset
   178
	CFbsFont *iFont;
hgs
parents:
diff changeset
   179
	CArrayFixFlat<TPoint> *iPolylineArray;
hgs
parents:
diff changeset
   180
	CArrayFixFlat<TPoint> *iPolygonArray;
hgs
parents:
diff changeset
   181
	};
hgs
parents:
diff changeset
   182
hgs
parents:
diff changeset
   183
class CGdiDrawText : public CGdiTestLowLevel
hgs
parents:
diff changeset
   184
	{
hgs
parents:
diff changeset
   185
public:
hgs
parents:
diff changeset
   186
	~CGdiDrawText();
hgs
parents:
diff changeset
   187
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   188
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   189
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   190
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   191
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   192
private:
hgs
parents:
diff changeset
   193
	TInt iWidth;
hgs
parents:
diff changeset
   194
	CFbsFont *iFont;
hgs
parents:
diff changeset
   195
	TBuf<0x400> iBigBuffer;
hgs
parents:
diff changeset
   196
	};
hgs
parents:
diff changeset
   197
hgs
parents:
diff changeset
   198
class CGdiDrawVertText : public CGdiTestLowLevel
hgs
parents:
diff changeset
   199
	{
hgs
parents:
diff changeset
   200
public:
hgs
parents:
diff changeset
   201
	~CGdiDrawVertText();
hgs
parents:
diff changeset
   202
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   203
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   204
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   205
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   206
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   207
private:
hgs
parents:
diff changeset
   208
	TInt iWidth;
hgs
parents:
diff changeset
   209
	CFbsFont *iFont;
hgs
parents:
diff changeset
   210
	TBuf<0x400> iBigBuffer;
hgs
parents:
diff changeset
   211
	};
hgs
parents:
diff changeset
   212
hgs
parents:
diff changeset
   213
//class CGdiDrawJustifiedText : public CGdiTestLowLevel
hgs
parents:
diff changeset
   214
//DEF107985 The test for JustifiedText has been removed as it was a bad/useless test
hgs
parents:
diff changeset
   215
hgs
parents:
diff changeset
   216
class CGdiBoxText : public CGdiTestLowLevel
hgs
parents:
diff changeset
   217
	{
hgs
parents:
diff changeset
   218
public:
hgs
parents:
diff changeset
   219
	~CGdiBoxText();
hgs
parents:
diff changeset
   220
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   221
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   222
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   223
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   224
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   225
private:
hgs
parents:
diff changeset
   226
	TInt iWidth;
hgs
parents:
diff changeset
   227
	TInt iBbLen;
hgs
parents:
diff changeset
   228
	CFbsFont *iFont;
hgs
parents:
diff changeset
   229
	TBuf<0x400> iBigBuffer;
hgs
parents:
diff changeset
   230
	};
hgs
parents:
diff changeset
   231
hgs
parents:
diff changeset
   232
class CGdiVertBoxText : public CGdiTestLowLevel
hgs
parents:
diff changeset
   233
	{
hgs
parents:
diff changeset
   234
public:
hgs
parents:
diff changeset
   235
	~CGdiVertBoxText();
hgs
parents:
diff changeset
   236
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   237
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   238
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   239
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   240
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   241
private:
hgs
parents:
diff changeset
   242
	TInt iWidth;
hgs
parents:
diff changeset
   243
	TInt iBbLen;
hgs
parents:
diff changeset
   244
	CFbsFont *iFont;
hgs
parents:
diff changeset
   245
	TBuf<0x400> iBigBuffer;
hgs
parents:
diff changeset
   246
	};
hgs
parents:
diff changeset
   247
/*
hgs
parents:
diff changeset
   248
class CGdiDottedLine : public CGdiTestLowLevel
hgs
parents:
diff changeset
   249
	{
hgs
parents:
diff changeset
   250
	enum TMaxPatterns {
hgs
parents:
diff changeset
   251
		EMainMaxPatterns=5,
hgs
parents:
diff changeset
   252
		EMinorMaxPatterns=3};
hgs
parents:
diff changeset
   253
public:
hgs
parents:
diff changeset
   254
	void SetGridRegion(TRegion &grid,const TRect &aRect);
hgs
parents:
diff changeset
   255
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   256
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   257
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   258
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   259
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   260
private:
hgs
parents:
diff changeset
   261
	TUint iPattern;
hgs
parents:
diff changeset
   262
	TInt iPattLen;
hgs
parents:
diff changeset
   263
	static TUint iPatterns[EMainMaxPatterns];
hgs
parents:
diff changeset
   264
	static TInt iPattLens[EMainMaxPatterns];
hgs
parents:
diff changeset
   265
	};
hgs
parents:
diff changeset
   266
TUint CGdiDottedLine::iPatterns[]={
hgs
parents:
diff changeset
   267
		0x55FF0033,
hgs
parents:
diff changeset
   268
		0xFF00,
hgs
parents:
diff changeset
   269
		0x1,
hgs
parents:
diff changeset
   270
		0xFFFF,
hgs
parents:
diff changeset
   271
		0xF0F0F0};
hgs
parents:
diff changeset
   272
TInt CGdiDottedLine::iPattLens[]={
hgs
parents:
diff changeset
   273
		32,
hgs
parents:
diff changeset
   274
		16,
hgs
parents:
diff changeset
   275
		2,
hgs
parents:
diff changeset
   276
		32,
hgs
parents:
diff changeset
   277
		24};
hgs
parents:
diff changeset
   278
*/
hgs
parents:
diff changeset
   279
class CTestWindow : public CBlankWindow
hgs
parents:
diff changeset
   280
	{
hgs
parents:
diff changeset
   281
public:
hgs
parents:
diff changeset
   282
	CTestWindow(TRgb aCol);
hgs
parents:
diff changeset
   283
	~CTestWindow();
hgs
parents:
diff changeset
   284
	void ConstructL(TPoint aPos,TSize aSize,CTWinBase* aParent, CWindowGc& aGc );
hgs
parents:
diff changeset
   285
	};
hgs
parents:
diff changeset
   286
hgs
parents:
diff changeset
   287
class CGdiBlitMasked: public CGdiTestLowLevel
hgs
parents:
diff changeset
   288
	{
hgs
parents:
diff changeset
   289
	enum TNumMasks {ENumMasks=2};
hgs
parents:
diff changeset
   290
public:
hgs
parents:
diff changeset
   291
	~CGdiBlitMasked();
hgs
parents:
diff changeset
   292
	void PreTestSetupL(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   293
	void BaseTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   294
	void TheTest(const TRect &aRect, TInt aCount);
hgs
parents:
diff changeset
   295
	void ConstructL(TInt aNumOfRects);
hgs
parents:
diff changeset
   296
	TInt Count(TBool aMainTests);
hgs
parents:
diff changeset
   297
private:
hgs
parents:
diff changeset
   298
	void doCreateTestBitmapL(CFbsBitmap *aBitmap, CFbsBitGc *&aGc, CFbsBitmapDevice *&aDevice, const TSize &aSize);
hgs
parents:
diff changeset
   299
	void createTestBitmapL(CFbsBitmap *&aBitmap, const TSize &aSize);
hgs
parents:
diff changeset
   300
private:
hgs
parents:
diff changeset
   301
	CFbsBitmap *iMask[ENumMasks];
hgs
parents:
diff changeset
   302
	CFbsBitmap *iBitmap;
hgs
parents:
diff changeset
   303
//
hgs
parents:
diff changeset
   304
	CFbsBitmap *iScratch;
hgs
parents:
diff changeset
   305
	CFbsBitmapDevice *iScratchDevice;
hgs
parents:
diff changeset
   306
	CFbsBitGc *iScratchGc;
hgs
parents:
diff changeset
   307
//
hgs
parents:
diff changeset
   308
	CFbsBitmap *iScratchMask;
hgs
parents:
diff changeset
   309
	CFbsBitmapDevice *iScratchMaskDevice;
hgs
parents:
diff changeset
   310
	CFbsBitGc *iScratchMaskGc;
hgs
parents:
diff changeset
   311
//
hgs
parents:
diff changeset
   312
	TBool iInvertMask;
hgs
parents:
diff changeset
   313
	CFbsBitmap *iCurrMask;
hgs
parents:
diff changeset
   314
	CGraphicsContext::TDrawMode iDrawMode;
hgs
parents:
diff changeset
   315
	};
hgs
parents:
diff changeset
   316
hgs
parents:
diff changeset
   317
class CTGdi : public CTWsGraphicsBase
hgs
parents:
diff changeset
   318
	{
hgs
parents:
diff changeset
   319
public:
hgs
parents:
diff changeset
   320
	CTGdi(CTestStep* aStep);
hgs
parents:
diff changeset
   321
	void ConstructL();
hgs
parents:
diff changeset
   322
	TSize WinSize();
hgs
parents:
diff changeset
   323
	void GdiTestL(CGdiTestLowLevel *aTest);
hgs
parents:
diff changeset
   324
	void TestDefetct_DEF045746L();
hgs
parents:
diff changeset
   325
	void DrawTextOnWindow(const TDesC& aText,CTWin* aWin);
hgs
parents:
diff changeset
   326
protected:
hgs
parents:
diff changeset
   327
//from 	CTGraphicsStep
hgs
parents:
diff changeset
   328
	virtual void RunTestCaseL(TInt aCurTestCase);
hgs
parents:
diff changeset
   329
private:
hgs
parents:
diff changeset
   330
	void DoGdiTestL(const TRect &aRect, TInt aNum);
hgs
parents:
diff changeset
   331
	void NonDrawing();
hgs
parents:
diff changeset
   332
private:
hgs
parents:
diff changeset
   333
	TSize iWinSize;
hgs
parents:
diff changeset
   334
	TInt iSubState;
hgs
parents:
diff changeset
   335
	CGdiTestLowLevel *iGdiTest;
hgs
parents:
diff changeset
   336
	CTestWindow* iWin;
hgs
parents:
diff changeset
   337
	CFont* iFont;
hgs
parents:
diff changeset
   338
	TInt iTextOffsetX;
hgs
parents:
diff changeset
   339
	TInt iTextOffsetY;
hgs
parents:
diff changeset
   340
	TBool iTestPassing;
hgs
parents:
diff changeset
   341
	};
hgs
parents:
diff changeset
   342
	
hgs
parents:
diff changeset
   343
class CTGdiStep : public CTGraphicsStep
hgs
parents:
diff changeset
   344
	{
hgs
parents:
diff changeset
   345
public:
hgs
parents:
diff changeset
   346
	CTGdiStep();
hgs
parents:
diff changeset
   347
protected:	
hgs
parents:
diff changeset
   348
	//from CTGraphicsStep
hgs
parents:
diff changeset
   349
	virtual CTGraphicsBase* CreateTestL();
hgs
parents:
diff changeset
   350
	};
hgs
parents:
diff changeset
   351
hgs
parents:
diff changeset
   352
_LIT(KTGdiStep,"TGdi");
hgs
parents:
diff changeset
   353
hgs
parents:
diff changeset
   354
hgs
parents:
diff changeset
   355
#endif