Caches a glyph as an edge-table. More...
#include <juce_RenderingHelpers.h>
Public Member Functions | |
CachedGlyphEdgeTable ()=default | |
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< EdgeTable > | edgeTable |
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... | |
Private Attributes | |
Atomic< int > | refCount { 0 } |
Caches a glyph as an edge-table.
@tags{Graphics}
|
default |
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will be deleted.
References jassert.
|
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.
|
inline |
References juce::roundToInt(), juce::Point< ValueType >::x, and juce::Point< ValueType >::y.
|
inline |
|
inlinenoexceptinherited |
Returns the object's current reference count.
|
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.
Referenced by juce::ReferenceCountedObjectPtr< juce::ReferenceCountedObject >::operator=().
|
inlineprotectednoexceptinherited |
Resets the reference count to zero without deleting the object.
You should probably never need to use this!
std::unique_ptr<EdgeTable> juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::edgeTable |
Font juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::font |
int juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::glyph = 0 |
int juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::lastAccessCount = 0 |
bool juce::RenderingHelpers::CachedGlyphEdgeTable< RendererType >::snapToIntegerCoordinate = false |