Caches a glyph as an edge-table. More...
#include <juce_RenderingHelpers.h>
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< EdgeTable > | edgeTable |
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... | |
Caches a glyph as an edge-table.
|
inline |
|
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(), Point< ValueType >::x, and 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.
|
inlineprotectednoexceptinherited |
Resets the reference count to zero without deleting the object.
You should probably never need to use this!
ScopedPointer<EdgeTable> RenderingHelpers::CachedGlyphEdgeTable< RendererType >::edgeTable |
Font RenderingHelpers::CachedGlyphEdgeTable< RendererType >::font |
int RenderingHelpers::CachedGlyphEdgeTable< RendererType >::glyph |
int RenderingHelpers::CachedGlyphEdgeTable< RendererType >::lastAccessCount |
bool RenderingHelpers::CachedGlyphEdgeTable< RendererType >::snapToIntegerCoordinate |