JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType > Class Template Reference

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

#include <juce_RenderingHelpers.h>

Inheritance diagram for juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >:
Collaboration diagram for juce::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, 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

std::unique_ptr< EdgeTableedgeTable
 
Font font
 
int glyph = 0
 
int lastAccessCount = 0
 
bool snapToIntegerCoordinate = false
 

Protected Member Functions

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

Detailed Description

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

Caches a glyph as an edge-table.

{Graphics}

Constructor & Destructor Documentation

◆ CachedGlyphEdgeTable()

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

Member Function Documentation

◆ decReferenceCount()

void juce::ReferenceCountedObject::decReferenceCount ( )
inlinenoexceptinherited

Decreases the object's reference count.

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

References jassert.

◆ decReferenceCountWithoutDeleting()

bool juce::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 juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::draw ( RendererType &  state,
Point< float pos 
) const
inline

◆ generate()

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

◆ getReferenceCount()

int juce::ReferenceCountedObject::getReferenceCount ( ) const
inlinenoexceptinherited

Returns the object's current reference count.

◆ incReferenceCount()

void juce::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 juce::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 >
std::unique_ptr<EdgeTable> juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::edgeTable

◆ font

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

◆ glyph

template<class RendererType >
int juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::glyph = 0

◆ lastAccessCount

template<class RendererType >
int juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::lastAccessCount = 0

◆ snapToIntegerCoordinate

template<class RendererType >
bool juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::snapToIntegerCoordinate = false

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