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 and font size.
If a glyph cache does not yet exist, this function creates a glyph cache.
- Parameters
-
| font | Font used for rendering glyphs in the glyph cache. |
- Returns
- Reference to the glyph cache.
| void kanzi::GlyphCacheManager::notifyFontDeleted |
( |
const FontFile & |
font | ) |
|
Font file notifies the glyph cache manager that Kanzi is deleting that font file.
This allows the glyph cache manager to clean up glyph caches for that font.
- Parameters
-
| font | FontFile object that is going to be deleted. |
| void kanzi::GlyphCacheManager::clearGlyphCaches |
( |
| ) |
|
Removes all glyph caches.
The documentation for this class was generated from the following file: