graphicsdeviceinterface/directgdi/test/tdisplaymode_mapping.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-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 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21 
       
    22 #ifndef __TDISPLAYMODE_MAPPING_H__
       
    23 #define __TDISPLAYMODE_MAPPING_H__
       
    24 
       
    25 #include <e32const.h>
       
    26 #include <pixelformats.h>
       
    27 #include <gdi.h>
       
    28 
       
    29 // a helper class for mapping between display modes and pixel formats in directgdi tests
       
    30 class TDisplayModeMapping
       
    31  	{
       
    32 public:	
       
    33 	static TDisplayMode MapPixelFormatToDisplayMode(const TUidPixelFormat aFormat);
       
    34 	static TUidPixelFormat MapDisplayModeToPixelFormat(const TDisplayMode aDisplayMode);
       
    35 	static TDisplayMode ConvertPixelFormatStringToDisplayMode(const TPtrC aPixelformatString);
       
    36 	static TUidPixelFormat ConvertPixelFormatStringToPixelFormat(const TPtrC aPixelformatString);
       
    37 	static TPtrC ConvertPixelFormatToPixelFormatString(const TUidPixelFormat aFormat);
       
    38 	static TPtrC ConvertPixelFormatToShortPixelFormatString(const TUidPixelFormat aFormat);
       
    39  	};
       
    40 
       
    41 #endif