Font information.
More...
#include <CFont.h>
|
| CFont (const String &name="arial", uint32_t size=10, uint32_t color=0, uint32_t index=0, uint32_t attributes=0) |
| Constructor. More...
|
|
| CFont (const CFont &font) |
| Copy constructor. More...
|
|
String | name () const |
| Returns font name.
|
|
uint32_t | size () const |
| Returns font size.
|
|
uint32_t | color () const |
| Returns font color.
|
|
uint32_t | index () const |
| Returns font index in the fonts collection.
|
|
uint32_t | attributes () const |
| Returns font attributes.
|
|
std::string | id () const |
| Returns unique font id. More...
|
|
◆ CFont() [1/2]
sptk::CFont::CFont |
( |
const String & |
name = "arial" , |
|
|
uint32_t |
size = 10 , |
|
|
uint32_t |
color = 0 , |
|
|
uint32_t |
index = 0 , |
|
|
uint32_t |
attributes = 0 |
|
) |
| |
|
inlineexplicit |
Constructor.
- Parameters
-
name | full font name |
size | font size |
color | font color |
index | font index in the fonts collection |
attributes | optional font attributes |
◆ CFont() [2/2]
sptk::CFont::CFont |
( |
const CFont & |
font | ) |
|
|
inline |
Copy constructor.
- Parameters
-
font | const CFont&, font to copy from |
◆ id()
std::string sptk::CFont::id |
( |
| ) |
const |
Returns unique font id.
Font id combines all the font attributes separated with "|"
The documentation for this class was generated from the following file: