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

#include <juce_ShapedText.h>

Collaboration diagram for juce::detail::ShapedText:

Public Types

using Options = ShapedTextOptions
 

Public Member Functions

 ShapedText ()
 
 ShapedText (String text)
 
 ShapedText (String text, Options options)
 
template<typename Callable , typename... RangedValues>
void accessTogetherWith (Callable &&callback, RangedValues &&... rangedValues) const
 
void draw (const Graphics &g, AffineTransform transform) const
 
GlyphAnchorResult getGlyphAnchor (int64 index) const
 
void getGlyphRanges (Range< int64 > textRange, std::vector< Range< int64 > > &outRanges) const
 
Span< const ShapedGlyphgetGlyphs () const
 
RectangleList< floatgetGlyphsBounds (Range< int64 > glyphRange) const
 
float getHeight () const
 
const JustifiedTextgetJustifiedText () const
 
const detail::RangedValues< LineMetrics > & getLineMetricsForGlyphRange () const
 
const detail::RangesgetLineTextRanges () const
 
Span< const floatgetMinimumRequiredWidthForLines () const
 
int64 getNumGlyphs () const
 
const SimpleShapedTextgetSimpleShapedText () const
 
const StringgetText () const
 
int64 getTextIndexForCaret (Point< float > p) const
 
Range< int64getTextRange (int64 glyphIndex) const
 
bool isLtr (int64 glyphIndex) const
 

Private Attributes

std::shared_ptr< Impl > impl
 

Member Typedef Documentation

◆ Options

Constructor & Destructor Documentation

◆ ShapedText() [1/3]

juce::detail::ShapedText::ShapedText ( )

◆ ShapedText() [2/3]

juce::detail::ShapedText::ShapedText ( String  text)
explicit

◆ ShapedText() [3/3]

juce::detail::ShapedText::ShapedText ( String  text,
Options  options 
)

Member Function Documentation

◆ accessTogetherWith()

template<typename Callable , typename... RangedValues>
void juce::detail::ShapedText::accessTogetherWith ( Callable &&  callback,
RangedValues &&...  rangedValues 
) const
inline

◆ draw()

void juce::detail::ShapedText::draw ( const Graphics g,
AffineTransform  transform 
) const

◆ getGlyphAnchor()

GlyphAnchorResult juce::detail::ShapedText::getGlyphAnchor ( int64  index) const

◆ getGlyphRanges()

void juce::detail::ShapedText::getGlyphRanges ( Range< int64 textRange,
std::vector< Range< int64 > > &  outRanges 
) const

◆ getGlyphs()

Span< const ShapedGlyph > juce::detail::ShapedText::getGlyphs ( ) const

◆ getGlyphsBounds()

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

◆ getHeight()

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

◆ getJustifiedText()

const JustifiedText & juce::detail::ShapedText::getJustifiedText ( ) const

◆ getLineMetricsForGlyphRange()

const detail::RangedValues< LineMetrics > & juce::detail::ShapedText::getLineMetricsForGlyphRange ( ) const

◆ getLineTextRanges()

const detail::Ranges & juce::detail::ShapedText::getLineTextRanges ( ) const

◆ getMinimumRequiredWidthForLines()

Span< const float > juce::detail::ShapedText::getMinimumRequiredWidthForLines ( ) const

◆ getNumGlyphs()

int64 juce::detail::ShapedText::getNumGlyphs ( ) const

◆ getSimpleShapedText()

const SimpleShapedText & juce::detail::ShapedText::getSimpleShapedText ( ) const

◆ getText()

const String & juce::detail::ShapedText::getText ( ) const

◆ getTextIndexForCaret()

int64 juce::detail::ShapedText::getTextIndexForCaret ( Point< float p) const

◆ getTextRange()

Range< int64 > juce::detail::ShapedText::getTextRange ( int64  glyphIndex) const

◆ isLtr()

bool juce::detail::ShapedText::isLtr ( int64  glyphIndex) const

Member Data Documentation

◆ impl

std::shared_ptr<Impl> juce::detail::ShapedText::impl
private

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