OpenTTD Source: ParagraphLayouter::Position Class Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
ParagraphLayouter::Position Class Reference

Position of a glyph within a VisualRun. More...

`#include <gfx_layout.h>`

## Public Member Functions
constexpr | Position (int16_t left, int16_t right, int16_t top)
constexpr | Position (const Point &pt)
| Conversion from a single point to a Position.

## Data Fields
int16_t | left
| Left-most position of glyph.
int16_t | right
| Right-most position of glyph.
int16_t | top
| Top-most position of glyph.

## Detailed Description

Position of a glyph within a VisualRun.

Definition at line 116 of file gfx_layout.h.

## Constructor & Destructor Documentation

## ◆ Position() [1/2]

constexpr ParagraphLayouter::Position::Position | ( | int16_t | left,
|  | int16_t | right,
|  | int16_t | top
| ) |  |
| inlineconstexpr

Definition at line 122 of file gfx_layout.h.

## ◆ Position() [2/2]

constexpr ParagraphLayouter::Position::Position | ( | const Point & | pt | ) |
| inlineconstexpr

Conversion from a single point to a Position.

Definition at line 125 of file gfx_layout.h.

## Field Documentation

## ◆ left

int16_t ParagraphLayouter::Position::left

Left-most position of glyph.

Definition at line 118 of file gfx_layout.h.

## ◆ right

int16_t ParagraphLayouter::Position::right

Right-most position of glyph.

Definition at line 119 of file gfx_layout.h.

## ◆ top

int16_t ParagraphLayouter::Position::top

Top-most position of glyph.

Definition at line 120 of file gfx_layout.h.

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

- src/gfx_layout.h