CColorList Class Reference

class CColorList : public CBase

A palette that maps logical colours (TLogicalColor) to physical (TRgb) values. It also supports independent sections for applications: a section is identified by an application UID, and the mappings are held as a colour array (CColorArray).

A colour list also supports mapping for both four-grey and 256-colour schemes; the 256-colour scheme will be used and will look good if the screen mode supports 16 or more colours. Otherwise, the four-grey scheme will be used.

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

CColorList(CArrayFix< TRgb > *)

CColorList(CArrayFix< TRgb > *aColors)[private]

Parameters

CArrayFix< TRgb > * aColors

~CColorList()

IMPORT_C~CColorList()

Member Functions Documentation

AddColorArrayL(TUid, CColorArray *)

IMPORT_C voidAddColorArrayL(TUidaApp,
CColorArray *aArray
)

Parameters

TUid aApp
CColorArray * aArray

Color(TLogicalColor)

IMPORT_C TRgbColor(TLogicalColoraColor)const

Parameters

TLogicalColor aColor

Color(TUid, TInt)

IMPORT_C TRgbColor(TUidaApp,
TIntaColor
)const

Parameters

TUid aApp
TInt aColor

ColorArray(TUid)

IMPORT_C CColorArray *ColorArray(TUidaApp)const

Parameters

TUid aApp

ContainsColorArray(TUid)

IMPORT_C TBoolContainsColorArray(TUidaApp)const

Parameters

TUid aApp

Count()

IMPORT_C TIntCount()const

DeleteColorArray(TUid)

IMPORT_C voidDeleteColorArray(TUidaApp)

Parameters

TUid aApp

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

Find(TUid)

TInt Find(TUidaApp)const [private]

Parameters

TUid aApp

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

MergeL(const CColorList &)

IMPORT_C voidMergeL(const CColorList &aList)

Parameters

const CColorList & aList

NewL(CArrayFix< TRgb > *)

IMPORT_C CColorList *NewL(CArrayFix< TRgb > *aColors)[static]

Parameters

CArrayFix< TRgb > * aColors

NewLC()

IMPORT_C CColorList *NewLC()[static]

SetColor(TLogicalColor, TRgb)

IMPORT_C voidSetColor(TLogicalColoraLogicalColor,
TRgbaColor
)

Parameters

TLogicalColor aLogicalColor
TRgb aColor

Member Data Documentation

CArrayFix< TAppColorList > * iAppColors

CArrayFix< TAppColorList > *iAppColors[private]

CArrayFix< TRgb > * iEikColors

CArrayFix< TRgb > *iEikColors[private]