OpenTTD Source 20260206-master-g4d4e37dbf1
CoreTextParagraphLayout::CoreTextLine Class Reference

A single line worth of VisualRuns. More...

Inheritance diagram for CoreTextParagraphLayout::CoreTextLine:
ParagraphLayouter::Line

Public Member Functions

 CoreTextLine (CFAutoRelease< CTLineRef > line, const FontMap &font_mapping, const CoreTextParagraphLayoutFactory::CharType *buff)
int GetLeading () const override
 Get the height of the line.
int GetWidth () const override
 Get the width of this line.
int CountRuns () const override
const VisualRunGetVisualRun (int run) const override
int GetInternalCharLength (char32_t c) const override

Detailed Description

A single line worth of VisualRuns.

Definition at line 69 of file string_osx.cpp.

Constructor & Destructor Documentation

◆ CoreTextLine()

CoreTextParagraphLayout::CoreTextLine::CoreTextLine ( CFAutoRelease< CTLineRef > line,
const FontMap & font_mapping,
const CoreTextParagraphLayoutFactory::CharType * buff )
inline

Definition at line 71 of file string_osx.cpp.

Member Function Documentation

◆ CountRuns()

int CoreTextParagraphLayout::CoreTextLine::CountRuns ( ) const
inlineoverridevirtual

Implements ParagraphLayouter::Line.

Definition at line 87 of file string_osx.cpp.

◆ GetInternalCharLength()

int CoreTextParagraphLayout::CoreTextLine::GetInternalCharLength ( char32_t c) const
inlineoverridevirtual

Implements ParagraphLayouter::Line.

Definition at line 90 of file string_osx.cpp.

◆ GetLeading()

int CoreTextParagraphLayout::CoreTextLine::GetLeading ( ) const
overridevirtual

Get the height of the line.

Returns
The maximum height of the line.

Implements ParagraphLayouter::Line.

Definition at line 241 of file string_osx.cpp.

◆ GetVisualRun()

const VisualRun & CoreTextParagraphLayout::CoreTextLine::GetVisualRun ( int run) const
inlineoverridevirtual

Implements ParagraphLayouter::Line.

Definition at line 88 of file string_osx.cpp.

◆ GetWidth()

int CoreTextParagraphLayout::CoreTextLine::GetWidth ( ) const
overridevirtual

Get the width of this line.

Returns
The width of the line.

Implements ParagraphLayouter::Line.

Definition at line 255 of file string_osx.cpp.


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