Struct GlyphCache
Glyph image cache.
struct GlyphCache
Recently used glyphs are marked. checkpoint
clears usage marks.
cleanup
removes all items not accessed since the last checkpoint
.
Methods
Name | Description |
---|---|
checkpoint
()
|
Clear usage flags for all entries |
cleanup
()
|
Removes entries not used after the checkpoint calls (notifies about glyph destruction)
|
clear
()
|
Removes all entries (notifies about glyph destruction) |
find
(ch)
|
Try to find glyph for character in cache, returns null if not found
|
put
(ch, glyph)
|
Put character glyph to cache |