MLafEnv Class Reference

class MLafEnv

LAF interface to access the current system environment settings.

It is implemented by the Uikon Core, and effectively allows the LAF limited access to the current thread's CEikonEnv .

Member Functions Documentation

Bitmap(TUid)

const CFbsBitmap * Bitmap ( TUid aBmpUid ) const [pure virtual]

Gets an environment bitmap specified by UID.

Parameters

TUid aBmpUid The UID of the bitmap to retrieve.

Color(TLogicalColor, TUid)

TRgb Color ( TLogicalColor aLogicalColor,
TUid aColorListUid = KNullUid
) const [pure virtual]

Gets the environment's physical ( TRgb ) colour that corresponds to the specified logical colour.

Parameters

TLogicalColor aLogicalColor Logical colour.
TUid aColorListUid = KNullUid UID of the colour list from which to get the mapping. The default value is the environment's list.

ControlColor(TLogicalColor, const CCoeControl &)

TRgb ControlColor ( TLogicalColor aLogicalColor,
const CCoeControl & aControl
) const [pure virtual]

Gets the physical ( TRgb ) colour that corresponds to the specified logical colour, for a specified control.

Parameters

TLogicalColor aLogicalColor Logical colour.
const CCoeControl & aControl Control for which to get the mapping. Note controls can override the system mappings.

DefaultDisplayMode()

TDisplayMode DefaultDisplayMode ( ) const [pure virtual]

Gets the environment setting for the default display mode.

Font(const TLogicalFont &)

const CFont * Font ( const TLogicalFont & aLogicalFont ) const [pure virtual]

Gets the environment's nearest match to the specified logical font.

The return value is never NULL.

Parameters

const TLogicalFont & aLogicalFont Logical font to match.