JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::TextLayout::Line Class Reference

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

#include "juce_TextLayout.h"

Public Member Functions

 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
 
Range< floatgetLineBoundsX () const noexcept
 Returns the X position range which contains all the glyphs in this line.
 
Range< floatgetLineBoundsY () const noexcept
 Returns the Y position range which contains all the glyphs in this line.
 
Rectangle< floatgetLineBounds () const noexcept
 Returns the smallest rectangle which contains all the glyphs in this line.
 
void swap (Line &other) noexcept
 

Public Attributes

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

Detailed Description

A line containing a sequence of glyph-runs.

Definition at line 185 of file juce_TextLayout.h.

Constructor & Destructor Documentation

◆ Line() [1/2]

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

Definition at line 70 of file juce_TextLayout.cpp.

◆ Line() [2/2]

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

Definition at line 78 of file juce_TextLayout.cpp.

Member Function Documentation

◆ getLineBounds()

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

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

Definition at line 121 of file juce_TextLayout.cpp.

◆ getLineBoundsX()

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

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

Definition at line 92 of file juce_TextLayout.cpp.

◆ getLineBoundsY()

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

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

Definition at line 115 of file juce_TextLayout.cpp.

◆ operator=()

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

Definition at line 85 of file juce_TextLayout.cpp.

◆ swap()

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

Definition at line 129 of file juce_TextLayout.cpp.

Member Data Documentation

◆ ascent

float juce::TextLayout::Line::ascent

Definition at line 215 of file juce_TextLayout.h.

◆ descent

float juce::TextLayout::Line::descent

Definition at line 215 of file juce_TextLayout.h.

◆ leading

float juce::TextLayout::Line::leading

Definition at line 215 of file juce_TextLayout.h.

◆ lineOrigin

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

The line's baseline origin.

Definition at line 214 of file juce_TextLayout.h.

◆ runs

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

The glyph-runs in this line.

Definition at line 211 of file juce_TextLayout.h.

◆ stringRange

Range<int> juce::TextLayout::Line::stringRange

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

Definition at line 212 of file juce_TextLayout.h.


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