A sequence of glyphs with a common font and colour. More...
Public Member Functions | |
Run ()=default | |
Run (Range< int > stringRange, int numGlyphsToPreallocate) | |
Range< float > | getRunBoundsX () const noexcept |
Returns the X position range which contains all the glyphs in this run. | |
Public Attributes | |
Font | font { FontOptions{} } |
The run's font. | |
Colour | colour { 0xff000000 } |
The run's colour. | |
Array< Glyph > | glyphs |
The glyphs in this run. | |
Range< int > | stringRange |
The character range that this run represents in the original string that was used to create it. | |
A sequence of glyphs with a common font and colour.
|
default |
TextLayout::Run::Run | ( | Range< int > | stringRange, |
int | numGlyphsToPreallocate ) |
References stringRange.
|
noexcept |
Returns the X position range which contains all the glyphs in this run.
Font TextLayout::Run::font { FontOptions{} } |
The run's font.
Colour TextLayout::Run::colour { 0xff000000 } |
The run's colour.