Update contrib.
1 // Copyright (c) 2003-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.
14 // This module define the class and constants used for the different display
23 /********************************************************************/
24 #if !defined__SCDRAW_H__
27 #if !defined(__E32SVR_H__)
29 #endif /* __E32SVR_H__ */
34 * Define the palette constants size
37 const TInt KEightBppPaletteEntries = 256 ;
40 * Define the constants of the Bpp mode to set in the
44 const TUint16 KEightBppPixelBitSize = 3 << 12 ;
45 const TUint16 KSixteenBppPixelBitSize = 4 << 12 ; // In active mode (TFT)
48 * Define the CDrawEightBppScreenBitmapColor class
51 NONSHARABLE_CLASS(CDrawEightBppScreenBitmapColor) : public CDrawEightBppBitmapColor
54 virtual TInt InitScreen() ;
55 virtual TInt ConstructScreenL(TInt aScreenNo, TAny *aBitmapAddress, TSize aSize) ;
56 virtual void OrientationsAvailable(TBool aOrientation[4]) ;
57 virtual TBool SetOrientation(TOrientation aOrientation) ;
58 TInt SetCustomPalette(const CPalette* aPalette);
59 virtual void SetDisplayMode(CFbsDrawDevice*);
60 virtual TInt HorzTwipsPerThousandPixels() const;
61 virtual TInt VertTwipsPerThousandPixels() const;
63 virtual void SetSize(const TSize& aSize);
64 TUint16* iPaletteAddress ;
69 * Define the CDrawSixteenBppScreenBitmap class
73 class CDrawSixteenBppScreenBitmap : public CDrawSixteenBppBitmap
76 virtual TInt InitScreen() ;
77 virtual TInt ConstructScreenL(TInt aScreenNo, TAny *aBitmapAddress, TSize aSize) ;
78 virtual void OrientationsAvailable(TBool aOrientation[4]) ;
79 virtual TBool SetOrientation(TOrientation aOrientation) ;
80 virtual void SetDisplayMode(CFbsDrawDevice*);
81 virtual TInt HorzTwipsPerThousandPixels() const;
82 virtual TInt VertTwipsPerThousandPixels() const;
84 virtual void SetSize(const TSize& aSize);
90 * Define the CDrawUTwentyFourBppScreenBitmap class
94 class CDrawUTwentyFourBppScreenBitmap : public CDrawUTwentyFourBppBitmap
97 virtual TInt InitScreen() ;
98 virtual TInt ConstructScreenL(TInt aScreenNo, TAny *aBitmapAddress, TSize aSize) ;
99 virtual void OrientationsAvailable(TBool aOrientation[4]) ;
100 virtual TBool SetOrientation(TOrientation aOrientation) ;
101 virtual void SetDisplayMode(CFbsDrawDevice*);
102 virtual TInt HorzTwipsPerThousandPixels() const;
103 virtual TInt VertTwipsPerThousandPixels() const;
105 virtual void SetSize(const TSize& aSize);
106 TUint16* iPaletteAddress ;
111 * Define the CDrawThirtyTwoBppScreenBitmapAlpha class
115 class CDrawThirtyTwoBppScreenBitmapAlpha : public CDrawThirtyTwoBppBitmapAlpha
118 virtual TInt InitScreen() ;
119 virtual TInt ConstructScreenL(TInt aScreenNo, TAny *aBitmapAddress, TSize aSize) ;
120 virtual void OrientationsAvailable(TBool aOrientation[4]) ;
121 virtual TBool SetOrientation(TOrientation aOrientation) ;
122 virtual void SetDisplayMode(CFbsDrawDevice*);
123 virtual TInt HorzTwipsPerThousandPixels() const;
124 virtual TInt VertTwipsPerThousandPixels() const;
126 virtual void SetSize(const TSize& aSize);
127 TUint16* iPaletteAddress ;
132 * Define the CDrawThirtyTwoBppScreenBitmapAlphaPM class
136 class CDrawThirtyTwoBppScreenBitmapAlphaPM : public CDrawThirtyTwoBppBitmapAlphaPM
139 virtual TInt InitScreen() ;
140 virtual TInt ConstructScreenL(TInt aScreenNo, TAny *aBitmapAddress, TSize aSize) ;
141 virtual void OrientationsAvailable(TBool aOrientation[4]) ;
142 virtual TBool SetOrientation(TOrientation aOrientation) ;
143 virtual void SetDisplayMode(CFbsDrawDevice*);
144 virtual TInt HorzTwipsPerThousandPixels() const;
145 virtual TInt VertTwipsPerThousandPixels() const;
147 virtual void SetSize(const TSize& aSize);
148 TUint16* iPaletteAddress ;
152 #endif /* __SCDRAW_H__ */