CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
Loading...
Searching...
No Matches
Public Attributes | List of all members
text_layout Struct Reference

#include <th_gfx_font.h>

Public Attributes

int row_count
 Number of rows the rendered text spans.
 
int start_x
 Left X-coordinate for the start of the text.
 
int end_x
 Right X-coordinate for the right part of the last letter rendered.
 
int start_y
 Top Y-coordinate for the start of the text.
 
int end_y
 Bottom Y-coordinate for the end of the text.
 
int width
 Width of the widest line in the text.
 

Detailed Description

Structure for the bounds of a text string that is rendered to the screen.

Member Data Documentation

◆ end_x

int text_layout::end_x

Right X-coordinate for the right part of the last letter rendered.

◆ end_y

int text_layout::end_y

Bottom Y-coordinate for the end of the text.

◆ row_count

int text_layout::row_count

Number of rows the rendered text spans.

◆ start_x

int text_layout::start_x

Left X-coordinate for the start of the text.

◆ start_y

int text_layout::start_y

Top Y-coordinate for the start of the text.

◆ width

int text_layout::width

Width of the widest line in the text.


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