#include <mw/gulcolor.h>
Link against: egul.lib
| class CColorArray : public CBase | 
| Public Member Functions | |
|---|---|
| ~CColorArray() | |
| IMPORT_C void | AddL(TInt, TRgb) | 
| IMPORT_C TRgb | Color(TInt) | 
| IMPORT_C TBool | Contains(TInt) | 
| IMPORT_C TInt | Count() | 
| void | ExternalizeL(RWriteStream &) | 
| void | InternalizeL(RReadStream &) | 
| IMPORT_C CColorArray * | NewL() | 
| IMPORT_C CColorArray * | NewLC() | 
| CColorArray * | NewLC(const CColorArray &) | 
| IMPORT_C void | Remove(TInt) | 
| IMPORT_C void | Reset() | 
| IMPORT_C void | SetColor(TInt, TRgb) | 
A dynamic array of mappings between logical and physical colours (TRgb values).
Adds a logical to physical colour mapping to the colour array. The specified logical colour must not already exist in the colour array.
| Parameters | |
|---|---|
| aLogicalColor | The logical colour. | 
| aColor | The TRgb colour. | 
| Panic Codes | |
|---|---|
| EGUL | 4 The logical colour specified already exists in the array. Debug builds only. | 
| IMPORT_C TInt | Count | ( | ) | const | 
Gets the number of logical to physical colour mappings in the array.
| void | ExternalizeL | ( | RWriteStream & | aStream | ) | const | 
| void | InternalizeL | ( | RReadStream & | aStream | ) | 
| IMPORT_C CColorArray * | NewL | ( | ) | [static] | 
Creates a colour array.
| IMPORT_C CColorArray * | NewLC | ( | ) | [static] | 
Creates a colour array and leaves it on the cleanup stack.
| CColorArray * | NewLC | ( | const CColorArray & | aArray | ) | [static] | 
| IMPORT_C void | Remove | ( | TInt | aLogicalColor | ) | 
Removes a logical to physical colour mapping from the array.
| Parameters | |
|---|---|
| aLogicalColor | The logical colour to remove. | 
| Panic Codes | |
|---|---|
| EGUL | 3 The logical colour specified is not found in the array. |