OpenTTD Source 20250602-master-g6d0dd90e20
TextfileWindow::Line Struct Reference

Public Member Functions

 Line (std::string_view text)
 

Data Fields

int num_lines = 1
 Number of visual lines for this line.
 
int wrapped_width = 0
 
int max_width = -1
 
TextColour colour = TC_WHITE
 Colour to render text line in.
 
std::string text {}
 Contents of the line.
 

Detailed Description

Definition at line 52 of file textfile_gui.h.

Constructor & Destructor Documentation

◆ Line() [1/2]

TextfileWindow::Line::Line ( std::string_view  text)
inline

Definition at line 59 of file textfile_gui.h.

◆ Line() [2/2]

TextfileWindow::Line::Line ( )
inline

Definition at line 60 of file textfile_gui.h.

Field Documentation

◆ colour

TextColour TextfileWindow::Line::colour = TC_WHITE

Colour to render text line in.

Definition at line 56 of file textfile_gui.h.

◆ max_width

int TextfileWindow::Line::max_width = -1

Definition at line 55 of file textfile_gui.h.

◆ num_lines

int TextfileWindow::Line::num_lines = 1

Number of visual lines for this line.

Definition at line 53 of file textfile_gui.h.

Referenced by TextfileWindow::GetHyperlink().

◆ text

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

◆ wrapped_width

int TextfileWindow::Line::wrapped_width = 0

Definition at line 54 of file textfile_gui.h.


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