|
OpenTTD Source 20260304-master-g1baaa74679
|
A single line worth of VisualRuns. More...
Public Member Functions | |
| int | GetLeading () const override |
| Get the font leading, or distance between the baselines of consecutive lines. | |
| int | GetWidth () const override |
| Get the width of this line. | |
| size_t | CountRuns () const override |
| Get the number of runs in this line. | |
| const ParagraphLayouter::VisualRun & | GetVisualRun (size_t run) const override |
| Get a reference to the given run. | |
| int | GetInternalCharLength (char32_t) const override |
| Get the number of elements the given character occupies in the underlying text buffer of the Layouter. | |
| Public Member Functions inherited from ParagraphLayouter::Line | |
| virtual | ~Line ()=default |
| Ensure the destructor of the sub classes are called as well. | |
A single line worth of VisualRuns.
Definition at line 59 of file gfx_layout_fallback.cpp.
|
overridevirtual |
Get the number of runs in this line.
Implements ParagraphLayouter::Line.
Definition at line 162 of file gfx_layout_fallback.cpp.
Referenced by GetWidth().
|
inlineoverridevirtual |
Get the number of elements the given character occupies in the underlying text buffer of the Layouter.
Many use UTF-16 internally, meaning a character larger than MAX_UINT16 occupies two places in its buffer.
| c | The character to get the length for. |
Implements ParagraphLayouter::Line.
Definition at line 66 of file gfx_layout_fallback.cpp.
|
overridevirtual |
Get the font leading, or distance between the baselines of consecutive lines.
Implements ParagraphLayouter::Line.
Definition at line 137 of file gfx_layout_fallback.cpp.
|
overridevirtual |
Get a reference to the given run.
| run | The index into the runs. |
Implements ParagraphLayouter::Line.
Definition at line 167 of file gfx_layout_fallback.cpp.
Referenced by GetWidth().
|
overridevirtual |
Get the width of this line.
Implements ParagraphLayouter::Line.
Definition at line 147 of file gfx_layout_fallback.cpp.
References CountRuns(), and GetVisualRun().