VSTGUI  3.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CFontDesc Class Reference

font class More...

#include <vstgui.h>

+ Inheritance diagram for CFontDesc:

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

void freePlatformFont ()
 

Protected Attributes

char * name
 
CCoord size
 
long style
 
void * platformFont
 

Reference Counting Methods

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

Message Methods

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

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 More...
 
const CCoordgetSize () const
 get the height of the font More...
 
const long & getStyle () const
 get the style of the font More...
 
void setName (const char *newName)
 set the name of the font More...
 
void setSize (CCoord newSize)
 set the height of the font More...
 
void setStyle (long newStyle)
 set the style of the font More...
 

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

void cleanup ( )
static

does some cleanup, needed for GDIPLUS

virtual void forget ( )
inlinevirtualinherited

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
inlineinherited

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 
)
inlinevirtualinherited
CFontDesc & operator= ( const CFontDesc f)
bool operator== ( const CFontDesc f) const
virtual void remember ( )
inlinevirtualinherited

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: