![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section Contents
The following functions are new in ER5. They are provided to enable custom controls to retrieve colours from the colour list, and to override the system default colour settings. CEikonEnv is defined in eikenv.h
.
CEikColorList& ColorList() const;
Applications that call this member function will not work correctly on a version of EPOC earlier than ER5.
This function retrieves the application's colour list. The colour list provides member functions to retrieve and modify colours in the list, and to append new arrays of colours to the colour list.
CEikColorList& |
The application's colour list |
TRgb Color(TEikLogicalColor aLogicalColor) const;
Applications that call this member function will not work correctly on a version of EPOC earlier than ER5.
Use this function to retrieve the physical (TRgb) colour which corresponds to the logical colour specified, from the application's colour list.
TEikLogicalColor aLogicalColor |
A logical colour value. |
TRgb |
The physical colour which corresponds to aLogicalColor. |
TRgb ControlColor(TEikLogicalColor aLogicalColor,const CCoeControl& aControl) const;
Applications that call this member function will not work correctly on a version of EPOC earlier than ER5.
Use this function to retrieve the physical (TRgb) colour which corresponds to the logical colour specified, from the application's colour list.
If the colour of the control specified in aControl has been overriden using CCoeControl::OverrideColorL(), this function will return the overriden colour.
TEikLogicalColor aLogicalColor |
A logical colour value. |
const CCoeControl& aControl |
A pointer to the control itself (*this). |
TRgb |
The physical colour which corresponds to aLogicalColor. |
void SetColor(TEikLogicalColor aLogicalColor, TRgb aColor);
Applications that call this member function will not work correctly on a version of EPOC earlier than ER5.
Use this function to set the mapping in the application's colour list between the logical and physical colours specified.
TEikLogicalColor aLogicalColor |
A logical colour value. |
TRgb aColor |
A physical colour value. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |