OpenTTD Source: IConsoleLine Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
IConsoleLine Struct Reference

Container for a single line of console output. More...

## Public Member Functions
| IConsoleLine (std::string buffer, TextColour colour)
| Initialize the console line.

## Data Fields
std::string | buffer
| The data to store.
TextColour | colour
| The colour of the line.
uint16_t | time
| The amount of time the line is in the backlog.

## Detailed Description

Container for a single line of console output.

Definition at line 42 of file console_gui.cpp.

## Constructor & Destructor Documentation

## ◆ IConsoleLine() [1/2]

IConsoleLine::IConsoleLine | ( |  | ) |
| inline

Definition at line 47 of file console_gui.cpp.

## ◆ IConsoleLine() [2/2]

IConsoleLine::IConsoleLine | ( | std::string | buffer,
|  | TextColour | colour
| ) |  |
| inline

Initialize the console line.

Parameters

  buffer | the data to print.
  colour | the colour of the line.

Definition at line 57 of file console_gui.cpp.

## ◆ ~IConsoleLine()

IConsoleLine::~IConsoleLine | ( |  | ) |
| inline

Definition at line 64 of file console_gui.cpp.

## Field Documentation

## ◆ buffer

std::string IConsoleLine::buffer

The data to store.

Definition at line 43 of file console_gui.cpp.

Referenced by IConsoleWindow::OnPaint().

## ◆ colour

TextColour IConsoleLine::colour

The colour of the line.

Definition at line 44 of file console_gui.cpp.

Referenced by IConsoleWindow::OnPaint().

## ◆ time

uint16_t IConsoleLine::time

The amount of time the line is in the backlog.

Definition at line 45 of file console_gui.cpp.

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

- src/console_gui.cpp