JUCE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Public Attributes | List of all members
TextLayout::Line Class Reference

A line containing a sequence of glyph-runs. More...

Public Member Functions

 Line () noexcept
 
 Line (const Line &)
 
 Line (Range< int > stringRange, Point< float > lineOrigin, float ascent, float descent, float leading, int numRunsToPreallocate)
 
 ~Line () noexcept
 
Range< float > getLineBoundsX () const noexcept
 Returns the X position range which contains all the glyphs in this line.
 

Public Attributes

OwnedArray< Runruns
 The glyph-runs in this line.
 
Range< int > stringRange
 The character range that this line represents in the original string that was used to create it.
 
Point< float > lineOrigin
 The line's baseline origin.
 
float ascent
 
float descent
 
float leading
 

Detailed Description

A line containing a sequence of glyph-runs.

Constructor & Destructor Documentation

TextLayout::Line::Line ( )
noexcept
TextLayout::Line::Line ( const Line )
TextLayout::Line::Line ( Range< int >  stringRange,
Point< float >  lineOrigin,
float  ascent,
float  descent,
float  leading,
int  numRunsToPreallocate 
)
TextLayout::Line::~Line ( )
noexcept

Member Function Documentation

Range<float> TextLayout::Line::getLineBoundsX ( ) const
noexcept

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

Member Data Documentation

OwnedArray<Run> TextLayout::Line::runs

The glyph-runs in this line.

Range<int> TextLayout::Line::stringRange

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

Point<float> TextLayout::Line::lineOrigin

The line's baseline origin.

float TextLayout::Line::ascent
float TextLayout::Line::descent
float TextLayout::Line::leading

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