#include <mw/gulutil.h>
class ResourceUtils |
Public Member Functions | |
---|---|
IMPORT_C CFbsFont * | CreateNamedScreenFontInPixelsL(TResourceReader &, CWsScreenDevice &) |
IMPORT_C CFbsFont * | CreateNamedScreenFontL(TResourceReader &, CWsScreenDevice &) |
IMPORT_C CFbsFont * | CreateScreenFontL(TResourceReader &, CWsScreenDevice &) |
IMPORT_C void | PopulateColorArrayL(CColorArray &, TResourceReader &) |
TInt16 | ReadTInt16L(TResourceReader &) |
TInt32 | ReadTInt32L(TResourceReader &) |
TInt8 | ReadTInt8L(TResourceReader &) |
Provides static functions for resource reading.
All functions use pre-initialised resource reader objects to read information from resource files.
See also: CCoeEnv::CreateResourceReaderLC()
IMPORT_C CFbsFont * | CreateNamedScreenFontInPixelsL | ( | TResourceReader & | aResourceReader, |
CWsScreenDevice & | aScreenDevice | |||
) | [static] |
Creates a named screen font in pixels from a NAMED_FONT resource.
Parameter | Description |
---|---|
aResourceReader | Resource reader to use to read the font information. |
aScreenDevice | The screen device for which the font will be created. |
Returns: The screen font, whose size is in pixels. The caller takes ownership.
IMPORT_C CFbsFont * | CreateNamedScreenFontL | ( | TResourceReader & | aResourceReader, |
CWsScreenDevice & | aScreenDevice | |||
) | [static] |
Creates and returns a named screen font from a NAMED_FONT resource.
Parameter | Description |
---|---|
aResourceReader | Resource reader to use to read the font information. |
aScreenDevice | The screen device for which the font will be created. |
Returns: The screen font, whose size is in twips. The caller takes ownership.
IMPORT_C CFbsFont * | CreateScreenFontL | ( | TResourceReader & | aResourceReader, |
CWsScreenDevice & | aScreenDevice | |||
) | [static] |
Creates a screen font from a FONT resource.
Parameter | Description |
---|---|
aResourceReader | Resource reader to use to read the font UID and flags. |
aScreenDevice | The screen device for which the font will be created. |
Returns: The screen font. The caller takes ownership.
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.
Parameter | Description |
---|---|
aColors | On return, contains the colour array read from the resource. |
aReader | Resource reader to use to read the colour array. |
TInt16 | ReadTInt16L | ( | TResourceReader & | aReader | ) | [static, inline] |
Reads a 16 bit signed integer from a resource.
Parameter | Description |
---|---|
aReader | Resource reader to use to read the integer. |
Returns: The 16 bit signed integer.
TInt32 | ReadTInt32L | ( | TResourceReader & | aReader | ) | [static, inline] |
Reads a 32 bit signed integer from a resource.
Parameter | Description |
---|---|
aReader | Resource reader to use to read the integer. |
Returns: The 32 bit signed integer.
TInt8 | ReadTInt8L | ( | TResourceReader & | aReader | ) | [static, inline] |
Reads an 8 bit signed integer from a resource.
Parameter | Description |
---|---|
aReader | Resource reader to use to read the integer. |
Returns: The 8 bit signed integer.