ResourceUtils Class Reference

#include <mw/gulutil.h>

Link against: egul.lib

class ResourceUtils

Detailed Description

Provides static functions for resource reading.

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

See also: CCoeEnv::CreateResourceReaderLC()

Member Function 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
aResourceReaderResource reader to use to read the font information.
aScreenDeviceThe screen device for which the font will be created.
Return Value
The screen font, whose size is in pixels. The caller takes ownership.

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
aResourceReaderResource reader to use to read the font information.
aScreenDeviceThe screen device for which the font will be created.
Return Value
The screen font, whose size is in twips. The caller takes ownership.

CreateScreenFontL ( TResourceReader &, CWsScreenDevice & )

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

Creates a screen font from a FONT resource.

Parameters
aResourceReaderResource reader to use to read the font UID and flags.
aScreenDeviceThe screen device for which the font will be created.
Return Value
The screen font. The caller takes ownership.

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
aColorsOn return, contains the colour array read from the resource.
aReaderResource reader to use to read the colour array.

ReadTInt16L ( TResourceReader & )

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

Reads a 16 bit signed integer from a resource.

Parameters
aReaderResource reader to use to read the integer.
Return Value
The 16 bit signed integer.

ReadTInt32L ( TResourceReader & )

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

Reads a 32 bit signed integer from a resource.

Parameters
aReaderResource reader to use to read the integer.
Return Value
The 32 bit signed integer.

ReadTInt8L ( TResourceReader & )

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

Reads an 8 bit signed integer from a resource.

Parameters
aReaderResource reader to use to read the integer.
Return Value
The 8 bit signed integer.