FastUIDraw
Public Member Functions | Friends | List of all members
fastuidraw::GlyphCache::AllocationHandle Class Reference

#include <glyph_cache.hpp>

Public Member Functions

unsigned int location (void) const
 
bool valid (void) const
 

Friends

class GlyphCache
 

Detailed Description

An AllocationHandle represents a handle to data allocated on the underlying GlyphAtlas of a GlyphCache. The handle is to be used to deallocate from the GlyphAtlas. Note that all data on the GlyphCache is deallocated when GlyphCache::clear_atlas() or GlyphCache::clear_cache() is called.

Definition at line 54 of file glyph_cache.hpp.

Member Function Documentation

◆ location()

unsigned int fastuidraw::GlyphCache::AllocationHandle::location ( void  ) const
inline

Returns the location within the GlyphAtlas of the allocated data.

Definition at line 77 of file glyph_cache.hpp.

◆ valid()

bool fastuidraw::GlyphCache::AllocationHandle::valid ( void  ) const
inline

Returns true if the AllocationHandle refers to a successful allocation.

Definition at line 67 of file glyph_cache.hpp.


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