Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <palette.h>
Link against: palette.lib

Class DynamicPalette

class DynamicPalette;

Description

Hooks to allow dynamic palette switching in 256 colour mode.

TRgb::Color256(TInt) 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.

Members

Defined in DynamicPalette:


Member functions


DefaultColor256Util()

IMPORT_C static const TColor256Util* DefaultColor256Util();

Description

Returns the current system palette. Depending on the implementation this value depends on the current color scheme set using SetColorScheme.

Return value

const TColor256Util *

Current system palette.


SetColor256Util(TIndex)

IMPORT_C static void SetColor256Util(TIndex aIndex);

Description

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.

Parameters

DynamicPalette::TIndex aIndex

The index number of the colour palette to use.


Color16array()

IMPORT_C static const TUint32* Color16array();

Description

Return value

const TUint32 *


Color16inverse()

IMPORT_C static const TUint8* Color16inverse();

Description

Return value

const TUint8 *

[Top]


Member enumerations


Enum TIndex

TIndex

Description

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.

EIndex0

A palette index number.

EIndex1

A palette index number.

EIndex2

A palette index number.

EIndex4

A palette index number.

EIndex5

A palette index number.