| 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.
| Public Member Functions | |
|---|---|
| ~CColorList() | |
| IMPORT_C void | AddColorArrayL(TUid, CColorArray *) |
| IMPORT_C TRgb | Color(TLogicalColor) |
| IMPORT_C TRgb | Color(TUid, TInt) |
| IMPORT_C CColorArray * | ColorArray(TUid) |
| IMPORT_C TBool | ContainsColorArray(TUid) |
| IMPORT_C TInt | Count() |
| IMPORT_C void | DeleteColorArray(TUid) |
| IMPORT_C void | ExternalizeL(RWriteStream &) |
| IMPORT_C void | InternalizeL(RReadStream &) |
| IMPORT_C void | MergeL(const CColorList &) |
| IMPORT_C CColorList * | NewL(CArrayFix< TRgb > *) |
| IMPORT_C CColorList * | NewLC() |
| IMPORT_C void | SetColor(TLogicalColor, TRgb) |
| Private Member Functions | |
|---|---|
| CColorList(CArrayFix< TRgb > *) | |
| TInt | Find(TUid) |
| Private Attributes | |
|---|---|
| CArrayFix< TAppColorList > * | iAppColors |
| CArrayFix< TRgb > * | iEikColors |
| IMPORT_C void | AddColorArrayL | ( | TUid | aApp, |
| CColorArray * | aArray | |||
| ) | ||||
| TUid aApp | |
| CColorArray * aArray |
| IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
| RWriteStream & aStream |
| IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
| RReadStream & aStream |
| IMPORT_C void | MergeL | ( | const CColorList & | aList | ) |
| const CColorList & aList |
| IMPORT_C void | SetColor | ( | TLogicalColor | aLogicalColor, |
| TRgb | aColor | |||
| ) | ||||
| TLogicalColor aLogicalColor | |
| TRgb aColor |