CColorArray Class Reference

class CColorArray : public CBase

A dynamic array of mappings between logical and physical colours ( TRgb values).

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

CColorArray()

CColorArray ( ) [private]

~CColorArray()

IMPORT_C ~CColorArray ( )

Destructor.

Member Functions Documentation

AddL(TInt, TRgb)

IMPORT_C void AddL ( TInt aLogicalColor,
TRgb aColor
)

Adds a logical to physical colour mapping to the colour array. The specified logical colour must not already exist in the colour array.

panic
EGUL 4 The logical colour specified already exists in the array. Debug builds only.

Parameters

TInt aLogicalColor The logical colour.
TRgb aColor The TRgb colour.

Color(TInt)

IMPORT_C TRgb Color ( TInt aLogicalColor ) const

Gets the physical colour ( TRgb ) which corresponds to a logical colour.

panic
EGUL 3 The logical colour specified is not found in the colour array.

Parameters

TInt aLogicalColor The logical colour.

ConstructL()

void ConstructL ( ) [private]

Contains(TInt)

IMPORT_C TBool Contains ( TInt aLogicalColor ) const

Tests whether the colour array contains the specified logical colour.

Parameters

TInt aLogicalColor The logical colour.

Count()

IMPORT_C TInt Count ( ) const

Gets the number of logical to physical colour mappings in the array.

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const

Parameters

RWriteStream & aStream

Find(TInt)

TInt Find ( TInt aLogicalColor ) const [private]

Parameters

TInt aLogicalColor

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream )

Parameters

RReadStream & aStream

NewL()

IMPORT_C CColorArray * NewL ( ) [static]

Creates a colour array.

NewLC()

IMPORT_C CColorArray * NewLC ( ) [static]

Creates a colour array and leaves it on the cleanup stack.

NewLC(const CColorArray &)

CColorArray * NewLC ( const CColorArray & aArray ) [static]

Parameters

const CColorArray & aArray

Remove(TInt)

IMPORT_C void Remove ( TInt aLogicalColor )

Removes a logical to physical colour mapping from the array.

panic
EGUL 3 The logical colour specified is not found in the array.

Parameters

TInt aLogicalColor The logical colour to remove.

Reset()

IMPORT_C void Reset ( )

Resets the colour array.

SetColor(TInt, TRgb)

IMPORT_C void SetColor ( TInt aLogicalColor,
TRgb aColor
)

Changes a logical to physical mapping in the colour array. The specified logical colour must already exist in the colour array.

panic
EGUL 3 The logical colour specified is not found in the colour array.

Parameters

TInt aLogicalColor The logical colour.
TRgb aColor The TRgb value.

Member Data Documentation

CArrayFixFlat< TColor > iColors

CArrayFixFlat < TColor > iColors [private]