CFontDesc Class Reference

font class More...

#include <vstgui.h>

Inheritance diagram for CFontDesc:
Inheritance graph
[legend]

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


Constructor & Destructor Documentation

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

Member Function Documentation

void cleanup (  )  [static]

does some cleanup, needed for GDIPLUS

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

decrease refcount and delete object if refcount == 0

Reimplemented in CDrawContext.

void freePlatformFont (  )  [protected]
const char* getName (  )  const [inline]

get the name of the font

long getNbReference (  )  const [inline, inherited]

get refcount

void * getPlatformFont (  ) 

get platform font object

const CCoord& getSize (  )  const [inline]

get the height of the font

const long& getStyle (  )  const [inline]

get the style of the font

virtual CMessageResult notify ( CBaseObject sender,
const char *  message 
) [inline, virtual, inherited]
CFontDesc & operator= ( const CFontDesc f  ) 
bool operator== ( const CFontDesc f  )  const
virtual void remember (  )  [inline, virtual, inherited]

increase refcount

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

Member Data Documentation

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

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Fri Nov 22 11:09:20 2013 for VSTGUI by  doxygen 1.6.1