os/graphics/graphicsdeviceinterface/screendriver/inc/bitdrawsurface.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2006-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 __BITDRAWSURFACE_H__
    17 #define __BITDRAWSURFACE_H__
    18 
    19 #include <bitdev.h>
    20 
    21 class TSurfaceId;
    22 
    23 /**
    24 MSurfaceId interface manages the screen surface access
    25 
    26 The interface could be retrieved calling CFbsDrawDevice::GetInterface() with 
    27 KSurfaceInterfaceID as an argument.
    28    
    29 MSurfaceId interface lifetime is the same as the lifetime of CFbsDrawDevice
    30 interface, which creates it. 
    31 Do not try to delete MSurfaceId interface pointer!
    32    
    33    
    34 @see CFbsDrawDevice
    35 @internalTechnology
    36 */
    37 class MSurfaceId
    38 	{
    39 public:
    40 	/**
    41 	@internalTechnology
    42 	*/
    43 	virtual void GetSurface(TSurfaceId& aSid) const = 0;
    44 
    45 	/**
    46 	@internalTechnology
    47 	*/
    48 	virtual TUint DeviceOrientationsAvailable() const = 0;
    49 
    50 	/**
    51 	@internalTechnology
    52 	*/
    53 	virtual TBool SetDeviceOrientation(TDeviceOrientation aOrientation) = 0;
    54 
    55 	/**
    56 	@internalTechnology
    57 	*/
    58 	virtual TDeviceOrientation DeviceOrientation() const = 0;
    59 	};
    60 
    61 #endif//__BITDRAWSURFACE_H__
    62 
    63