A line containing a sequence of glyph-runs.
Public Member Functions | |
| Line ()=default | |
| Line (Range< int > stringRange, Point< float > lineOrigin, float ascent, float descent, float leading, int numRunsToPreallocate) | |
| Line (const Line &) | |
| Line & | operator= (const Line &) |
| Line (Line &&) noexcept=default | |
| Line & | operator= (Line &&) noexcept=default |
| ~Line () noexcept=default | |
| Range< float > | getLineBoundsX () const noexcept |
| Returns the X position range which contains all the glyphs in this line. | |
| Range< float > | getLineBoundsY () const noexcept |
| Returns the Y position range which contains all the glyphs in this line. | |
| Rectangle< float > | getLineBounds () const noexcept |
| Returns the smallest rectangle which contains all the glyphs in this line. | |
| void | swap (Line &other) noexcept |
Public Attributes | |
| OwnedArray< Run > | runs |
| 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 = 0.0f |
| float | descent = 0.0f |
| float | leading = 0.0f |
|
default |
Referenced by Line(), Line(), operator=(), operator=(), swap(), and ~Line().
| juce::TextLayout::Line::Line | ( | Range< int > | stringRange, |
| Point< float > | lineOrigin, | ||
| float | ascent, | ||
| float | descent, | ||
| float | leading, | ||
| int | numRunsToPreallocate ) |
References ascent, descent, leading, lineOrigin, and stringRange.
|
defaultnoexcept |
References Line().
|
noexcept |
Returns the X position range which contains all the glyphs in this line.
References getLineBoundsX().
Referenced by getLineBoundsX().
|
noexcept |
Returns the Y position range which contains all the glyphs in this line.
References getLineBoundsY().
Referenced by getLineBoundsY().
|
noexcept |
Returns the smallest rectangle which contains all the glyphs in this line.
References getLineBounds().
Referenced by getLineBounds(), and juce::TextLayout::getStringBounds().
|
noexcept |
| OwnedArray<Run> juce::TextLayout::Line::runs |
The glyph-runs in this line.
| Range<int> juce::TextLayout::Line::stringRange |
The character range that this line represents in the original string that was used to create it.
Referenced by Line().
| float juce::TextLayout::Line::ascent = 0.0f |
Referenced by Line().
| float juce::TextLayout::Line::descent = 0.0f |
Referenced by Line().
| float juce::TextLayout::Line::leading = 0.0f |
Referenced by Line().