OpenTTD Source  20240919-master-gdf0233f4c2
CoreTextParagraphLayout::CoreTextVisualRun Class Reference

Visual run contains data about the bit of text with the same font. More...

Inheritance diagram for CoreTextParagraphLayout::CoreTextVisualRun:
ParagraphLayouter::VisualRun

Public Member Functions

 CoreTextVisualRun (CTRunRef run, Font *font, const CoreTextParagraphLayoutFactory::CharType *buff)
 
 CoreTextVisualRun (CoreTextVisualRun &&other)=default
 
std::span< const GlyphIDGetGlyphs () const override
 
std::span< const Position > GetPositions () const override
 
std::span< const int > GetGlyphToCharMap () const override
 
const FontGetFont () const override
 
int GetLeading () const override
 
int GetGlyphCount () const override
 
int GetAdvance () const
 

Private Attributes

std::vector< GlyphIDglyphs
 
std::vector< Position > positions
 
std::vector< int > glyph_to_char
 
int total_advance = 0
 
Fontfont
 

Detailed Description

Visual run contains data about the bit of text with the same font.

Definition at line 71 of file string_osx.cpp.


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