setWidth

open fun setWidth(width: <Error class: unknown class>)

Sets the width to which the lines of the PangoLayout should wrap or ellipsized.

The default value is -1: no width set.

Parameters

width

the desired width in Pango units, or -1 to indicate that no wrapping or ellipsization should be performed.