author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 2 |
// All rights reserved. |
sl@0 | 3 |
// This component and the accompanying materials are made available |
sl@0 | 4 |
// under the terms of "Eclipse Public License v1.0" |
sl@0 | 5 |
// which accompanies this distribution, and is available |
sl@0 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
sl@0 | 7 |
// |
sl@0 | 8 |
// Initial Contributors: |
sl@0 | 9 |
// Nokia Corporation - initial contribution. |
sl@0 | 10 |
// |
sl@0 | 11 |
// Contributors: |
sl@0 | 12 |
// |
sl@0 | 13 |
// Description: |
sl@0 | 14 |
// |
sl@0 | 15 |
|
sl@0 | 16 |
/** |
sl@0 | 17 |
@file |
sl@0 | 18 |
@test |
sl@0 | 19 |
@internalComponent - Internal Symbian test code |
sl@0 | 20 |
*/ |
sl@0 | 21 |
|
sl@0 | 22 |
#ifndef __TDERIVED_H__ |
sl@0 | 23 |
#define __TDERIVED_H__ |
sl@0 | 24 |
|
sl@0 | 25 |
#include <e32std.h> |
sl@0 | 26 |
#include <w32std.h> |
sl@0 | 27 |
#include "../tlib/testbase.h" |
sl@0 | 28 |
#include "AUTO.H" |
sl@0 | 29 |
#include "TGraphicsHarness.h" |
sl@0 | 30 |
|
sl@0 | 31 |
class CDerivedWindowGc : public CWindowGc |
sl@0 | 32 |
{ |
sl@0 | 33 |
public: |
sl@0 | 34 |
CDerivedWindowGc(CWsScreenDevice *aDevice); |
sl@0 | 35 |
~CDerivedWindowGc(); |
sl@0 | 36 |
void DrawLine(const TPoint &aPoint1,const TPoint &aPoint2); |
sl@0 | 37 |
}; |
sl@0 | 38 |
|
sl@0 | 39 |
class RDerivedSession : public RWsSession |
sl@0 | 40 |
{ |
sl@0 | 41 |
public: |
sl@0 | 42 |
TInt ResourceCount(); |
sl@0 | 43 |
void EnableAutoFlush(); |
sl@0 | 44 |
}; |
sl@0 | 45 |
|
sl@0 | 46 |
class RDerivedBlankWindow : public RBlankWindow |
sl@0 | 47 |
{ |
sl@0 | 48 |
public: |
sl@0 | 49 |
RDerivedBlankWindow(); |
sl@0 | 50 |
RDerivedBlankWindow(RWsSession &aWs); |
sl@0 | 51 |
void SetColor(TRgb aColor); |
sl@0 | 52 |
void SetColorGray(); |
sl@0 | 53 |
}; |
sl@0 | 54 |
|
sl@0 | 55 |
class RDerivedWindow : public RWindow |
sl@0 | 56 |
{ |
sl@0 | 57 |
public: |
sl@0 | 58 |
RDerivedWindow(); |
sl@0 | 59 |
RDerivedWindow(RWsSession &aWs); |
sl@0 | 60 |
void SetBackgroundColor(TRgb aColor); |
sl@0 | 61 |
void SetBackgroundColorGray(); |
sl@0 | 62 |
}; |
sl@0 | 63 |
|
sl@0 | 64 |
class RDerivedBackedUpWindow : public RBackedUpWindow |
sl@0 | 65 |
{ |
sl@0 | 66 |
public: |
sl@0 | 67 |
RDerivedBackedUpWindow(); |
sl@0 | 68 |
RDerivedBackedUpWindow(RWsSession &aWs); |
sl@0 | 69 |
TInt BitmapHandle(); |
sl@0 | 70 |
}; |
sl@0 | 71 |
|
sl@0 | 72 |
class RDerivedWindowGroup : public RWindowGroup |
sl@0 | 73 |
{ |
sl@0 | 74 |
public: |
sl@0 | 75 |
RDerivedWindowGroup(); |
sl@0 | 76 |
RDerivedWindowGroup(RWsSession &aWs); |
sl@0 | 77 |
TName Name() const; |
sl@0 | 78 |
}; |
sl@0 | 79 |
|
sl@0 | 80 |
class CDerivedScreenDevice : public CWsScreenDevice |
sl@0 | 81 |
{ |
sl@0 | 82 |
public: |
sl@0 | 83 |
CDerivedScreenDevice(RWsSession &aWs); |
sl@0 | 84 |
CDerivedScreenDevice(); |
sl@0 | 85 |
TSize SizeInPixels() const; |
sl@0 | 86 |
}; |
sl@0 | 87 |
|
sl@0 | 88 |
class RDerivedSprite : public RWsSprite |
sl@0 | 89 |
{ |
sl@0 | 90 |
public: |
sl@0 | 91 |
RDerivedSprite(); |
sl@0 | 92 |
RDerivedSprite(RWsSession &aWs); |
sl@0 | 93 |
}; |
sl@0 | 94 |
|
sl@0 | 95 |
class RDerivedPointerCursor : public RWsPointerCursor |
sl@0 | 96 |
{ |
sl@0 | 97 |
public: |
sl@0 | 98 |
RDerivedPointerCursor(); |
sl@0 | 99 |
RDerivedPointerCursor(RWsSession &aWs); |
sl@0 | 100 |
}; |
sl@0 | 101 |
|
sl@0 | 102 |
class CTDerived : public CTWsGraphicsBase |
sl@0 | 103 |
{ |
sl@0 | 104 |
public: |
sl@0 | 105 |
CTDerived(CTestStep* aStep); |
sl@0 | 106 |
void ConstructL(); |
sl@0 | 107 |
void DerivedWindowGcL(); |
sl@0 | 108 |
void DerivedSession(); |
sl@0 | 109 |
void DerivedWindows(); |
sl@0 | 110 |
void DerivedScreenDeviceL(); |
sl@0 | 111 |
void DerivedSprite(); |
sl@0 | 112 |
~CTDerived(); |
sl@0 | 113 |
protected: |
sl@0 | 114 |
//from CTGraphicsStep |
sl@0 | 115 |
virtual void RunTestCaseL(TInt aCurTestCase); |
sl@0 | 116 |
private: |
sl@0 | 117 |
TSize iWinSize; |
sl@0 | 118 |
RDerivedSession iDSession; |
sl@0 | 119 |
RDerivedWindow iDRedraw; |
sl@0 | 120 |
RDerivedBlankWindow iDBlank; |
sl@0 | 121 |
RDerivedBackedUpWindow iDBackedUp; |
sl@0 | 122 |
RDerivedWindowGroup iDGroup; |
sl@0 | 123 |
RDerivedSprite iDSprite; |
sl@0 | 124 |
RDerivedPointerCursor iDPCursor; |
sl@0 | 125 |
}; |
sl@0 | 126 |
|
sl@0 | 127 |
class CTDerivedStep : public CTGraphicsStep |
sl@0 | 128 |
{ |
sl@0 | 129 |
public: |
sl@0 | 130 |
CTDerivedStep(); |
sl@0 | 131 |
protected: |
sl@0 | 132 |
//from CTGraphicsStep |
sl@0 | 133 |
virtual CTGraphicsBase* CreateTestL(); |
sl@0 | 134 |
}; |
sl@0 | 135 |
|
sl@0 | 136 |
_LIT(KTDerivedStep,"TDerived"); |
sl@0 | 137 |
|
sl@0 | 138 |
|
sl@0 | 139 |
#endif |