FastUIDraw
Public Member Functions | Friends | List of all members
fastuidraw::GlyphSequence::Subset Class Reference

#include <glyph_sequence.hpp>

Public Member Functions

void attributes_and_indices (GlyphRenderer render, c_array< const PainterAttribute > *out_attributes, c_array< const PainterIndex > *out_indices)
 
bool bounding_box (Rect *out_bb_box)
 
c_array< const unsigned int > glyphs (void)
 
const Pathpath (void)
 

Friends

class GlyphSequence
 

Detailed Description

A Subset represents a subset of the glyphs of a GlyphSequence for the purpose of culling when rendering. Different Subset values from the same GlyphSequence are guaranteed to have disjoint glyphs.

Definition at line 61 of file glyph_sequence.hpp.

Member Function Documentation

◆ attributes_and_indices()

void fastuidraw::GlyphSequence::Subset::attributes_and_indices ( GlyphRenderer  render,
c_array< const PainterAttribute > *  out_attributes,
c_array< const PainterIndex > *  out_indices 
)

Given a GlyphRenderer, returns Painter Attribute and PainterIndex data for specified GlyphRenderer value. The attribute data and index is generated by the GlyphAttributePacker as returned by parents GlyphSequence::attribute_packer(). The data is constructed lazily on demand.

Parameters
renderGlyphRenderer how to render the glyphs of this Subset
out_attributeslocation to which to write the array of the attributes to render the glyphs
out_indiceslocation to which to write the array of the indices to render the glyphs

◆ bounding_box()

bool fastuidraw::GlyphSequence::Subset::bounding_box ( Rect out_bb_box)

Gives the bounding box of the glyphs of this Subset object. A return value of false indicates that the bounding box is empty.

Parameters
out_bb_boxlocation to which to write the bounding box

◆ glyphs()

c_array<const unsigned int> fastuidraw::GlyphSequence::Subset::glyphs ( void  )

Returns an array of index values to pass to GlyphSequence::add_glyph() of the glyphs of this Subset.

◆ path()

const Path& fastuidraw::GlyphSequence::Subset::path ( void  )

Returns the Path made from the bounding box of the Subset.


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