graphicsdeviceinterface/screendriver/smint/scdraw.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1997-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 #ifndef __SCDRAW_H__
       
    17 #define __SCDRAW_H__
       
    18 
       
    19 #ifndef __E32SVR_H__
       
    20 #include <e32svr.h>
       
    21 #endif
       
    22 #include "BMDRAW.H"
       
    23 
       
    24 /**
       
    25 Change the following two defines if the hardware display mode is changed
       
    26 @internalComponent
       
    27 */
       
    28 #define SCREEN_LAYOUT_DISPLAY_MODE EColor256
       
    29 #define SCREEN_LAYOUT_BASE_BITMAP CDrawEightBppBitmapColor
       
    30 
       
    31 /**
       
    32 @internalComponent
       
    33 */
       
    34 class CDrawScreenBitmap : public SCREEN_LAYOUT_BASE_BITMAP
       
    35 	{
       
    36 public:
       
    37 	virtual TInt ConstructScreen(TInt aScreenNo, TAny* aBitmapAddress,TSize aSize);
       
    38 	virtual void SetDisplayMode(CFbsDrawDevice* aDrawDevice);
       
    39 	virtual void OrientationsAvailable(TBool aOrientation[4]);
       
    40 	virtual TBool SetOrientation(TOrientation aOrientation);
       
    41 	virtual TInt HorzTwipsPerThousandPixels() const;
       
    42 	virtual TInt VertTwipsPerThousandPixels() const;
       
    43 private:
       
    44     TInt iScreenNo;
       
    45 	};
       
    46 
       
    47 #endif
       
    48