GlyphCacheManager creates and maintains glyph caches for different font file and font size combinations.
More...
#include <kanzi/core.ui/font/glyph_cache_manager.hpp>
GlyphCacheManager creates and maintains glyph caches for different font file and font size combinations.
kanzi::GlyphCacheManager::GlyphCacheManager |
( |
Domain & |
domain | ) |
|
|
explicit |
Constructor.
- Parameters
-
domain | The domain to which you want the glyph cache manager to belong. |
kanzi::GlyphCacheManager::~GlyphCacheManager |
( |
| ) |
|
void kanzi::GlyphCacheManager::setGlyphCacheSize |
( |
unsigned int |
glyphCacheWidth, |
|
|
unsigned int |
glyphCacheHeight |
|
) |
| |
Sets the size of the textures in glyph caches created by the glyph cache manager.
- Parameters
-
glyphCacheWidth | Width of textures. |
glyphCacheHeight | Height of textures. |
Retrieves the glyph cache associated with the given font file and font size.
If a glyph cache does not yet exist, this function creates a glyph cache. Even if the there are no users for the glyph cache, the GlyphCacheManager keeps the glyph cache alive until purgeGlyphCaches() is called.
- Parameters
-
font | Font used for rendering glyphs in the glyph cache. |
fontSize | Size of the Font used for rendering glyphs in the glyph cache. |
- Returns
- Pointer to the glyph cache.
void kanzi::GlyphCacheManager::purgeGlyphCaches |
( |
| ) |
|
Removes glyph caches that have no external references.
The documentation for this class was generated from the following file: