JUCE
Public Member Functions | Static Public Member Functions | List of all members
juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType > Class Template Reference

Holds a cache of recently-used glyph objects of some type. More...

Inheritance diagram for juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >:

Public Member Functions

 GlyphCache ()
 
 ~GlyphCache ()
 
void reset ()
 
void drawGlyph (RenderTargetType &target, const Font &font, const int glyphNumber, Point< float > pos)
 
ReferenceCountedObjectPtr< CachedGlyphType > findOrCreateGlyph (const Font &font, int glyphNumber)
 

Static Public Member Functions

static GlyphCachegetInstance ()
 

Detailed Description

template<class CachedGlyphType, class RenderTargetType>
class juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >

Holds a cache of recently-used glyph objects of some type.

Constructor & Destructor Documentation

◆ GlyphCache()

template<class CachedGlyphType , class RenderTargetType >
juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >::GlyphCache ( )

◆ ~GlyphCache()

template<class CachedGlyphType , class RenderTargetType >
juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >::~GlyphCache ( )

Member Function Documentation

◆ getInstance()

template<class CachedGlyphType , class RenderTargetType >
static GlyphCache& juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >::getInstance ( )
static

◆ reset()

template<class CachedGlyphType , class RenderTargetType >
void juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >::reset ( )

◆ drawGlyph()

template<class CachedGlyphType , class RenderTargetType >
void juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >::drawGlyph ( RenderTargetType &  target,
const Font font,
const int  glyphNumber,
Point< float >  pos 
)

◆ findOrCreateGlyph()

template<class CachedGlyphType , class RenderTargetType >
ReferenceCountedObjectPtr<CachedGlyphType> juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType >::findOrCreateGlyph ( const Font font,
int  glyphNumber 
)

References jassert.


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