OpenTTD Source: CoreTextParagraphLayout::CoreTextLine Class Reference

OpenTTD Source 12.0-beta1

Public Member Functions
CoreTextParagraphLayout::CoreTextLine Class Reference

A single line worth of VisualRuns. More...

Inheritance diagram for CoreTextParagraphLayout::CoreTextLine:

## 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 VisualRun & | GetVisualRun (int run) const override
int | GetInternalCharLength (WChar c) const override

## Detailed Description

A single line worth of VisualRuns.

Definition at line 94 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 263 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 277 of file string_osx.cpp.

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

- src/os/macosx/string_osx.cpp