ASPiK SDK
VSTGUI::Cairo::Font Class Reference
Inheritance diagram for VSTGUI::Cairo::Font:
VSTGUI::IPlatformFont VSTGUI::IFontPainter VSTGUI::ReferenceCounted< T > VSTGUI::IReference

Classes

struct  Impl
 

Public Member Functions

 Font (UTF8StringPtr name, const CCoord &size, const int32_t &style)
 
bool valid () const
 
double getAscent () const override
 returns the ascent line offset of the baseline of this font. If not supported returns -1
 
double getDescent () const override
 returns the descent line offset of the baseline of this font. If not supported returns -1
 
double getLeading () const override
 returns the space between lines for this font. If not supported returns -1
 
double getCapHeight () const override
 returns the height of the highest capital letter for this font. If not supported returns -1
 
const IFontPaintergetPainter () const override
 
void drawString (CDrawContext *context, IPlatformString *string, const CPoint &p, bool antialias=true) const override
 
CCoord getStringWidth (CDrawContext *context, IPlatformString *string, bool antialias=true) const override
 
- Public Member Functions inherited from VSTGUI::ReferenceCounted< T >
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0
 
void remember () override
 increase refcount
 
virtual int32_t getNbReference () const
 get refcount
 
virtual void beforeDelete ()
 

Additional Inherited Members

- Static Public Member Functions inherited from VSTGUI::IPlatformFont
static SharedPointer< IPlatformFontcreate (const UTF8String &name, const CCoord &size, const int32_t &style)
 
static bool getAllPlatformFontFamilies (std::list< std::string > &fontFamilyNames)
 

The documentation for this class was generated from the following files: