VSTGUI  4.2
Graphical User Interface Framework not only for VST plugins
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
IPlatformFont Class Referenceabstract

platform font class More...

+ Inheritance diagram for IPlatformFont:
+ Collaboration diagram for IPlatformFont:

Public Member Functions

virtual double getAscent () const =0
 returns the ascent line offset of the baseline of this font. If not supported returns -1 More...
 
virtual double getDescent () const =0
 returns the descent line offset of the baseline of this font. If not supported returns -1 More...
 
virtual double getLeading () const =0
 returns the space between lines for this font. If not supported returns -1 More...
 
virtual double getCapHeight () const =0
 returns the height of the highest capital letter for this font. If not supported returns -1 More...
 
virtual IFontPaintergetPainter ()=0
 
Reference Counting Methods
virtual void forget ()
 decrease refcount and delete object if refcount == 0 More...
 
virtual void remember ()
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
Message Methods
virtual CMessageResult notify (CBaseObject *sender, IdStringPtr message)
 

Static Public Member Functions

static IPlatformFontcreate (UTF8StringPtr name, const CCoord &size, const int32_t &style)
 
static bool getAllPlatformFontFamilies (std::list< std::string > &fontFamilyNames)
 

Detailed Description

platform font class

Encapsulation of a platform font. You should never need to call IPlatformFont::create(..), instead use CFontDesc::getPlatformFont().

Member Function Documentation

static IPlatformFont* create ( UTF8StringPtr  name,
const CCoord size,
const int32_t &  style 
)
static

+ Here is the caller graph for this function:

virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

static bool getAllPlatformFontFamilies ( std::list< std::string > &  fontFamilyNames)
static

+ Here is the caller graph for this function:

virtual double getAscent ( ) const
pure virtual

returns the ascent line offset of the baseline of this font. If not supported returns -1

+ Here is the caller graph for this function:

virtual double getCapHeight ( ) const
pure virtual

returns the height of the highest capital letter for this font. If not supported returns -1

+ Here is the caller graph for this function:

virtual double getDescent ( ) const
pure virtual

returns the descent line offset of the baseline of this font. If not supported returns -1

+ Here is the caller graph for this function:

virtual double getLeading ( ) const
pure virtual

returns the space between lines for this font. If not supported returns -1

+ Here is the caller graph for this function:

virtual int32_t getNbReference ( ) const
inlinevirtualinherited

get refcount

virtual IFontPainter* getPainter ( )
pure virtual

+ Here is the caller graph for this function:

virtual void remember ( )
inlinevirtualinherited

increase refcount

+ Here is the caller graph for this function:


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