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 & aResourceReader Resource reader to use to read the font information.
CWsScreenDevice & aScreenDevice The 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 & aResourceReader Resource reader to use to read the font information.
CWsScreenDevice & aScreenDevice The 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 & aResourceReader Resource reader to use to read the font UID and flags.
CWsScreenDevice & aScreenDevice The screen device for which the font will be created.

PopulateColorArrayL(CColorArray &, TResourceReader &)

IMPORT_C void PopulateColorArrayL ( 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 & aColors On return, contains the colour array read from the resource.
TResourceReader & aReader Resource reader to use to read the colour array.

ReadResourceIntL(TResourceReader &, TResourceTypeInt)

IMPORT_C TInt32 ReadResourceIntL ( TResourceReader & aReader,
TResourceTypeInt aSize
) [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 & aReader Resource 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 & aReader Resource 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 & aReader Resource reader to use to read the integer.

Member Enumerations Documentation

Enum TResourceTypeInt

Enumerators

EResourceInt8
EResourceInt16
EResourceInt32