LMMS
Loading...
Searching...
No Matches
juce::TextLayout::Line Class Reference

#include <juce_TextLayout.h>

Public Member Functions

 Line ()=default
 Line (Range< int > stringRange, Point< float > lineOrigin, float ascent, float descent, float leading, int numRunsToPreallocate)
 Line (const Line &)
Lineoperator= (const Line &)
 Line (Line &&) noexcept=default
Lineoperator= (Line &&) noexcept=default
 ~Line () noexcept=default
Range< float > getLineBoundsX () const noexcept
Range< float > getLineBoundsY () const noexcept
Rectangle< float > getLineBounds () const noexcept
void swap (Line &other) noexcept

Public Attributes

OwnedArray< Runruns
Range< intstringRange
Point< float > lineOrigin
float ascent = 0.0f
float descent = 0.0f
float leading = 0.0f

Detailed Description

A line containing a sequence of glyph-runs.

Constructor & Destructor Documentation

◆ Line() [1/4]

juce::TextLayout::Line::Line ( )
default

◆ Line() [2/4]

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

◆ Line() [3/4]

juce::TextLayout::Line::Line ( const Line & other)

◆ Line() [4/4]

juce::TextLayout::Line::Line ( Line && )
defaultnoexcept

◆ ~Line()

juce::TextLayout::Line::~Line ( )
defaultnoexcept

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=() [1/2]

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

◆ operator=() [2/2]

Line & juce::TextLayout::Line::operator= ( Line && )
defaultnoexcept

◆ swap()

void juce::TextLayout::Line::swap ( Line & other)
noexcept

Member Data Documentation

◆ ascent

float juce::TextLayout::Line::ascent = 0.0f

◆ descent

float juce::TextLayout::Line::descent = 0.0f

◆ leading

float juce::TextLayout::Line::leading = 0.0f

◆ 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 files: