|
OpenTTD Source 20260218-master-g2123fca5ea
|
A single line worth of VisualRuns. More...
#include <gfx_layout.h>
Public Member Functions | |
| virtual int | GetLeading () const =0 |
| Get the font leading, or distance between the baselines of consecutive lines. | |
| virtual int | GetWidth () const =0 |
| Get the width of this line. | |
| virtual size_t | CountRuns () const =0 |
| Get the number of runs in this line. | |
| virtual const VisualRun & | GetVisualRun (size_t run) const =0 |
| Get a reference to the given run. | |
| virtual int | GetInternalCharLength (char32_t c) const =0 |
| Get the number of elements the given character occupies in the underlying text buffer of the Layouter. | |
A single line worth of VisualRuns.
Definition at line 174 of file gfx_layout.h.
|
pure virtual |
Get the number of runs in this line.
Implemented in CoreTextParagraphLayout::CoreTextLine, FallbackParagraphLayout::FallbackLine, ICUParagraphLayout::ICULine, and UniscribeParagraphLayout::UniscribeLine.
Referenced by DrawLayoutLine().
|
pure virtual |
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. |
Implemented in CoreTextParagraphLayout::CoreTextLine, FallbackParagraphLayout::FallbackLine, ICUParagraphLayout::ICULine, and UniscribeParagraphLayout::UniscribeLine.
|
pure virtual |
Get the font leading, or distance between the baselines of consecutive lines.
Implemented in CoreTextParagraphLayout::CoreTextLine, FallbackParagraphLayout::FallbackLine, ICUParagraphLayout::ICULine, and UniscribeParagraphLayout::UniscribeLine.
Referenced by DrawLayoutLine().
|
pure virtual |
Get a reference to the given run.
| run | The index into the runs. |
Implemented in CoreTextParagraphLayout::CoreTextLine, FallbackParagraphLayout::FallbackLine, ICUParagraphLayout::ICULine, and UniscribeParagraphLayout::UniscribeLine.
Referenced by DrawLayoutLine().
|
pure virtual |
Get the width of this line.
Implemented in CoreTextParagraphLayout::CoreTextLine, FallbackParagraphLayout::FallbackLine, ICUParagraphLayout::ICULine, and UniscribeParagraphLayout::UniscribeLine.
Referenced by DrawLayoutLine().