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

CFontsVector is a map font names to fonts. More...

#include <CFont.h>

Public Member Functions

 CFontsVector ()=default
 Constructor.
 
 ~CFontsVector ()
 Destructor.
 
CFontoperator[] (uint32_t index)
 Returns font by index.
 
const CFontoperator[] (uint32_t index) const
 Returns font by index.
 
CFontfind (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...
 

Detailed Description

CFontsVector is a map font names to fonts.

Member Function Documentation

◆ clear()

void sptk::CFontsVector::clear ( )

Clears the fonts.

All the memory allocated for CFont objects is released

Referenced by ~CFontsVector().

◆ push_back()

void sptk::CFontsVector::push_back ( CFont font)

Appends a font to fonts vector.

Parameters
fontCFont*, font to append

◆ size()

uint32_t sptk::CFontsVector::size ( ) const
inline
Returns
the size of the fonts vector

The documentation for this class was generated from the following file:

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