OpenTTD Source: FallbackParagraphLayout::FallbackVisualRun Class Reference

OpenTTD Source 14.0-beta3

Public Member Functions | Private Attributes
FallbackParagraphLayout::FallbackVisualRun Class Reference

Visual run contains data about the bit of text with the same font. More...

Inheritance diagram for FallbackParagraphLayout::FallbackVisualRun:

## Public Member Functions
| FallbackVisualRun (Font *font, const char32_t *chars, int glyph_count, int char_offset, int x)
| Create the visual run. More...
const Font * | GetFont () const override
int | GetGlyphCount () const override
const std::vector< GlyphID > & | GetGlyphs () const override
const std::vector< Point > & | GetPositions () const override
int | GetLeading () const override
const std::vector< int > & | GetGlyphToCharMap () const override

## Private Attributes
std::vector< GlyphID > | glyphs
| The glyphs we're drawing.
std::vector< Point > | positions
| The positions of the glyphs.
std::vector< int > | glyph_to_char
| The char index of the glyphs.
Font * | font
| The font used to layout these.

## Detailed Description

Visual run contains data about the bit of text with the same font.

Definition at line 41 of file gfx_layout_fallback.cpp.

## Constructor & Destructor Documentation

## ◆ FallbackVisualRun()

FallbackParagraphLayout::FallbackVisualRun::FallbackVisualRun | ( | Font * | font,
|  | const char32_t * | chars,
|  | int | char_count,
|  | int | char_offset,
|  | int | x
| ) |  |

Create the visual run.

Parameters

  font | The font to use for this run.
  chars | The characters to use for this run.
  char_count | The number of characters in this run.
  char_offset | This run's offset from the start of the layout input string.
  x | The initial x position for this run.

Definition at line 112 of file gfx_layout_fallback.cpp.

The documentation for this class was generated from the following file:

- src/gfx_layout_fallback.cpp