OpenTTD Source 20260218-master-g2123fca5ea
ParagraphLayouter Class Referenceabstract

Interface to glue fallback and normal layouter into one. More...

#include <gfx_layout.h>

Inheritance diagram for ParagraphLayouter:
CoreTextParagraphLayout FallbackParagraphLayout ICUParagraphLayout UniscribeParagraphLayout

Data Structures

class  Position
 Position of a glyph within a VisualRun. More...
class  VisualRun
 Visual run contains data about the bit of text with the same font. More...
class  Line
 A single line worth of VisualRuns. More...

Public Member Functions

virtual void Reflow ()=0
 Reset the position to the start of the paragraph.
virtual std::unique_ptr< const LineNextLine (int max_width)=0
 Construct a new line with a maximum width.

Detailed Description

Interface to glue fallback and normal layouter into one.

Definition at line 111 of file gfx_layout.h.

Member Function Documentation

◆ NextLine()

virtual std::unique_ptr< const Line > ParagraphLayouter::NextLine ( int max_width)
pure virtual

Construct a new line with a maximum width.

Parameters
max_widthThe maximum width of the string.
Returns
A Line, or nullptr when at the end of the paragraph.

Implemented in CoreTextParagraphLayout, FallbackParagraphLayout, ICUParagraphLayout, and UniscribeParagraphLayout.

◆ Reflow()

virtual void ParagraphLayouter::Reflow ( )
pure virtual

Reset the position to the start of the paragraph.

Implemented in CoreTextParagraphLayout, FallbackParagraphLayout, ICUParagraphLayout, and UniscribeParagraphLayout.


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