CFontDesc Class Reference

font class More...

#include <vstgui.h>

List of all members.

Public Member Functions

 ~CFontDesc ()
CFontDescoperator= (const CFontDesc &)
bool operator== (const CFontDesc &) const
void * getPlatformFont ()
 get platform font object

Static Public Member Functions

static void cleanup ()
 does some cleanup, needed for GDIPLUS

Protected Member Functions

void freePlatformFont ()

Protected Attributes

char * name
CCoord size
long style
void * platformFont

Constructors



 CFontDesc (const char *name=0, const CCoord &size=0, const long style=0)
 CFontDesc (const CFontDesc &font)

CFontDesc Methods



const char * getName () const
 get the name of the font
const CCoordgetSize () const
 get the height of the font
const long & getStyle () const
 get the style of the font
void setName (const char *newName)
 set the name of the font
void setSize (CCoord newSize)
 set the height of the font
void setStyle (long newStyle)
 set the style of the font

Reference Counting Methods



virtual void forget ()
 decrease refcount and delete object if refcount == 0
virtual void remember ()
 increase refcount
long getNbReference () const
 get refcount

Message Methods



virtual CMessageResult notify (CBaseObject *sender, const char *message)

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 ( const char *  name = 0,
const CCoord size = 0,
const long  style = 0 
)
CFontDesc ( const CFontDesc font  ) 
~CFontDesc (  ) 

Member Function Documentation

const char* getName (  )  const [inline]

get the name of the font

const CCoord& getSize (  )  const [inline]

get the height of the font

const long& getStyle (  )  const [inline]

get the style of the font

void setName ( const char *  newName  ) 

set the name of the font

void setSize ( CCoord  newSize  ) 

set the height of the font

void setStyle ( long  newStyle  ) 

set the style of the font

See also:
CTxtFace
CFontDesc & operator= ( const CFontDesc f  ) 
bool operator== ( const CFontDesc f  )  const
void * getPlatformFont (  ) 

get platform font object

void cleanup (  )  [static]

does some cleanup, needed for GDIPLUS

void freePlatformFont (  )  [protected]
virtual void forget (  )  [inline, virtual, inherited]

decrease refcount and delete object if refcount == 0

Reimplemented in CDrawContext.

virtual void remember (  )  [inline, virtual, inherited]

increase refcount

long getNbReference (  )  const [inline, inherited]

get refcount

virtual CMessageResult notify ( CBaseObject sender,
const char *  message 
) [inline, virtual, inherited]

Member Data Documentation

char* name [protected]
CCoord size [protected]
long style [protected]
void* platformFont [protected]

The documentation for this class was generated from the following files:
Generated on Fri Apr 9 10:19:32 2010 for VSTGUI by  doxygen 1.6.3