A line containing a sequence of glyph-runs. More...
#include <juce_TextLayout.h>
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< Run > | runs |
The glyph-runs in this line. More... | |
Range< int > | stringRange |
The character range that this line represents in the original string that was used to create it. More... | |
Private Member Functions | |
Line & | operator= (const Line &) |
A line containing a sequence of glyph-runs.
|
noexcept |
juce::TextLayout::Line::Line | ( | const Line & | ) |
juce::TextLayout::Line::Line | ( | Range< int > | stringRange, |
Point< float > | lineOrigin, | ||
float | ascent, | ||
float | descent, | ||
float | leading, | ||
int | numRunsToPreallocate | ||
) |
|
noexcept |
Returns the smallest rectangle which contains all the glyphs in this line.
Returns the X position range which contains all the glyphs in this line.
Returns the Y position range which contains all the glyphs in this line.
float juce::TextLayout::Line::ascent |
float juce::TextLayout::Line::descent |
float juce::TextLayout::Line::leading |
OwnedArray<Run> juce::TextLayout::Line::runs |
The glyph-runs in this line.
The character range that this line represents in the original string that was used to create it.