Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <GULUTIL.H>
Link against: egul.lib

Class ResourceUtils

class ResourceUtils;

Description

Provides static functions for resource reading.

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

Members

Defined in ResourceUtils:

See also:


Member functions


CreateNamedScreenFontL(TResourceReader &,CWsScreenDevice &)

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

Description

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.

Return value

CFbsFont *

The screen font, whose size is in twips. The caller takes ownership.


CreateNamedScreenFontInPixelsL(TResourceReader &,CWsScreenDevice &)

IMPORT_C 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. The caller takes ownership.


CreateScreenFontL(TResourceReader &,CWsScreenDevice &)

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

Description

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.

Return value

CFbsFont *

The screen font. The caller takes ownership.


ReadTInt8L(TResourceReader &)

static inline 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(TResourceReader &)

static inline 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(TResourceReader &)

static inline 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.


PopulateColorArrayL(CColorArray &,TResourceReader &)

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

Description

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.