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

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

#include <juce_TextLayout.h>

Collaboration diagram for juce::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< floatgetLineBounds () const noexcept
 Returns the smallest rectangle which contains all the glyphs in this line. More...
 
Range< floatgetLineBoundsX () const noexcept
 Returns the X position range which contains all the glyphs in this line. More...
 
Range< floatgetLineBoundsY () 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< floatlineOrigin
 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]

juce::TextLayout::Line::Line ( )
noexcept

◆ Line() [2/3]

juce::TextLayout::Line::Line ( const Line )

◆ Line() [3/3]

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

◆ ~Line()

juce::TextLayout::Line::~Line ( )
noexcept

Member Function Documentation

◆ getLineBounds()

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

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

◆ getLineBoundsX()

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

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

◆ getLineBoundsY()

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

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

◆ operator=()

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

Member Data Documentation

◆ ascent

float juce::TextLayout::Line::ascent

◆ descent

float juce::TextLayout::Line::descent

◆ leading

float juce::TextLayout::Line::leading

◆ lineOrigin

Point<float> juce::TextLayout::Line::lineOrigin

The line's baseline origin.

◆ runs

OwnedArray<Run> juce::TextLayout::Line::runs

The glyph-runs in this line.

◆ stringRange

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