OpenTTD Source: TextfileWindow::Line Struct Reference

OpenTTD Source 15.0-beta1

Public Member Functions | Data Fields
TextfileWindow::Line Struct Reference

## Public Member Functions
| Line (int top, std::string_view text)

## Data Fields
int | top = 0
| Top scroll position in visual lines.
int | bottom = 0
| Bottom scroll position in visual lines.
std::string | text {}
| Contents of the line.
TextColour | colour = TC_WHITE
| Colour to render text line in.

## Detailed Description

Definition at line 46 of file textfile_gui.h.

## Constructor & Destructor Documentation

## ◆ Line() [1/2]

TextfileWindow::Line::Line | ( | int | top,
|  | std::string_view | text
| ) |  |
| inline

Definition at line 52 of file textfile_gui.h.

## ◆ Line() [2/2]

TextfileWindow::Line::Line | ( |  | ) |
| inline

Definition at line 53 of file textfile_gui.h.

## Field Documentation

## ◆ bottom

int TextfileWindow::Line::bottom = 0

Bottom scroll position in visual lines.

Definition at line 48 of file textfile_gui.h.

Referenced by TextfileWindow::CheckHyperlinkClick().

## ◆ colour

TextColour TextfileWindow::Line::colour = TC_WHITE

Colour to render text line in.

Definition at line 50 of file textfile_gui.h.

## ◆ text

std::string TextfileWindow::Line::text {}

Contents of the line.

Definition at line 49 of file textfile_gui.h.

Referenced by GameManualTextfileWindow::AfterLoadChangelog(), TextfileWindow::AfterLoadMarkdown(), and TextfileWindow::FindHyperlinksInMarkdown().

## ◆ top

int TextfileWindow::Line::top = 0

Top scroll position in visual lines.

Definition at line 47 of file textfile_gui.h.

Referenced by TextfileWindow::CheckHyperlinkClick().

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

- src/textfile_gui.h