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 voidAddL(TIntaLogicalColor,
TRgbaColor
)

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 aLogicalColorThe logical colour.
TRgb aColorThe TRgb colour.

Color(TInt)

IMPORT_C TRgbColor(TIntaLogicalColor)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 aLogicalColorThe logical colour.

ConstructL()

voidConstructL()[private]

Contains(TInt)

IMPORT_C TBoolContains(TIntaLogicalColor)const

Tests whether the colour array contains the specified logical colour.

Parameters

TInt aLogicalColorThe logical colour.

Count()

IMPORT_C TIntCount()const

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

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

Find(TInt)

TInt Find(TIntaLogicalColor)const [private]

Parameters

TInt aLogicalColor

InternalizeL(RReadStream &)

voidInternalizeL(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 voidRemove(TIntaLogicalColor)

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 aLogicalColorThe logical colour to remove.

Reset()

IMPORT_C voidReset()

Resets the colour array.

SetColor(TInt, TRgb)

IMPORT_C voidSetColor(TIntaLogicalColor,
TRgbaColor
)

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 aLogicalColorThe logical colour.
TRgb aColorThe TRgb value.

Member Data Documentation

CArrayFixFlat< TColor > iColors

CArrayFixFlat< TColor >iColors[private]