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.
Nested Classes and Structures
Constructor & Destructor Documentation
CColorList(CArrayFix< TRgb > *)
Member Functions Documentation
AddColorArrayL(TUid, CColorArray *)
Creates a new entry in the colour list with the specified application UID and its colour array.
Parameters
TUid
aApp
|
The UID of the application.
|
CColorArray
* aArray
|
The application's colour array. The colour list takes ownership.
|
Color(TLogicalColor)
Gets the physical colour (
TRgb
) equivalent of a logical colour.
-
panic
-
EGUL 3 The logical color specified is not found in the colour list.
Color(TUid, TInt)
Gets the physical colour (
TRgb
) equivalent of a logical colour from the specified application's colour array.
-
panic
-
EGUL 6 The specified application does not have an entry in the colour list.
Parameters
TUid
aApp
|
The UID of the application.
|
TInt
aColor
|
A logical colour supported by the application.
|
ColorArray(TUid)
Gets an application's colour array.
-
panic
-
EGUL 6 The specified application does not have an entry in the colour list.
Parameters
TUid
aApp
|
The UID of the application.
|
ContainsColorArray(TUid)
IMPORT_C
TBool
|
ContainsColorArray
|
(
|
TUid
|
aApp
|
)
|
const
|
Tests whether the specified application has an entry in the colour list.
Parameters
TUid
aApp
|
The UID of the application.
|
Count()
IMPORT_C
TInt
|
Count
|
(
|
)
|
const
|
Gets the number of colors in the list.
DeleteColorArray(TUid)
IMPORT_C void
|
DeleteColorArray
|
(
|
TUid
|
aApp
|
)
|
|
Deletes the entry in the colour list for the specified application, and deletes the application's colour array.
-
panic
-
EGUL 6 The specified application does not have an entry in the colour list.
Parameters
TUid
aApp
|
The UID of the application whose entry is deleted from the colour list.
|
ExternalizeL(RWriteStream &)
Externalises the colour list to a write stream.
Parameters
RWriteStream
& aStream
|
Stream to which the object should be externalised.
|
InternalizeL(RReadStream &)
Internalises the colour list from a read stream.
Parameters
RReadStream
& aStream
|
Stream from which the object should be internalised.
|
MergeL(const CColorList &)
Merges the specified
CColorList
with target object.
Parameters
const
CColorList
& aList
|
A reference to the colour list object, set by calling CColorList::AddColorArray()
|
NewL(CArrayFix< TRgb > *)
Allocates and constructs a new colour list.
Parameters
CArrayFix
<
TRgb
> * aColors
|
The array of physical colours to store in the list. The colour list takes ownership.
|
NewLC()
Allocates and constructs a new colour list and puts the pointer to the new colour list object onto the cleanup stack.
SetColor(TLogicalColor, TRgb)
Sets the
TRgb
colour value that a logical colour maps to.
Parameters
TLogicalColor
aLogicalColor
|
The logical colour that needs to be set.
|
TRgb
aColor
|
The TRgb colour value.
|
Member Data Documentation
CArrayFix< TAppColorList > * iAppColors
CArrayFix< TRgb > * iEikColors
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.