#include <mw/gulutil.h>
Link against: egul.lib
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.
Parameters | |
---|---|
aResourceReader | Resource reader to use to read the font information. |
aScreenDevice | The screen device for which the font will be created. |
IMPORT_C CFbsFont * | CreateNamedScreenFontL | ( | TResourceReader & | aResourceReader, |
CWsScreenDevice & | aScreenDevice | |||
) | [static] |
Creates and returns a named screen font from a NAMED_FONT resource.
Parameters | |
---|---|
aResourceReader | Resource reader to use to read the font information. |
aScreenDevice | The screen device for which the font will be created. |
IMPORT_C CFbsFont * | CreateScreenFontL | ( | TResourceReader & | aResourceReader, |
CWsScreenDevice & | aScreenDevice | |||
) | [static] |
Creates a screen font from a FONT resource.
Parameters | |
---|---|
aResourceReader | Resource reader to use to read the font UID and flags. |
aScreenDevice | The screen device for which the font will be created. |
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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
aReader | Resource reader to use to read the integer. |
TInt32 | ReadTInt32L | ( | TResourceReader & | aReader | ) | [static, inline] |
Reads a 32 bit signed integer from a resource.
Parameters | |
---|---|
aReader | Resource reader to use to read the integer. |
TInt8 | ReadTInt8L | ( | TResourceReader & | aReader | ) | [static, inline] |
Reads an 8 bit signed integer from a resource.
Parameters | |
---|---|
aReader | Resource reader to use to read the integer. |