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

font class More...

+ Inheritance diagram for CFontDesc:
+ Collaboration diagram for CFontDesc:

Public Member Functions

 CFontDesc (UTF8StringPtr name=0, const CCoord &size=0, const int32_t style=0)
 
 CFontDesc (const CFontDesc &font)
 
 ~CFontDesc ()
 
virtual IPlatformFontgetPlatformFont ()
 
virtual IFontPaintergetFontPainter ()
 
virtual CFontDescoperator= (const CFontDesc &)
 
virtual bool operator== (const CFontDesc &) const
 
virtual bool isTypeOf (IdStringPtr s) const
 
virtual CBaseObjectnewCopy () const
 
Size, Name and Style Methods
UTF8StringPtr getName () const
 get the name of the font More...
 
const CCoordgetSize () const
 get the height of the font More...
 
const int32_t & getStyle () const
 get the style of the font More...
 
virtual void setName (UTF8StringPtr newName)
 set the name of the font More...
 
virtual void setSize (CCoord newSize)
 set the height of the font More...
 
virtual void setStyle (int32_t newStyle)
 set the style of the font More...
 
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 void cleanup ()
 

Protected Member Functions

virtual void freePlatformFont ()
 

Protected Attributes

IPlatformFontplatformFont
 
UTF8StringBuffer name
 
CCoord size
 
int32_t style
 

Detailed Description

font class

The CFontDesc class replaces the old font handling. You have now the possibilty to use whatever font you like as long as it is available on the system. You should cache your own CFontDesc as this speeds up drawing on some systems.

Constructor & Destructor Documentation

CFontDesc ( UTF8StringPtr  name = 0,
const CCoord size = 0,
const int32_t  style = 0 
)

+ Here is the call graph for this function:

CFontDesc ( const CFontDesc font)
~CFontDesc ( )

+ Here is the call graph for this function:

Member Function Documentation

void cleanup ( )
static

+ Here is the call graph for this function:

virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

void freePlatformFont ( )
protectedvirtual

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

IFontPainter * getFontPainter ( )
virtual

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

UTF8StringPtr getName ( ) const
inline

get the name of the font

+ Here is the caller graph for this function:

virtual int32_t getNbReference ( ) const
inlinevirtualinherited

get refcount

IPlatformFont * getPlatformFont ( )
virtual

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const CCoord& getSize ( ) const
inline

get the height of the font

+ Here is the caller graph for this function:

const int32_t& getStyle ( ) const
inline

get the style of the font

+ Here is the caller graph for this function:

virtual bool isTypeOf ( IdStringPtr  s) const
inlinevirtual
virtual CBaseObject* newCopy ( ) const
inlinevirtual

+ Here is the caller graph for this function:

CFontDesc & operator= ( const CFontDesc f)
virtual

+ Here is the call graph for this function:

bool operator== ( const CFontDesc f) const
virtual

+ Here is the call graph for this function:

virtual void remember ( )
inlinevirtualinherited

increase refcount

+ Here is the caller graph for this function:

void setName ( UTF8StringPtr  newName)
virtual

set the name of the font

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setSize ( CCoord  newSize)
virtual

set the height of the font

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setStyle ( int32_t  newStyle)
virtual

set the style of the font

See also
CTxtFace

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

UTF8StringBuffer name
protected
IPlatformFont* platformFont
protected
CCoord size
protected
int32_t style
protected

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