font class More...
#include <vstgui.h>
Public Member Functions | |
| ~CFontDesc () | |
| CFontDesc & | operator= (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 CCoord & | getSize () 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) |
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 | ( | ) |
| 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
| 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] |
Reimplemented in CDataBrowser, CScrollbar, CTooltipSupport, CView, and CViewContainer.
char* name [protected] |
long style [protected] |
void* platformFont [protected] |
1.6.3