openshot-audio  0.1.2
Public Member Functions | Static Public Member Functions | Friends | List of all members
RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType > Class Template Reference

#include <juce_RenderingHelpers.h>

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

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 ()
 

Friends

struct ContainerDeletePolicy< CachedGlyphType >
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ GlyphCache()

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

◆ ~GlyphCache()

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

Member Function Documentation

◆ drawGlyph()

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

◆ findOrCreateGlyph()

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

◆ getInstance()

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

◆ reset()

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

Friends And Related Function Documentation

◆ ContainerDeletePolicy< CachedGlyphType >

template<class CachedGlyphType , class RenderTargetType >
friend struct ContainerDeletePolicy< CachedGlyphType >
friend

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