Bomberman
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
RAY::Font Class Reference

A font manager. More...

#include <Font.hpp>

Collaboration diagram for RAY::Font:

Public Member Functions

 Font (const std::string &filename, bool lonely=false)
 Create an font, loading a file. More...
 
 Font (const Font &)=default
 A default copy constructor. More...
 
 Font ()
 A default constructor, no ressources loaded. More...
 
Fontoperator= (const Font &)=default
 An font is assignable. More...
 
 ~Font ()=default
 Default destructor. More...
 

Private Attributes

std::shared_ptr<::Font_font
 Font, really, that's just it... More...
 

Static Private Attributes

static Cache<::Font_fontsCache
 

Detailed Description

A font manager.

Constructor & Destructor Documentation

◆ Font() [1/3]

RAY::Font::Font ( const std::string &  filename,
bool  lonely = false 
)

Create an font, loading a file.

Parameters
filenamepath to file to load
lonelyshould be set to true if the entity's loaded data must be independant from others

◆ Font() [2/3]

RAY::Font::Font ( const Font )
default

A default copy constructor.

◆ Font() [3/3]

RAY::Font::Font ( )

A default constructor, no ressources loaded.

◆ ~Font()

RAY::Font::~Font ( )
default

Default destructor.

Member Function Documentation

◆ operator=()

Font& RAY::Font::operator= ( const Font )
default

An font is assignable.

Member Data Documentation

◆ _font

std::shared_ptr<::Font> RAY::Font::_font
private

Font, really, that's just it...

◆ _fontsCache

RAY::Cache<::Font > RAY::Font::_fontsCache
staticprivate

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