Text drawing parameters, which can change while drawing a line, but are kept between multiple parts of the same text, e.g. More...
Public Member Functions | |
DrawStringParams (TextColour colour, FontSize fontsize) | |
void | SetColour (TextColour c) |
Switch to new colour c. | |
void | SetPreviousColour () |
Switch to previous colour. | |
void | SetFontSize (FontSize f) |
Switch to using a new font f. | |
Data Fields | |
FontSize | fontsize |
TextColour | cur_colour |
TextColour | prev_colour |
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 62 of file gfx.cpp.
void DrawStringParams::SetColour | ( | TextColour | c | ) | [inline] |
Switch to new colour c.
c | New colour to use. |
Definition at line 72 of file gfx.cpp.
Referenced by DrawStringMultiLine(), and ReallyDoDrawString().
void DrawStringParams::SetFontSize | ( | FontSize | f | ) | [inline] |
Switch to using a new font f.
f | New font to use. |
Definition at line 89 of file gfx.cpp.
Referenced by DrawStringMultiLine(), and ReallyDoDrawString().
void DrawStringParams::SetPreviousColour | ( | ) | [inline] |
Switch to previous colour.
Definition at line 80 of file gfx.cpp.
References Swap().
Referenced by DrawStringMultiLine(), and ReallyDoDrawString().