JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::TextLayout::Run Class Reference

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

#include <juce_TextLayout.h>

Collaboration diagram for juce::TextLayout::Run:

Public Member Functions

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

Public Attributes

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

Private Member Functions

Runoperator= (const Run &)
 

Detailed Description

A sequence of glyphs with a common font and colour.

Constructor & Destructor Documentation

◆ Run() [1/3]

juce::TextLayout::Run::Run ( )
noexcept

◆ Run() [2/3]

juce::TextLayout::Run::Run ( const Run )

◆ Run() [3/3]

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

◆ ~Run()

juce::TextLayout::Run::~Run ( )
noexcept

Member Function Documentation

◆ getRunBoundsX()

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

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

◆ operator=()

Run& juce::TextLayout::Run::operator= ( const Run )
private

Member Data Documentation

◆ colour

Colour juce::TextLayout::Run::colour

The run's colour.

◆ font

Font juce::TextLayout::Run::font

The run's font.

◆ glyphs

Array<Glyph> juce::TextLayout::Run::glyphs

The glyphs in this run.

◆ stringRange

Range<int> juce::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: