#include <mw/gulcolor.h>
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.
Parameter | Description |
---|---|
aLogicalColor | The logical colour. |
aColor | The TRgb colour. |
IMPORT_C TInt | Count | ( | ) | const |
Gets the number of logical to physical colour mappings in the array.
Returns: The number of logical to physical colour mappings in the array.
IMPORT_C CColorArray * | NewLC | ( | ) | [static] |
Creates a colour array and leaves it on the cleanup stack.
Returns: Pointer to the colour array.
IMPORT_C void | Remove | ( | TInt | aLogicalColor | ) |
Removes a logical to physical colour mapping from the array.
Parameter | Description |
---|---|
aLogicalColor | The logical colour to remove. |
Changes a logical to physical mapping in the colour array. The specified logical colour must already exist in the colour array.
Parameter | Description |
---|---|
aLogicalColor | The logical colour. |
aColor | The TRgb value. |