Public Member Functions | Public Attributes | List of all members
TextLayout::Run Class Reference

A sequence of glyphs with a common font and colour. More...

Public Member Functions

 Run () noexcept
 
 Run (const Run &)
 
 Run (Range< int > stringRange, int numGlyphsToPreallocate)
 
 ~Run () noexcept
 
Range< float > getRunBoundsX () const noexcept
 Returns the X position range which contains all the glyphs in this run. More...
 

Public Attributes

Font font
 The run's font. More...
 
Colour colour
 The run's colour. More...
 
Array< Glyphglyphs
 The glyphs in this run. More...
 
Range< int > stringRange
 The character range that this run represents in the original string that was used to create it. More...
 

Detailed Description

A sequence of glyphs with a common font and colour.

Constructor & Destructor Documentation

◆ Run() [1/3]

TextLayout::Run::Run ( )
noexcept

◆ Run() [2/3]

TextLayout::Run::Run ( const Run )

◆ Run() [3/3]

TextLayout::Run::Run ( Range< int >  stringRange,
int  numGlyphsToPreallocate 
)

◆ ~Run()

TextLayout::Run::~Run ( )
noexcept

Member Function Documentation

◆ getRunBoundsX()

Range<float> TextLayout::Run::getRunBoundsX ( ) const
noexcept

Returns the X position range which contains all the glyphs in this run.

Member Data Documentation

◆ font

Font TextLayout::Run::font

The run's font.

◆ colour

Colour TextLayout::Run::colour

The run's colour.

◆ glyphs

Array<Glyph> TextLayout::Run::glyphs

The glyphs in this run.

◆ stringRange

Range<int> TextLayout::Run::stringRange

The character range that this run represents in the original string that was used to create it.


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