API published in: S60 2nd Ed
Link against: aknskins.lib aknskinsrv.lib aknswallpaperutils.lib
Required Capabilities
None
#include <aknsitemdata.h>
Inherits CAknsImageItemData.
Color table item data contains (in addition to base class members) color array of TRGB values. Item type for color item data is always EAknsITColorTable.
This is a public class with exported functions. The class is not intended for derivation outside the library.
Public Member Functions |
|
virtual | ~CAknsColorTableItemData () |
Destructor. |
|
IMPORT_C void | SetColorsL (const TInt aNumberOfColors, const TAknsColorTableEntry *aColors) |
Sets color values for this item data instance. |
|
IMPORT_C TInt | ColorIndexed (const TInt aIndex) const |
Returns the indexed color value. |
|
IMPORT_C TRgb | ColorRgb (const TInt aIndex) const |
Returns the RGB color value. |
|
IMPORT_C void | GetColorL (const TInt aIndex, TRgb &aColor) const |
Retrieves a color value (indexed or RGB) with bounds checking. |
|
Static Public Member Functions |
|
static IMPORT_C CAknsColorTableItemData * | NewL () |
Two-phased constructor. |
|
Protected Member Functions |
|
CAknsColorTableItemData (const TAknsItemType aType) | |
C++ protected constructor. |
|
Protected Attributes |
|
TAknsColorTableEntry * | iColorArray |
Color array. |
|
TInt | iColorArraySize |
|
Destructor. Destroys color value array. |
|
C++ protected constructor. Constructs a new CAknsColorItemData without an array.
|
|
Returns the indexed color value.
|
|
Returns the RGB color value.
|
|
Retrieves a color value (indexed or RGB) with bounds checking.
|
|
Two-phased constructor. Constructs a new CAknsColorTableItemData object. Values must be set separately using SetColorsL.
|
|
Sets color values for this item data instance.
|
|
Color array. |
|