|
OpenTTD Source 20260218-master-g2123fca5ea
|
Visual run contains data about the bit of text with the same font. More...
#include <gfx_layout.h>
Public Member Functions | |
| virtual const Font * | GetFont () const =0 |
| Get the font. | |
| virtual size_t | GetGlyphCount () const =0 |
| Get the number of glyphs. | |
| virtual std::span< const GlyphID > | GetGlyphs () const =0 |
| Get the glyphs to draw. | |
| virtual std::span< const Position > | GetPositions () const =0 |
| Get the positions for each of the glyphs. | |
| virtual int | GetLeading () const =0 |
| Get the font leading, or distance between the baselines of consecutive lines. | |
| virtual std::span< const int > | GetGlyphToCharMap () const =0 |
| The offset for each of the glyphs to the character run that was passed to the Layouter. | |
Visual run contains data about the bit of text with the same font.
Definition at line 132 of file gfx_layout.h.
|
pure virtual |
Get the font.
Implemented in CoreTextParagraphLayout::CoreTextVisualRun, FallbackParagraphLayout::FallbackVisualRun, ICUParagraphLayout::ICUVisualRun, and UniscribeParagraphLayout::UniscribeVisualRun.
Referenced by DrawLayoutLine().
|
pure virtual |
Get the number of glyphs.
Implemented in CoreTextParagraphLayout::CoreTextVisualRun, FallbackParagraphLayout::FallbackVisualRun, ICUParagraphLayout::ICUVisualRun, and UniscribeParagraphLayout::UniscribeVisualRun.
Referenced by DrawLayoutLine(), and Layouter::GetCharAtPosition().
|
pure virtual |
Get the glyphs to draw.
Implemented in CoreTextParagraphLayout::CoreTextVisualRun, FallbackParagraphLayout::FallbackVisualRun, ICUParagraphLayout::ICUVisualRun, and UniscribeParagraphLayout::UniscribeVisualRun.
Referenced by DrawLayoutLine(), and Layouter::GetCharAtPosition().
|
pure virtual |
The offset for each of the glyphs to the character run that was passed to the Layouter.
Implemented in CoreTextParagraphLayout::CoreTextVisualRun, FallbackParagraphLayout::FallbackVisualRun, ICUParagraphLayout::ICUVisualRun, and UniscribeParagraphLayout::UniscribeVisualRun.
Referenced by Layouter::GetCharAtPosition(), and Layouter::GetCharPosition().
|
pure virtual |
Get the font leading, or distance between the baselines of consecutive lines.
Implemented in CoreTextParagraphLayout::CoreTextVisualRun, FallbackParagraphLayout::FallbackVisualRun, ICUParagraphLayout::ICUVisualRun, and UniscribeParagraphLayout::UniscribeVisualRun.
|
pure virtual |
Get the positions for each of the glyphs.
Implemented in CoreTextParagraphLayout::CoreTextVisualRun, FallbackParagraphLayout::FallbackVisualRun, ICUParagraphLayout::ICUVisualRun, and UniscribeParagraphLayout::UniscribeVisualRun.
Referenced by DrawLayoutLine(), Layouter::GetCharAtPosition(), and Layouter::GetCharPosition().