The Battle for Wesnoth  1.15.1+dev
Static Public Member Functions | Private Types | Static Private Attributes | List of all members
font::text_cache Class Reference

#include <text_cache.hpp>

Static Public Member Functions

static text_surfacefind (const text_surface &t)
 
static void resize (unsigned int size)
 

Private Types

typedef std::list< text_surfacetext_list
 

Static Private Attributes

static text_list cache_
 
static unsigned int max_size_ = 50
 

Detailed Description

Definition at line 27 of file text_cache.hpp.

Member Typedef Documentation

◆ text_list

typedef std::list< text_surface > font::text_cache::text_list
private

Definition at line 33 of file text_cache.hpp.

Member Function Documentation

◆ find()

text_surface & font::text_cache::find ( const text_surface t)
static

Definition at line 37 of file text_cache.cpp.

References cache_, gui2::event::find(), and max_size_.

Referenced by font::draw_text_line(), and font::render_text().

◆ resize()

void font::text_cache::resize ( unsigned int  size)
static

Definition at line 26 of file text_cache.cpp.

References cache_, max_size_, and utf8::size().

Referenced by font::cache_mode().

Member Data Documentation

◆ cache_

text_cache::text_list font::text_cache::cache_
staticprivate

Definition at line 34 of file text_cache.hpp.

Referenced by find(), and resize().

◆ max_size_

unsigned int font::text_cache::max_size_ = 50
staticprivate

Definition at line 35 of file text_cache.hpp.

Referenced by find(), and resize().


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