|
||
class CCleanupStackableFont : public CBase;
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.
CBase
-
Base class for all classes to be instantiated on the heap.
CCleanupStackableFont
- Wraps a font (CFbsFont) object that can be pushed onto the cleanup stack.
Defined in CCleanupStackableFont
:
Font()const
Gets the font stored in this object.NewByNameL(TResourceReader &,CWsScreenDevice &)
Allocates and constructs a new CCleanupStackableFont.NewByNameLC(TResourceReader &,CWsScreenDevice &)
Allocates and constructs a new CCleanupStackableFont, leaving it on the cleanup ...NewL(TResourceReader &,CWsScreenDevice &)
Allocates and constructs a new CCleanupStackableFont.NewLC(TResourceReader &,CWsScreenDevice &)
Allocates and constructs a new CCleanupStackableFont, leaving it on the cleanup ...TakeOwnershipOfFont()
Gets the font stored in this object.~CCleanupStackableFont()
Destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...CFbsFont
Font managed by the font and bitmap server. CFbsFont objects are used for screen...IMPORT_C static CCleanupStackableFont* NewL(TResourceReader &aReader, CWsScreenDevice &aScreenDevice);
Allocates and constructs a new CCleanupStackableFont.
aReader should be initialised to read a resource of type FONT.
|
|
IMPORT_C 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.
|
|
IMPORT_C virtual ~CCleanupStackableFont();
Destructor.
This releases the font. The font is only deleted if its access count is zero (so that no client is using it).
IMPORT_C static CCleanupStackableFont* NewByNameL(TResourceReader &aReader, CWsScreenDevice &aScreenDevice);
Allocates and constructs a new CCleanupStackableFont.
aReader should be initialised to read a resource of type NAMED_FONT.
|
|
IMPORT_C static CCleanupStackableFont* NewByNameLC(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 NAMED_FONT.
|
|
IMPORT_C CFbsFont& Font() const;
Gets the font stored in this object.
The caller does not take ownership.
|
IMPORT_C CFbsFont* TakeOwnershipOfFont();
Gets the font stored in this object.
The caller takes ownership of the returned font.
|