os/graphics/graphicsapitest/screendriverhaitest/screendriver/inc/displayconstants.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsapitest/screendriverhaitest/screendriver/inc/displayconstants.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,92 @@
1.4 +/*
1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#ifndef DISPLAY_CONSTANTS_H
1.23 +#define DISPLAY_CONSTANTS_H
1.24 +
1.25 +#include <gdi.h>
1.26 +
1.27 +const TInt KNumDispModes = 12;
1.28 +const TInt KNumTestBackgrounds = 6;
1.29 +const TInt KNumTestColors = 12;
1.30 +const TInt KNumDrawModes = 6;
1.31 +const TInt KMaskFill =3;
1.32 +const TInt KNumShadowModes = 4;
1.33 +const TInt KRectWidth = 32;
1.34 +
1.35 +const TDisplayMode TestDisplayMode[KNumDispModes] =
1.36 + {
1.37 + EGray2,
1.38 + EGray4,
1.39 + EGray16,
1.40 + EGray256,
1.41 + EColor16,
1.42 + EColor256,
1.43 + EColor4K,
1.44 + EColor64K,
1.45 + EColor16M,
1.46 + ERgb,
1.47 + EColor16MU,
1.48 + EColor16MA,
1.49 + };
1.50 +
1.51 +const TRgb TestBackground[KNumTestBackgrounds] =
1.52 + {
1.53 + KRgbWhite,
1.54 + KRgbBlack,
1.55 + TRgb(20,250,160),
1.56 + TRgb(0xff27D99f),
1.57 + TRgb(0x00E73121),
1.58 + TRgb(0x771FE3B7),
1.59 + };
1.60 +
1.61 +/**
1.62 +* Defines Color Values
1.63 +*/
1.64 +const TRgb TestColor[KNumTestColors] =
1.65 + {
1.66 + KRgbBlack,
1.67 + KRgbDarkGray,
1.68 + KRgbGray,
1.69 + KRgbWhite,
1.70 + KRgbRed,
1.71 + KRgbCyan,
1.72 + TRgb(230,180,70),
1.73 + TRgb(150,240,30),
1.74 + TRgb(20,250,160),
1.75 + TRgb((TUint32)0xff2665A3),
1.76 + TRgb((TUint32)0x002766A4),
1.77 + TRgb((TUint32)0x57339A4E),
1.78 + };
1.79 +
1.80 +const TUint32 MaskFill[KMaskFill] =
1.81 + {
1.82 + 0x00,
1.83 + 0xff,
1.84 + 0x3A,
1.85 + };
1.86 +
1.87 +enum TPostShadowMode
1.88 + {
1.89 + ENoPostShadow,
1.90 + EPostShadow,
1.91 + EPostFade,
1.92 + EPostShadowFade,
1.93 + };
1.94 +
1.95 +#endif // DISPLAY_CONSTANTS_H