os/graphics/graphicsdeviceinterface/colourpalette/src/palette.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2002-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 #include "palette.h"
    17 #include "rgbarray.h"
    18 
    19 
    20 EXPORT_C const TUint32* DynamicPalette::Color16array()
    21 	{
    22 	return color16array;
    23 	}
    24 
    25 EXPORT_C const TUint8* DynamicPalette::Color16inverse()
    26 	{
    27 	return color16inverse;
    28 	}
    29 
    30 EXPORT_C const TColor256Util* DynamicPalette::DefaultColor256Util()
    31 /** Returns the current system palette. Depending on the
    32 implementation this value depends on the current color
    33 scheme set using SetColorScheme.
    34 
    35 @return   Current system palette. */
    36 	{
    37 	return &defaulTColor256Util;
    38 	}
    39 
    40 EXPORT_C void DynamicPalette::SetColor256Util(DynamicPalette::TIndex /*aScheme*/)
    41 /** Switches the device to use the specified colour palette. 
    42 	
    43 The reference version provided does nothing, since only one palette is used 
    44 in the reference implementation.
    45 	
    46 @param aIndex The index number of the colour palette to use. */
    47 	{
    48 	}
    49 
    50 
    51