|
OpenTTD Source 20260218-master-g2123fca5ea
|
Interface to glue fallback and normal layouter into one. More...
#include <gfx_layout.h>
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 Line > | NextLine (int max_width)=0 |
| Construct a new line with a maximum width. | |
Interface to glue fallback and normal layouter into one.
Definition at line 111 of file gfx_layout.h.
|
pure virtual |
Construct a new line with a maximum width.
| max_width | The maximum width of the string. |
nullptr when at the end of the paragraph. Implemented in CoreTextParagraphLayout, FallbackParagraphLayout, ICUParagraphLayout, and UniscribeParagraphLayout.
|
pure virtual |
Reset the position to the start of the paragraph.
Implemented in CoreTextParagraphLayout, FallbackParagraphLayout, ICUParagraphLayout, and UniscribeParagraphLayout.