sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::CFont Class Reference

Font information. More...

#include <CFont.h>

Public Member Functions

 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...
 

Detailed Description

Font information.

Constructor & Destructor Documentation

◆ 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
namefull font name
sizefont size
colorfont color
indexfont index in the fonts collection
attributesoptional font attributes

◆ CFont() [2/2]

sptk::CFont::CFont ( const CFont font)
inline

Copy constructor.

Parameters
fontconst CFont&, font to copy from

Member Function Documentation

◆ 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:

Fri Oct 14 2022 09:58:36: SPTK 5.4.1