bpp-core  2.1.0
bpp::FontManager< CodeType > Class Template Reference

Associate special fonts to a code. More...

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

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

List of all members.

Public Member Functions

 FontManager ()
virtual ~FontManager ()
virtual CodeType getCode (const Font &font) const =0 throw (Exception)
virtual const FontgetFont (CodeType &code) const =0 throw (Exception)
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 59 of file FontManager.h.


Constructor & Destructor Documentation

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

Definition at line 62 of file FontManager.h.

template<class CodeType>
virtual bpp::FontManager< CodeType >::~FontManager ( ) [inline, virtual]

Definition at line 63 of file FontManager.h.


Member Function Documentation

template<class CodeType>
virtual CodeType bpp::FontManager< CodeType >::getCode ( const Font font) const throw (Exception) [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 >.

template<class CodeType>
virtual std::vector<CodeType> bpp::FontManager< CodeType >::getCodes ( ) const [pure virtual]
Returns:
All valid codes.

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

template<class CodeType>
virtual const Font& bpp::FontManager< CodeType >::getFont ( CodeType &  code) const throw (Exception) [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 >.

template<class CodeType>
virtual std::vector<Font> bpp::FontManager< CodeType >::getFonts ( ) const [pure virtual]
Returns:
All available fonts.

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

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends