COMMON: Explain new params for wordWrapText()

This commit is contained in:
Thanasis Antoniou 2019-07-31 16:48:44 +03:00 committed by Eugene Sandulenko
parent 1bca3de594
commit 4630895ccc

View File

@ -173,6 +173,8 @@ public:
* @param maxWidth the maximum width a line may have
* @param lines the string list to which the text lines from str are appended
* @param initWidth the starting width of the first line, for partially filled lines (optional)
* @param evenWidthLinesModeEnabled if enabled, the resulting line segments will be close to the same width (optional)
* @param wrapOnExplicitNewLines if enabled, forces wrapping on new line characters, otherwise treats them as single white space (optional)
* @return the maximal width of any of the lines added to lines
*/
int wordWrapText(const Common::String &str, int maxWidth, Common::Array<Common::String> &lines, int initWidth = 0, bool evenWidthLinesModeEnabled = false, bool wrapOnExplicitNewLines = true) const;