Location:
gulcolor.h
Link against: egul.lib
CColorArray
Supported from 6.0
Provides functions used to create a colour array, which contains a list of available colours.
The colour array is a dynamic array of mappings between logical and
physical colours (TRgb
values).
|
Defined in CColorArray
:
AddL()
, Color()
, Contains()
, Count()
, ExternalizeL()
, InternalizeL()
, NewL()
, NewLC()
, Remove()
, Reset()
, SetColor()
, ~CColorArray()
Inherited from CBase
:
operator new()
static CColorArray* NewL();
Creates an array of colours.
|
static CColorArray* NewLC();
Creates an array of colours and puts it on the cleanup stack.
|
static CColorArray* NewLC(const CColorArray& aArray);
Creates an array of colours using an existing array and puts it on the cleanup stack.
|
|
TRgb Color(TInt aLogicalColor) const;
Gets the physical (TRgb
) colour which corresponds
to a logical colour.
|
|
void SetColor(TInt aLogicalColor,TRgb aColor);
Sets a mapping in the colour array between the logical and physical colours specified.
A mapping must already exist for the logical colour.
|
TBool Contains(TInt aLogicalColor) const;
Tests whether the colour array contains the logical colour specified.
|
|
TInt Count() const;
Returns the number of elements held in the array.
|
void AddL(TInt aLogicalColor,TRgb aColor);
Adds a colour to the array, with its logical and
TRgb
colours.
A mapping cannot already exist in the array for the logical colour.
|
void Remove(TInt aLogicalColor);
Removes a colour from the array.
|
void InternalizeL(RReadStream& aStream);
Internalises the colour array.
|
void ExternalizeL(RWriteStream& aStream) const;
Externalises the colour array.
|