Holds a cache of recently-used glyph objects of some type. More...
#include <juce_RenderingHelpers.h>


Classes | |
| struct | Key |
Public Member Functions | |
| GlyphCache ()=default | |
| ~GlyphCache () override | |
| const auto & | get (const Font &font, const int glyphNumber) |
| void | reset () |
Static Public Member Functions | |
| static GlyphCache & | getInstance () |
Static Private Member Functions | |
| static void | deleteAll () |
| Deletes all extant objects. | |
| static GlyphCache *& | getSingletonPointer () noexcept |
Private Attributes | |
| LruCache< Key, std::vector< GlyphLayer > > | cache |
| CriticalSection | lock |
Holds a cache of recently-used glyph objects of some type.
@tags{Graphics}
|
default |
Referenced by getInstance().
|
inlineoverride |
References getSingletonPointer().
|
staticinherited |
Deletes all extant objects.
This shouldn't be used by applications, as it's called automatically in the shutdown code of the JUCEApplicationBase class.
|
inline |
References cache, lock, and juce::AffineTransform::scale().
|
inlinestatic |
|
inlinestaticprivatenoexcept |
Referenced by ~GlyphCache(), and getInstance().
|
inline |
|
private |
|
private |