Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: gulutil.h
Link against: egul.lib

Class ResourceUtils

ResourceUtils

Support

Supported from 6.0

Description

Resource reading utilities.

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

Defined in ResourceUtils:
CreateNamedScreenFontInPixelsL(), CreateNamedScreenFontL(), CreateScreenFontL(), PopulateColorArrayL(), ReadTInt16L(), ReadTInt32L(), ReadTInt8L()

See also:


Fonts


CreateNamedScreenFontL()

static CFbsFont* CreateNamedScreenFontL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);

Description

Creates 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.

Return value

CFbsFont*

The screen font, whose size is in twips.


CreateNamedScreenFontInPixelsL()

static CFbsFont* CreateNamedScreenFontInPixelsL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);

Description

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.

Return value

CFbsFont*

The screen font, whose size is in pixels.


CreateScreenFontL()

static CFbsFont* CreateScreenFontL(TResourceReader& aReader,CWsScreenDevice& aScreenDevice);

Description

Creates a screen font from a FONT resource.

Parameters

TResourceReader& aReader

Resource reader to use to read the font UID and flags.

CWsScreenDevice& aScreenDevice

The screen device for which the font will be created.

Return value

CFbsFont*

The screen font.

[Top]


Integers


ReadTInt8L()

static TInt8 ReadTInt8L(TResourceReader& aReader);

Description

Reads an 8 bit signed integer from a resource.

Parameters

TResourceReader& aReader

Resource reader to use to read the integer.

Return value

TInt8

The 8 bit signed integer.


ReadTInt16L()

static TInt16 ReadTInt16L(TResourceReader& aReader);

Description

Reads a 16 bit signed integer from a resource.

Parameters

TResourceReader& aReader

Resource reader to use to read the integer.

Return value

TInt16

The 16 bit signed integer.


ReadTInt32L()

static TInt32 ReadTInt32L(TResourceReader& aReader);

Description

Reads a 32 bit signed integer from a resource.

Parameters

TResourceReader& aReader

Resource reader to use to read the integer.

Return value

TInt32

The 32 bit signed integer.

[Top]


Colour array


PopulateColorArrayL()

static void PopulateColorArrayL(CColorArray& aColors,TResourceReader& aReader);

Description

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

Parameters

CColorArray& aColors

On return, contains the colour arrray read from the resource.

TResourceReader& aReader

Resource reader to use to read the color array.