|
VSTGUI
3.6
|
font class More...
#include <vstgui.h>
Inheritance diagram for CFontDesc:Public Member Functions | |
| ~CFontDesc () | |
| CFontDesc & | operator= (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 CCoord & | getSize () 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... | |
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.
| ~CFontDesc | ( | ) |
|
static |
does some cleanup, needed for GDIPLUS
|
inlinevirtualinherited |
decrease refcount and delete object if refcount == 0
Reimplemented in CDrawContext.
|
protected |
|
inline |
get the name of the font
|
inlineinherited |
get refcount
| void * getPlatformFont | ( | ) |
get platform font object
|
inline |
get the height of the font
|
inline |
get the style of the font
|
inlinevirtualinherited |
Reimplemented in CViewContainer, CView, CScrollbar, CDataBrowser, and CTooltipSupport.
| bool operator== | ( | const CFontDesc & | f | ) | const |
|
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
|
protected |
|
protected |
|
protected |
|
protected |
1.8.7