First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
25 /** Hooks to allow dynamic palette switching in 256 colour mode.
27 TRgb::Color256() transparently invokes hooks in this class. The behaviour
28 of the system can be customized by replacing the implementation in palette.dll
29 with device-specific functionality to switch the colour palette at run-time.
35 /** Stores the index values of the palettes defined. This enum may be as
36 short or as long as desired - there is no requirement that the size of the
37 enum in any given implementation be limited to the five sample values given
38 in this example implementation. */
41 /** A palette index number. */
43 /** A palette index number. */
45 /** A palette index number. */
47 /** A palette index number. */
49 /** A palette index number. */
53 IMPORT_C static const TColor256Util* DefaultColor256Util();
54 IMPORT_C static void SetColor256Util(TIndex aIndex);
56 IMPORT_C static const TUint32* Color16array();
57 IMPORT_C static const TUint8* Color16inverse();