|
OpenTTD Source 20261123-master-g1c55c72fd0
|
Visual run contains data about the bit of text with the same font. More...
Public Member Functions | |
| UniscribeVisualRun (const UniscribeRun &range, int x) | |
| UniscribeVisualRun (UniscribeVisualRun &&other) noexcept | |
| std::span< const GlyphID > | GetGlyphs () const override |
| Get the glyphs to draw. | |
| std::span< const Position > | GetPositions () const override |
| Get the positions for each of the glyphs. | |
| std::span< const int > | GetGlyphToCharMap () const override |
| The offset for each of the glyphs to the character run that was passed to the Layouter. | |
| const Font & | GetFont () const override |
| Get the font. | |
| int | GetLeading () const override |
| Get the font leading, or distance between the baselines of consecutive lines. | |
| size_t | GetGlyphCount () const override |
| Get the number of glyphs. | |
| int | GetAdvance () const |
| Public Member Functions inherited from ParagraphLayouter::VisualRun | |
| virtual | ~VisualRun ()=default |
| Ensure the destructor of the sub classes are called as well. | |
Private Attributes | |
| std::vector< GlyphID > | glyphs |
| std::vector< Position > | positions |
| std::vector< WORD > | char_to_glyph |
| int | start_pos |
| int | total_advance |
| Font | font |
| std::vector< int > | glyph_to_char |
Visual run contains data about the bit of text with the same font.
Definition at line 80 of file string_uniscribe.cpp.
| UniscribeParagraphLayout::UniscribeVisualRun::UniscribeVisualRun | ( | const UniscribeRun & | range, |
| int | x ) |
Definition at line 486 of file string_uniscribe.cpp.
|
noexcept |
Definition at line 499 of file string_uniscribe.cpp.
|
inline |
Definition at line 103 of file string_uniscribe.cpp.
|
inlineoverridevirtual |
Get the font.
Implements ParagraphLayouter::VisualRun.
Definition at line 100 of file string_uniscribe.cpp.
|
inlineoverridevirtual |
Get the number of glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 102 of file string_uniscribe.cpp.
Referenced by GetGlyphToCharMap().
|
inlineoverridevirtual |
Get the glyphs to draw.
Implements ParagraphLayouter::VisualRun.
Definition at line 96 of file string_uniscribe.cpp.
|
overridevirtual |
The offset for each of the glyphs to the character run that was passed to the Layouter.
Implements ParagraphLayouter::VisualRun.
Definition at line 506 of file string_uniscribe.cpp.
References GetGlyphCount().
|
inlineoverridevirtual |
Get the font leading, or distance between the baselines of consecutive lines.
Implements ParagraphLayouter::VisualRun.
Definition at line 101 of file string_uniscribe.cpp.
References Font::GetFontCache(), and FontCache::GetHeight().
|
inlineoverridevirtual |
Get the positions for each of the glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 97 of file string_uniscribe.cpp.
|
private |
Definition at line 84 of file string_uniscribe.cpp.
|
private |
Definition at line 88 of file string_uniscribe.cpp.
|
mutableprivate |
Definition at line 90 of file string_uniscribe.cpp.
|
private |
Definition at line 82 of file string_uniscribe.cpp.
|
private |
Definition at line 83 of file string_uniscribe.cpp.
|
private |
Definition at line 86 of file string_uniscribe.cpp.
|
private |
Definition at line 87 of file string_uniscribe.cpp.