JUCE  v5.1.1-3-g1a0b28c73
JUCE API
RenderingHelpers::CachedGlyphEdgeTable< RendererType > Class Template Reference

Caches a glyph as an edge-table. More...

#include <juce_RenderingHelpers.h>

Inheritance diagram for RenderingHelpers::CachedGlyphEdgeTable< RendererType >:
Collaboration diagram for RenderingHelpers::CachedGlyphEdgeTable< RendererType >:

Public Member Functions

 CachedGlyphEdgeTable ()
 
void decReferenceCount () noexcept
 Decreases the object's reference count. More...
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count. More...
 
void draw (RendererType &state, Point< float > pos) const
 
void generate (const Font &newFont, const int glyphNumber)
 
int getReferenceCount () const noexcept
 Returns the object's current reference count. More...
 
void incReferenceCount () noexcept
 Increments the object's reference count. More...
 

Public Attributes

ScopedPointer< EdgeTableedgeTable
 
Font font
 
int glyph
 
int lastAccessCount
 
bool snapToIntegerCoordinate
 

Protected Member Functions

void resetReferenceCount () noexcept
 Resets the reference count to zero without deleting the object. More...
 

Detailed Description

template<class RendererType>
class RenderingHelpers::CachedGlyphEdgeTable< RendererType >

Caches a glyph as an edge-table.

Constructor & Destructor Documentation

◆ CachedGlyphEdgeTable()

template<class RendererType >
RenderingHelpers::CachedGlyphEdgeTable< RendererType >::CachedGlyphEdgeTable ( )
inline

Member Function Documentation

◆ decReferenceCount()

void ReferenceCountedObject::decReferenceCount ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will be deleted.

References jassert.

◆ decReferenceCountWithoutDeleting()

bool ReferenceCountedObject::decReferenceCountWithoutDeleting ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.

References jassert.

◆ draw()

template<class RendererType >
void RenderingHelpers::CachedGlyphEdgeTable< RendererType >::draw ( RendererType &  state,
Point< float >  pos 
) const
inline

◆ generate()

template<class RendererType >
void RenderingHelpers::CachedGlyphEdgeTable< RendererType >::generate ( const Font newFont,
const int  glyphNumber 
)
inline

◆ getReferenceCount()

int ReferenceCountedObject::getReferenceCount ( ) const
inlinenoexceptinherited

Returns the object's current reference count.

◆ incReferenceCount()

void ReferenceCountedObject::incReferenceCount ( )
inlinenoexceptinherited

Increments the object's reference count.

This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.

◆ resetReferenceCount()

void ReferenceCountedObject::resetReferenceCount ( )
inlineprotectednoexceptinherited

Resets the reference count to zero without deleting the object.

You should probably never need to use this!

Member Data Documentation

◆ edgeTable

template<class RendererType >
ScopedPointer<EdgeTable> RenderingHelpers::CachedGlyphEdgeTable< RendererType >::edgeTable

◆ font

template<class RendererType >
Font RenderingHelpers::CachedGlyphEdgeTable< RendererType >::font

◆ glyph

template<class RendererType >
int RenderingHelpers::CachedGlyphEdgeTable< RendererType >::glyph

◆ lastAccessCount

template<class RendererType >
int RenderingHelpers::CachedGlyphEdgeTable< RendererType >::lastAccessCount

◆ snapToIntegerCoordinate

template<class RendererType >
bool RenderingHelpers::CachedGlyphEdgeTable< RendererType >::snapToIntegerCoordinate

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