openMSX
Classes | Public Member Functions | Static Public Member Functions | List of all members
openmsx::TTFFontPool Class Reference

Public Member Functions

TTF_Font * get (const string &filename, int ptSize)
 
void release (TTF_Font *font)
 

Static Public Member Functions

static TTFFontPoolinstance ()
 

Detailed Description

Definition at line 26 of file TTFFont.cc.

Member Function Documentation

◆ get()

TTF_Font * openmsx::TTFFontPool::get ( const string &  filename,
int  ptSize 
)

Definition at line 96 of file TTFFont.cc.

References openmsx::filename, ranges::find_if(), and openmsx::SDLTTF::instance().

Referenced by openmsx::TTFFont::TTFFont().

◆ instance()

TTFFontPool & openmsx::TTFFontPool::instance ( )
static

Definition at line 90 of file TTFFont.cc.

Referenced by openmsx::TTFFont::TTFFont(), and openmsx::TTFFont::~TTFFont().

◆ release()

void openmsx::TTFFontPool::release ( TTF_Font *  font)

Definition at line 121 of file TTFFont.cc.

References move_pop_back(), and rfind_if_unguarded().

Referenced by openmsx::TTFFont::~TTFFont().


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