CColorArray Class Reference
class CColorArray : public CBase
|
A dynamic array of mappings between logical and physical colours (
TRgb
values).
Nested Classes and Structures
Constructor & Destructor Documentation
CColorArray()
CColorArray
|
(
|
)
|
[private]
|
~CColorArray()
IMPORT_C
|
~CColorArray
|
(
|
)
|
|
Member Functions Documentation
AddL(TInt, TRgb)
IMPORT_C void
|
AddL
|
(
|
TInt
|
aLogicalColor,
|
|
TRgb
|
aColor
|
|
)
|
|
Adds a logical to physical colour mapping to the colour array. The specified logical colour must not already exist in the colour array.
-
panic
-
EGUL 4 The logical colour specified already exists in the array. Debug builds only.
Parameters
TInt
aLogicalColor
|
The logical colour.
|
TRgb
aColor
|
The TRgb colour.
|
Color(TInt)
IMPORT_C
TRgb
|
Color
|
(
|
TInt
|
aLogicalColor
|
)
|
const
|
Gets the physical colour (
TRgb
) which corresponds to a logical colour.
-
panic
-
EGUL 3 The logical colour specified is not found in the colour array.
Parameters
TInt
aLogicalColor
|
The logical colour.
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Contains(TInt)
IMPORT_C
TBool
|
Contains
|
(
|
TInt
|
aLogicalColor
|
)
|
const
|
Tests whether the colour array contains the specified logical colour.
Parameters
TInt
aLogicalColor
|
The logical colour.
|
Count()
IMPORT_C
TInt
|
Count
|
(
|
)
|
const
|
Gets the number of logical to physical colour mappings in the array.
ExternalizeL(RWriteStream &)
Find(TInt)
TInt
|
Find
|
(
|
TInt
|
aLogicalColor
|
)
|
const [private]
|
InternalizeL(RReadStream &)
NewLC()
Creates a colour array and leaves it on the cleanup stack.
NewLC(const CColorArray &)
Remove(TInt)
IMPORT_C void
|
Remove
|
(
|
TInt
|
aLogicalColor
|
)
|
|
Removes a logical to physical colour mapping from the array.
-
panic
-
EGUL 3 The logical colour specified is not found in the array.
Parameters
TInt
aLogicalColor
|
The logical colour to remove.
|
SetColor(TInt, TRgb)
IMPORT_C void
|
SetColor
|
(
|
TInt
|
aLogicalColor,
|
|
TRgb
|
aColor
|
|
)
|
|
Changes a logical to physical mapping in the colour array. The specified logical colour must already exist in the colour array.
-
panic
-
EGUL 3 The logical colour specified is not found in the colour array.
Parameters
TInt
aLogicalColor
|
The logical colour.
|
TRgb
aColor
|
The TRgb value.
|
Member Data Documentation
CArrayFixFlat< TColor > iColors
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.