gfxconversion/mifconv/inc/mifconv_types.h
changeset 0 f453ebb75370
equal deleted inserted replaced
-1:000000000000 0:f453ebb75370
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Mifconv type definitions.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MIFCONVTYPES_H__
       
    20 #define __MIFCONVTYPES_H__
       
    21 
       
    22 #include <vector>
       
    23 #include <string>
       
    24 #include <map>
       
    25 
       
    26 namespace MifConvDefs
       
    27 {
       
    28 	typedef std::string MifConvString;
       
    29 	typedef std::vector<MifConvString> MifConvStringList;
       
    30     
       
    31 	enum IconDepth
       
    32 	{
       
    33 		IconDepth_Undefined = 0,
       
    34 		IconDepth_1,
       
    35 		IconDepth_2,
       
    36 		IconDepth_4,
       
    37 		IconDepth_8,
       
    38 		IconDepth_c4,
       
    39 		IconDepth_c8,
       
    40 		IconDepth_c12,
       
    41 		IconDepth_c16,
       
    42 		IconDepth_c24,
       
    43 		IconDepth_c32
       
    44 	};
       
    45 
       
    46 	enum IconMaskDepth
       
    47 	{
       
    48 		IconMaskDepth_Undefined = 0,
       
    49 		IconMaskDepth_1,
       
    50 		IconMaskDepth_8
       
    51 	};
       
    52     
       
    53     enum IconDisplayMode
       
    54 	{
       
    55 	/** No display mode */
       
    56 	DisplayMode_None,
       
    57 	/** Monochrome display mode (1 bpp) */
       
    58 	DisplayMode_Gray2,
       
    59 	/** Four grayscales display mode (2 bpp) */
       
    60 	DisplayMode_Gray4,
       
    61 	/** 16 grayscales display mode (4 bpp) */
       
    62 	DisplayMode_Gray16,
       
    63 	/** 256 grayscales display mode (8 bpp) */
       
    64 	DisplayMode_Gray256,
       
    65 	/** Low colour EGA 16 colour display mode (4 bpp) */
       
    66 	DisplayMode_Color16,
       
    67 	/** 256 colour display mode (8 bpp) */
       
    68 	DisplayMode_Color256,
       
    69 	/** 64,000 colour display mode (16 bpp) */
       
    70 	DisplayMode_Color64K,
       
    71 	/** True colour display mode (24 bpp) */
       
    72 	DisplayMode_Color16M,
       
    73 	/** (Not an actual display mode used for moving buffers containing bitmaps) */
       
    74 	DisplayMode_Rgb,
       
    75 	/** 4096 colour display (12 bpp). */
       
    76 	DisplayMode_Color4K,
       
    77 	DisplayMode_Color16MU,
       
    78 	//Any new display mode should be insterted here!
       
    79 	//There might be up to 255 display modes, so value of the last
       
    80 	//inserted EColorXXX enum item should be less than 256 -
       
    81 	//BC reasons!
       
    82 	DisplayMode_ColorLast
       
    83 	};
       
    84     
       
    85     enum IconFormatType
       
    86     {
       
    87         IconFormatType_BMP,
       
    88         IconFormatType_SVG,
       
    89         IconFormatType_NVG
       
    90     };
       
    91 
       
    92     typedef std::map<MifConvString, IconDepth> MifConvIconDepthMap;
       
    93     typedef std::map<MifConvString, IconMaskDepth> MifConvIconMaskDepthMap;
       
    94     typedef std::map<IconDepth, IconDisplayMode> MifConvIconDisplayModeMap;
       
    95     typedef std::map<IconMaskDepth, IconDisplayMode> MifConvMaskIconDisplayModeMap;
       
    96 
       
    97     typedef std::pair<char*, unsigned int> MifConvFileData;
       
    98 }
       
    99 
       
   100 #endif