|
OpenTTD
|
Text drawing parameters, which can change while drawing a line, but are kept between multiple parts of the same text, e.g. More...
#include <gfx_layout.h>
Public Member Functions | |
| FontState (TextColour colour, FontSize fontsize) | |
| void | SetColour (TextColour c) |
| Switch to new colour c. More... | |
| void | SetPreviousColour () |
| Switch to previous colour. More... | |
| void | SetFontSize (FontSize f) |
| Switch to using a new font f. More... | |
Data Fields | |
| FontSize | fontsize |
| Current font size. | |
| TextColour | cur_colour |
| Current text colour. | |
| TextColour | prev_colour |
| Text colour from before the last colour switch. | |
Text drawing parameters, which can change while drawing a line, but are kept between multiple parts of the same text, e.g.
on line breaks.
Definition at line 33 of file gfx_layout.h.
|
inline |
|
inline |
Switch to using a new font f.
| f | New font to use. |
Definition at line 62 of file gfx_layout.h.
|
inline |
1.8.13