MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setWordWrap

Method setWordWrap

src/Interface/Text.cpp:189–197  ·  view source on GitHub ↗

* Enables/disables text wordwrapping. When enabled, lines of * text are automatically split to ensure they stay within the * drawing area, otherwise they simply go off the edge. * @param wrap Wordwrapping setting. * @param indent Indent wrapped text. */

Source from the content-addressed store, hash-verified

187 * @param indent Indent wrapped text.
188 */
189void Text::setWordWrap(bool wrap, bool indent)
190{
191 if (wrap != _wrap || indent != _indent)
192 {
193 _wrap = wrap;
194 _indent = indent;
195 processText();
196 }
197}
198
199/**
200 * Enables/disables color inverting. Mostly used to make

Callers 15

InfoboxOKStateMethod · 0.45
BriefingStateMethod · 0.45
NoContainmentStateMethod · 0.45
AliensCrashStateMethod · 0.45
CannotReequipStateMethod · 0.45
InfoboxStateMethod · 0.45
WarningMessageMethod · 0.45
ResearchStateMethod · 0.45
buildUiMethod · 0.45
CraftInfoStateMethod · 0.45
ManufactureStateMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestStateMethod · 0.36
ResearchCompleteStateMethod · 0.36