|
#include <CFont.h>
Public Member Functions | |
| CFont (std::string name="arial", uint32_t size=10, uint32_t color=0, uint32_t index=0, uint32_t attributes=0) | |
| Constructor. | |
| CFont (const CFont &font) | |
| Copy constructor. | |
| std::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. | |
| sptk::CFont::CFont | ( | std::string | name = "arial", |
|
| uint32_t | size = 10, |
|||
| uint32_t | color = 0, |
|||
| uint32_t | index = 0, |
|||
| uint32_t | attributes = 0 | |||
| ) | [inline] |
Constructor.
| name | std::string, full font name | |
| size | uint32_t, font size | |
| color | uint32_t, font color | |
| index | uint32_t, font index in the fonts collection | |
| attributes | uint32_t, optional font attributes |
References attributes(), color(), index(), name(), and size().
| sptk::CFont::CFont | ( | const CFont & | font | ) | [inline] |
| std::string sptk::CFont::id | ( | ) | const |
Returns unique font id.
Font id combines all the font attributes separated with "|"