|
CFontsVector is a map font names to fonts. More...
#include <CFont.h>
Public Member Functions | |
| CFontsVector ()=default | |
| Constructor. | |
| ~CFontsVector () | |
| Destructor. | |
| CFont * | operator[] (uint32_t index) |
| Returns font by index. | |
| const CFont * | operator[] (uint32_t index) const |
| Returns font by index. | |
| CFont * | find (const String &fontName) const |
| Returns font by its name. | |
| void | push_back (CFont *font) |
| Appends a font to fonts vector. More... | |
| uint32_t | size () const |
| void | clear () |
| Clears the fonts. More... | |
CFontsVector is a map font names to fonts.
| void sptk::CFontsVector::clear | ( | ) |
Clears the fonts.
All the memory allocated for CFont objects is released
Referenced by ~CFontsVector().
| void sptk::CFontsVector::push_back | ( | CFont * | font | ) |
Appends a font to fonts vector.
| font | CFont*, font to append |
|
inline |