nFontDesc Class Reference
#include <nfontdesc.h>
Detailed Description
A font description object used to create a nFont object.(C) 2003 RadonLabs GmbH
Definition at line 16 of file nfontdesc.h.
Public Types | |
| enum | Weight { Thin, Light, Normal, Bold, ExtraBold, InvalidWeight } |
| font weights More... | |
Public Member Functions | |
| nFontDesc () | |
| constructor | |
| ~nFontDesc () | |
| destructor | |
| bool | operator== (const nFontDesc &rhs) const |
| equality operator | |
| void | SetHeight (int h) |
| set font height | |
| int | GetHeight () const |
| get font height | |
| void | SetWeight (Weight w) |
| set font weight | |
| Weight | GetWeight () const |
| get font weight | |
| void | SetItalic (bool b) |
| set italic flag | |
| bool | GetItalic () const |
| get italic flag | |
| void | SetUnderline (bool b) |
| set underline flag | |
| bool | GetUnderline () const |
| get underline flag | |
| void | SetAntiAliased (bool b) |
| set antialiased flag | |
| bool | GetAntiAliased () const |
| get antialiased flag | |
| void | SetTypeFace (const char *n) |
| set typeface name | |
| const char * | GetTypeFace () const |
| get typeface name | |
| void | SetFilename (const char *n) |
| set optional font file name | |
| const char * | GetFilename () const |
| get optional font file name | |
Static Public Member Functions | |
| static Weight | StringToWeight (const nString &str) |
| convert render flag string to enum | |
| static nString | WeightToString (Weight renderFlag) |
| convert render flag enum to string | |
Member Enumeration Documentation
|
|
font weights
Definition at line 20 of file nfontdesc.h. |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 84 of file nfontdesc.h. |
|
|
destructor
Definition at line 99 of file nfontdesc.h. |
Member Function Documentation
|
|
equality operator
Definition at line 109 of file nfontdesc.h. |
|
|
set font height
Definition at line 124 of file nfontdesc.h. |
|
|
get font height
Definition at line 134 of file nfontdesc.h. |
|
|
set font weight
Definition at line 144 of file nfontdesc.h. |
|
|
get font weight
Definition at line 154 of file nfontdesc.h. |
|
|
set italic flag
Definition at line 164 of file nfontdesc.h. |
|
|
get italic flag
Definition at line 174 of file nfontdesc.h. |
|
|
set underline flag
Definition at line 184 of file nfontdesc.h. |
|
|
get underline flag
Definition at line 193 of file nfontdesc.h. |
|
|
set antialiased flag
Definition at line 203 of file nfontdesc.h. |
|
|
get antialiased flag
Definition at line 213 of file nfontdesc.h. |
|
|
set typeface name
Definition at line 223 of file nfontdesc.h. |
|
|
get typeface name
Definition at line 234 of file nfontdesc.h. |
|
|
set optional font file name
Definition at line 244 of file nfontdesc.h. |
|
|
get optional font file name
Definition at line 255 of file nfontdesc.h. |
|
|
convert render flag string to enum Convert the given string to its corresponded weight. Definition at line 287 of file nfontdesc.h. |
|
|
convert render flag enum to string
|
The documentation for this class was generated from the following file: