JUCE  v5.1.1-3-g1a0b28c73
JUCE API
TextLayout::Line Class Reference

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

#include <juce_TextLayout.h>

Collaboration diagram for TextLayout::Line:

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
 
Rectangle< float > getLineBounds () const noexcept
 Returns the smallest rectangle which contains all the glyphs in this line. More...
 
Range< float > getLineBoundsX () const noexcept
 Returns the X position range which contains all the glyphs in this line. More...
 
Range< float > getLineBoundsY () const noexcept
 Returns the Y position range which contains all the glyphs in this line. More...
 

Public Attributes

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

Private Member Functions

Lineoperator= (const Line &)
 

Detailed Description

A line containing a sequence of glyph-runs.

Constructor & Destructor Documentation

◆ Line() [1/3]

TextLayout::Line::Line ( )
noexcept

◆ Line() [2/3]

TextLayout::Line::Line ( const Line )

◆ Line() [3/3]

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

◆ ~Line()

TextLayout::Line::~Line ( )
noexcept

Member Function Documentation

◆ getLineBounds()

Rectangle<float> TextLayout::Line::getLineBounds ( ) const
noexcept

Returns the smallest rectangle which contains all the glyphs in this line.

◆ getLineBoundsX()

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

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

◆ getLineBoundsY()

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

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

◆ operator=()

Line& TextLayout::Line::operator= ( const Line )
private

Member Data Documentation

◆ ascent

float TextLayout::Line::ascent

◆ descent

float TextLayout::Line::descent

◆ leading

float TextLayout::Line::leading

◆ lineOrigin

Point<float> TextLayout::Line::lineOrigin

The line's baseline origin.

◆ runs

OwnedArray<Run> TextLayout::Line::runs

The glyph-runs in this line.

◆ stringRange

Range<int> TextLayout::Line::stringRange

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


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