#include <palette.h>
class DynamicPalette |
Public Member Enumerations | |
---|---|
enum | TIndex { EIndex0, EIndex1, EIndex2, EIndex4, EIndex5 } |
Public Member Functions | |
---|---|
IMPORT_C const TUint32 * | Color16array() |
IMPORT_C const TUint8 * | Color16inverse() |
IMPORT_C const TColor256Util * | DefaultColor256Util() |
IMPORT_C void | SetColor256Util(TIndex) |
Hooks to allow dynamic palette switching in 256 colour mode.
TRgb::Color256() transparently invokes hooks in this class. The behaviour of the system can be customized by replacing the implementation in palette.dll with device-specific functionality to switch the colour palette at run-time.
Stores the index values of the palettes defined. This enum may be as short or as long as desired - there is no requirement that the size of the enum in any given implementation be limited to the five sample values given in this example implementation.
IMPORT_C const TColor256Util * | DefaultColor256Util | ( | ) | [static] |
Returns the current system palette. Depending on the implementation this value depends on the current color scheme set using SetColorScheme.
Returns: Current system palette.
IMPORT_C void | SetColor256Util | ( | TIndex | aIndex | ) | [static] |
Switches the device to use the specified colour palette.
The reference version provided does nothing, since only one palette is used in the reference implementation.
Parameter | Description |
---|---|
aIndex | The index number of the colour palette to use. |