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

#include <juce_SimpleShapedText.h>

Collaboration diagram for juce::detail::SimpleShapedText:

Public Member Functions

 SimpleShapedText (const String *data, const ShapedTextOptions &options)
 
juce_wchar getCodepoint (int64 glyphIndex) const
 
const auto & getGlyphLookup () const
 
void getGlyphRanges (Range< int64 > textRange, std::vector< Range< int64 > > &outRanges) const
 
Span< const ShapedGlyphgetGlyphs () const
 
Span< const ShapedGlyphgetGlyphs (Range< int64 > glyphRange) const
 
const auto & getLineNumbersForGlyphRanges () const
 
const auto & getLineTextRanges () const
 
int64 getNumGlyphs () const
 
int64 getNumLines () const
 
const auto & getResolvedFonts () const
 
int64 getTextIndexAfterGlyph (int64 glyphIndex) const
 
Range< int64getTextRange (int64 glyphIndex) const
 
bool isLtr (int64 glyphIndex) const
 

Private Member Functions

void shape (const String &data, const ShapedTextOptions &options)
 

Private Attributes

detail::RangedValues< GlyphLookupEntryglyphLookup
 
std::vector< ShapedGlyphglyphsInVisualOrder
 
detail::RangedValues< int64lineNumbersForGlyphRanges
 
detail::Ranges lineTextRanges
 
detail::RangedValues< FontresolvedFonts
 
const Stringstring
 

Constructor & Destructor Documentation

◆ SimpleShapedText()

juce::detail::SimpleShapedText::SimpleShapedText ( const String data,
const ShapedTextOptions options 
)

Member Function Documentation

◆ getCodepoint()

juce_wchar juce::detail::SimpleShapedText::getCodepoint ( int64  glyphIndex) const

◆ getGlyphLookup()

const auto & juce::detail::SimpleShapedText::getGlyphLookup ( ) const
inline

References glyphLookup.

◆ getGlyphRanges()

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

◆ getGlyphs() [1/2]

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

◆ getGlyphs() [2/2]

Span< const ShapedGlyph > juce::detail::SimpleShapedText::getGlyphs ( Range< int64 glyphRange) const

◆ getLineNumbersForGlyphRanges()

const auto & juce::detail::SimpleShapedText::getLineNumbersForGlyphRanges ( ) const
inline

◆ getLineTextRanges()

const auto & juce::detail::SimpleShapedText::getLineTextRanges ( ) const
inline

References lineTextRanges.

◆ getNumGlyphs()

int64 juce::detail::SimpleShapedText::getNumGlyphs ( ) const
inline

References glyphsInVisualOrder.

◆ getNumLines()

int64 juce::detail::SimpleShapedText::getNumLines ( ) const
inline

◆ getResolvedFonts()

const auto & juce::detail::SimpleShapedText::getResolvedFonts ( ) const
inline

◆ getTextIndexAfterGlyph()

int64 juce::detail::SimpleShapedText::getTextIndexAfterGlyph ( int64  glyphIndex) const

◆ getTextRange()

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

◆ isLtr()

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

◆ shape()

void juce::detail::SimpleShapedText::shape ( const String data,
const ShapedTextOptions options 
)
private

Member Data Documentation

◆ glyphLookup

detail::RangedValues<GlyphLookupEntry> juce::detail::SimpleShapedText::glyphLookup
private

Referenced by getGlyphLookup().

◆ glyphsInVisualOrder

std::vector<ShapedGlyph> juce::detail::SimpleShapedText::glyphsInVisualOrder
private

Referenced by getNumGlyphs().

◆ lineNumbersForGlyphRanges

detail::RangedValues<int64> juce::detail::SimpleShapedText::lineNumbersForGlyphRanges
private

◆ lineTextRanges

detail::Ranges juce::detail::SimpleShapedText::lineTextRanges
private

Referenced by getLineTextRanges().

◆ resolvedFonts

detail::RangedValues<Font> juce::detail::SimpleShapedText::resolvedFonts
private

Referenced by getResolvedFonts().

◆ string

const String& juce::detail::SimpleShapedText::string
private

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