EikResourceUtils Class Reference

class EikResourceUtils

Provides utilities for reading standard resources.

Constructor & Destructor Documentation

EikResourceUtils()

EikResourceUtils()[private]

Member Functions Documentation

CreateColorArrayL(TInt, CEikonEnv *)

IMPORT_C CColorArray *CreateColorArrayL(TIntaResourceId,
CEikonEnv *aEnv = NULL
)[static]

Parameters

TInt aResourceId
CEikonEnv * aEnv = NULL

CreateColorArrayLC(TInt, CEikonEnv *)

IMPORT_C CColorArray *CreateColorArrayLC(TIntaResourceId,
CEikonEnv *aEnv = NULL
)[static]

Parameters

TInt aResourceId
CEikonEnv * aEnv = NULL

CreateScreenFontL(TResourceReader &, CWsScreenDevice &)

CFbsFont *CreateScreenFontL(TResourceReader &aResourceReader,
CWsScreenDevice &aScreenDevice
)[static, inline]

Create a screen font from resource.

Creates a font for the specified screen device by reading a font UID and font flags from the given position in a resource. Returns a pointer to the font and transfers ownership.

Screen font object.

Parameters

TResourceReader & aResourceReaderThe resource reader to use to read the font.
CWsScreenDevice & aScreenDeviceThe screen device for which the font will be created.

CreateScreenFontL(TInt, CEikonEnv *)

IMPORT_C CFbsFont *CreateScreenFontL(TIntaResourceId,
CEikonEnv *aEnv = NULL
)[static]

Parameters

TInt aResourceId
CEikonEnv * aEnv = NULL

ReadResourceIntL(TInt, CEikonEnv *, TResourceTypeInt)

IMPORT_C TInt32ReadResourceIntL(TIntaResourceId,
CEikonEnv *aEnv,
TResourceTypeIntaSize
)[private, static]

Parameters

TInt aResourceId
CEikonEnv * aEnv
TResourceTypeInt aSize

ReadTInt16L(TInt, CEikonEnv *)

TInt16 ReadTInt16L(TIntaResourceId,
CEikonEnv *aEnv = NULL
)[static, inline]

Gets the 16 bit signed integer held in a specified resource location.

The 16 bits that follow the specified location in the resource.

Parameters

TInt aResourceIdThe location in the resource to be read.
CEikonEnv * aEnv = NULLThe UI environment.

ReadTInt32L(TInt, CEikonEnv *)

TInt32 ReadTInt32L(TIntaResourceId,
CEikonEnv *aEnv = NULL
)[static, inline]

Gets the 32 bit signed integer held in a specified resource location.

The 32 bits that follow the specified location in the resource.

Parameters

TInt aResourceIdThe location in the resource to be read.
CEikonEnv * aEnv = NULLThe UI environment.

ReadTInt8L(TInt, CEikonEnv *)

TInt8 ReadTInt8L(TIntaResourceId,
CEikonEnv *aEnv = NULL
)[static, inline]

Gets the 8 bit signed integer held in a specified resource location.

The eight bits that follow the specified location in the resource.

Parameters

TInt aResourceIdThe location in the resource to be read.
CEikonEnv * aEnv = NULLThe UI environment.

Member Enumerations Documentation

Enum TResourceTypeInt

Enumerators

EResourceInt8
EResourceInt16
EResourceInt32