JUCE
Loading...
Searching...
No Matches
TextLayout::Run Class Reference

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

#include <juce_TextLayout.h>

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.
 

Public Attributes

Font font
 The run's font.
 
Colour colour
 The run's colour.
 
Array< Glyphglyphs
 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.
 

Detailed Description

A sequence of glyphs with a common font and colour.

Constructor & Destructor Documentation

◆ Run() [1/3]

TextLayout::Run::Run ( )
noexcept

Referenced by Run(), Run(), and ~Run().

◆ Run() [2/3]

TextLayout::Run::Run ( const Run & )

References Run().

◆ Run() [3/3]

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

References Run(), and stringRange.

◆ ~Run()

TextLayout::Run::~Run ( )
noexcept

References Run().

Member Function Documentation

◆ getRunBoundsX()

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

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

References getRunBoundsX().

Referenced by getRunBoundsX().

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.

Referenced by Run().


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