Location:
gulutil.h
Link against: egul.lib
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:
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|