|
| Font () |
| The Font class specifies a query for a font used for drawing text.
|
|
| Font (const FontInfo &_finfo) |
| constructs a new font object.
|
|
| Font (const char *_fname) |
| constructs a new font object.
|
|
| Font (const char *_fname, const int &_st) |
| constructs a new font object.
|
|
Font & | size (const int &_size) |
| set the font size
|
|
int | size () const |
| get the font size
|
|
Font & | weight (const int &weight) |
| set the font weight
|
|
int | weight () const |
| get the font weight
|
|
Font & | style (const int st) |
| set the style of the font
|
|
int | style () const |
| get the font style
|
|
Font & | name (const char *_fname) |
| set the font name
|
|
const char * | name () const |
| get the font name
|
|
void | select () |
| selects a font object into the viewport
|
|
◆ Font() [1/3]
coat::Font::Font |
( |
const FontInfo & | _finfo | ) |
|
constructs a new font object.
- Parameters
-
◆ Font() [2/3]
coat::Font::Font |
( |
const char * | _fname | ) |
|
constructs a new font object.
- Parameters
-
◆ Font() [3/3]
coat::Font::Font |
( |
const char * | _fname, |
|
|
const int & | _st ) |
constructs a new font object.
- Parameters
-
_fname | the font name |
_st | the font style |
◆ name() [1/2]
const char * coat::Font::name |
( |
| ) |
const |
get the font name
- Returns
- the font name
◆ name() [2/2]
Font & coat::Font::name |
( |
const char * | _fname | ) |
|
set the font name
- Parameters
-
- Returns
- font reference
◆ size() [1/2]
int coat::Font::size |
( |
| ) |
const |
get the font size
- Returns
- font size
◆ size() [2/2]
Font & coat::Font::size |
( |
const int & | _size | ) |
|
set the font size
- Parameters
-
- Returns
- font reference
◆ style() [1/2]
int coat::Font::style |
( |
| ) |
const |
get the font style
- Returns
- the font style
◆ style() [2/2]
Font & coat::Font::style |
( |
const int | st | ) |
|
set the style of the font
- Parameters
-
- Returns
- font reference
◆ weight() [1/2]
int coat::Font::weight |
( |
| ) |
const |
get the font weight
- Returns
- font weight
◆ weight() [2/2]
Font & coat::Font::weight |
( |
const int & | weight | ) |
|
set the font weight
- Parameters
-
weight | font weight property |
- Returns
- font reference
The documentation for this class was generated from the following file: