ResourceUtils Class Reference

class ResourceUtils

Provides static functions for resource reading.

All functions use pre-initialised resource reader objects to read information from resource files.

CCoeEnv::CreateResourceReaderLC()

Member Functions Documentation

CreateNamedScreenFontInPixelsL(TResourceReader &, CWsScreenDevice &)

IMPORT_C CFbsFont *CreateNamedScreenFontInPixelsL(TResourceReader &aResourceReader,
CWsScreenDevice &aScreenDevice
)[static]

Creates a named screen font in pixels from a NAMED_FONT resource.

Parameters

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

CreateNamedScreenFontL(TResourceReader &, CWsScreenDevice &)

IMPORT_C CFbsFont *CreateNamedScreenFontL(TResourceReader &aResourceReader,
CWsScreenDevice &aScreenDevice
)[static]

Creates and returns a named screen font from a NAMED_FONT resource.

Parameters

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

CreateScreenFontL(TResourceReader &, CWsScreenDevice &)

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

Creates a screen font from a FONT resource.

Parameters

TResourceReader & aResourceReaderResource reader to use to read the font UID and flags.
CWsScreenDevice & aScreenDeviceThe screen device for which the font will be created.

PopulateColorArrayL(CColorArray &, TResourceReader &)

IMPORT_C voidPopulateColorArrayL(CColorArray &aColors,
TResourceReader &aReader
)[static]

Populates an array of logical colours using a pre-initialised resource reader from an array of CTRL_COLOR resources.

Parameters

CColorArray & aColorsOn return, contains the colour array read from the resource.
TResourceReader & aReaderResource reader to use to read the colour array.

ReadResourceIntL(TResourceReader &, TResourceTypeInt)

IMPORT_C TInt32ReadResourceIntL(TResourceReader &aReader,
TResourceTypeIntaSize
)[private, static]

Parameters

TResourceReader & aReader
TResourceTypeInt aSize

ReadTInt16L(TResourceReader &)

TInt16 ReadTInt16L(TResourceReader &aReader)[static, inline]

Reads a 16 bit signed integer from a resource.

Parameters

TResourceReader & aReaderResource reader to use to read the integer.

ReadTInt32L(TResourceReader &)

TInt32 ReadTInt32L(TResourceReader &aReader)[static, inline]

Reads a 32 bit signed integer from a resource.

Parameters

TResourceReader & aReaderResource reader to use to read the integer.

ReadTInt8L(TResourceReader &)

TInt8 ReadTInt8L(TResourceReader &aReader)[static, inline]

Reads an 8 bit signed integer from a resource.

Parameters

TResourceReader & aReaderResource reader to use to read the integer.

Member Enumerations Documentation

Enum TResourceTypeInt

Enumerators

EResourceInt8
EResourceInt16
EResourceInt32