OpenTTD Source  1.11.2
FallbackParagraphLayout::FallbackLine Class Reference

A single line worth of VisualRuns. More...

Inheritance diagram for FallbackParagraphLayout::FallbackLine:
ParagraphLayouter::Line

Public Member Functions

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
 Get the number of runs in this line. More...
 
const ParagraphLayouter::VisualRunGetVisualRun (int run) const override
 Get a specific visual run. More...
 
int GetInternalCharLength (WChar c) const override
 

Detailed Description

A single line worth of VisualRuns.

Definition at line 271 of file gfx_layout.cpp.

Member Function Documentation

◆ CountRuns()

int FallbackParagraphLayout::FallbackLine::CountRuns ( ) const
overridevirtual

Get the number of runs in this line.

Returns
The number of runs.

Implements ParagraphLayouter::Line.

Definition at line 461 of file gfx_layout.cpp.

◆ GetLeading()

int FallbackParagraphLayout::FallbackLine::GetLeading ( ) const
overridevirtual

Get the height of the line.

Returns
The maximum height of the line.

Implements ParagraphLayouter::Line.

Definition at line 430 of file gfx_layout.cpp.

◆ GetVisualRun()

const ParagraphLayouter::VisualRun & FallbackParagraphLayout::FallbackLine::GetVisualRun ( int  run) const
overridevirtual

Get a specific visual run.

Returns
The visual run.

Implements ParagraphLayouter::Line.

Definition at line 470 of file gfx_layout.cpp.

◆ GetWidth()

int FallbackParagraphLayout::FallbackLine::GetWidth ( ) const
overridevirtual

Get the width of this line.

Returns
The width of the line.

Implements ParagraphLayouter::Line.

Definition at line 444 of file gfx_layout.cpp.


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