OpenTTD Source  20241108-master-g80f628063a
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 &fontMapping, const CoreTextParagraphLayoutFactory::CharType *buff)
 
int GetLeading () const override
 Get the height of the line. More...
 
int GetWidth () const override
 Get the width of this line. More...
 
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 95 of file string_osx.cpp.

Member Function Documentation

◆ 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 269 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 283 of file string_osx.cpp.


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