bpp-core3  3.0.0
bpp::FontManager< CodeType > Class Template Referenceabstract

Associate special fonts to a code. More...

#include <Bpp/Graphics/Font/FontManager.h>

+ Inheritance diagram for bpp::FontManager< CodeType >:

Public Member Functions

 FontManager ()
 
virtual ~FontManager ()
 
virtual CodeType getCode (const Font &font) const =0
 
virtual const FontgetFont (CodeType &code) const =0
 
virtual std::vector< CodeType > getCodes () const =0
 
virtual std::vector< FontgetFonts () const =0
 
virtual size_t getNumberOfFonts () const =0
 

Detailed Description

template<class CodeType>
class bpp::FontManager< CodeType >

Associate special fonts to a code.

Instances of this interface are used in some vector format.

Definition at line 25 of file FontManager.h.

Constructor & Destructor Documentation

◆ FontManager()

template<class CodeType>
bpp::FontManager< CodeType >::FontManager ( )
inline

Definition at line 28 of file FontManager.h.

◆ ~FontManager()

template<class CodeType>
virtual bpp::FontManager< CodeType >::~FontManager ( )
inlinevirtual

Definition at line 29 of file FontManager.h.

Member Function Documentation

◆ getCode()

template<class CodeType>
virtual CodeType bpp::FontManager< CodeType >::getCode ( const Font font) const
pure virtual
Parameters
fontThe font to look for.
Returns
The code associated to a given font.

Implemented in bpp::AbstractFontManager< CodeType >, and bpp::AbstractFontManager< int >.

Referenced by bpp::FontManager< int >::~FontManager().

◆ getCodes()

template<class CodeType>
virtual std::vector<CodeType> bpp::FontManager< CodeType >::getCodes ( ) const
pure virtual

◆ getFont()

template<class CodeType>
virtual const Font& bpp::FontManager< CodeType >::getFont ( CodeType &  code) const
pure virtual
Parameters
codeThe code to look for.
Returns
The font associated to a given code.
Exceptions
exceptionif the code is not valid.

Implemented in bpp::AbstractFontManager< int >.

Referenced by bpp::FontManager< int >::~FontManager().

◆ getFonts()

template<class CodeType>
virtual std::vector<Font> bpp::FontManager< CodeType >::getFonts ( ) const
pure virtual

◆ getNumberOfFonts()

template<class CodeType>
virtual size_t bpp::FontManager< CodeType >::getNumberOfFonts ( ) const
pure virtual
Returns
The total number of fonts available.

Implemented in bpp::AbstractFontManager< CodeType >, and bpp::AbstractFontManager< int >.

Referenced by bpp::FontManager< int >::~FontManager().


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