Location:
gulfont.h
Link against: egul.lib
CCleanupStackableFont
Supported from 6.0
Wraps a font (CFbsFont
) object that can be pushed onto
the cleanup stack.
By default, the cleanup stack only handles
CBase
-derived classes, and untyped (TAny
*) objects
that can be cleaned up by a simple memory free call. Fonts must also be
released, which this class handles automatically in its destructor.
The font is initialised from a resource file, and can be identified by name or UID.
|
Defined in CCleanupStackableFont
:
Font()
, NewByNameL()
, NewByNameLC()
, NewL()
, NewLC()
, TakeOwnershipOfFont()
, ~CCleanupStackableFont()
Inherited from CBase
:
operator new()
static CCleanupStackableFont* NewL(TResourceReader& aReader,CWsScreenDevice& aScreenDevice);
Allocates and constructs a new
CCleanupStackableFont
.
aReader
should be initialised to read a resource
of type FONT
.
|
|
static CCleanupStackableFont* NewLC(TResourceReader& aReader,CWsScreenDevice& aScreenDevice);
Allocates and constructs a new
CCleanupStackableFont
, leaving it on the cleanup stack.
aReader
should be initialised to read a resource
of type FONT
.
|
|
static CCleanupStackableFont* NewByNameL(TResourceReader& aReader,CWsScreenDevice& aScreenDevice);
Supported from 6.1
Allocates and constructs a new
CCleanupStackableFont
.
aReader
should be initialised to read a resource
of type NAMED_FONT
.
|
|
static CCleanupStackableFont* NewByNameLC(TResourceReader& aReader,CWsScreenDevice& aScreenDevice);
Supported from 6.1
Allocates and constructs a new
CCleanupStackableFont
, leaving it on the cleanup stack.
aReader
should be initialised to read a resource
of type NAMED_FONT
.
|
|
virtual ~CCleanupStackableFont();
Destructor.
This releases the font — it is only deleted if its access count is zero (so that no client is now using it).
CFbsFont& Font() const;
Gets the font stored in this object.
The caller does not take ownership.
|
CFbsFont* TakeOwnershipOfFont();
Gets the font stored in this object.
The caller takes ownership of the returned font.
|