JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::detail::JustifiedText Class Reference

#include <juce_JustifiedText.h>

Collaboration diagram for juce::detail::JustifiedText:

Public Member Functions

 JustifiedText (const SimpleShapedText *t, const ShapedTextOptions &options)
 
template<typename Callable , typename... RangedValues>
void accessTogetherWith (Callable &&callback, RangedValues &&... rangedValues) const
 
GlyphAnchorResult getGlyphAnchor (int64 glyphIndex) const
 
int64 getGlyphIndexToTheRightOf (Point< float > p) const
 
RectangleList< floatgetGlyphsBounds (Range< int64 > glyphRange) const
 
float getHeight () const
 
const auto & getLineMetricsForGlyphRange () const
 
auto & getMinimumRequiredWidthForLines () const
 

Private Types

enum class  DrawType {
  normal ,
  ellipsis
}
 

Private Attributes

std::optional< SimpleShapedTextellipsis
 
detail::RangedValues< LineMetricslineMetricsForGlyphRange
 
std::vector< floatminimumRequiredWidthsForLine
 
detail::RangedValues< DrawTyperangesToDraw
 
const SimpleShapedTextshapedText
 
detail::RangedValues< floatwhitespaceStretch
 

Member Enumeration Documentation

◆ DrawType

enum class juce::detail::JustifiedText::DrawType
strongprivate
Enumerator
normal 
ellipsis 

Constructor & Destructor Documentation

◆ JustifiedText()

juce::detail::JustifiedText::JustifiedText ( const SimpleShapedText t,
const ShapedTextOptions options 
)

Member Function Documentation

◆ accessTogetherWith()

◆ getGlyphAnchor()

GlyphAnchorResult juce::detail::JustifiedText::getGlyphAnchor ( int64  glyphIndex) const

◆ getGlyphIndexToTheRightOf()

int64 juce::detail::JustifiedText::getGlyphIndexToTheRightOf ( Point< float p) const

◆ getGlyphsBounds()

RectangleList< float > juce::detail::JustifiedText::getGlyphsBounds ( Range< int64 glyphRange) const

◆ getHeight()

float juce::detail::JustifiedText::getHeight ( ) const

◆ getLineMetricsForGlyphRange()

const auto & juce::detail::JustifiedText::getLineMetricsForGlyphRange ( ) const
inline

◆ getMinimumRequiredWidthForLines()

auto & juce::detail::JustifiedText::getMinimumRequiredWidthForLines ( ) const
inline

Member Data Documentation

◆ ellipsis

std::optional<SimpleShapedText> juce::detail::JustifiedText::ellipsis
private

Referenced by accessTogetherWith().

◆ lineMetricsForGlyphRange

detail::RangedValues<LineMetrics> juce::detail::JustifiedText::lineMetricsForGlyphRange
private

◆ minimumRequiredWidthsForLine

std::vector<float> juce::detail::JustifiedText::minimumRequiredWidthsForLine
private

◆ rangesToDraw

detail::RangedValues<DrawType> juce::detail::JustifiedText::rangesToDraw
private

Referenced by accessTogetherWith().

◆ shapedText

const SimpleShapedText& juce::detail::JustifiedText::shapedText
private

Referenced by accessTogetherWith().

◆ whitespaceStretch

detail::RangedValues<float> juce::detail::JustifiedText::whitespaceStretch
private

Referenced by accessTogetherWith().


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