getWidth

open fun getWidth(): Int

Gets the width to which the lines of the PangoLayout should wrap.

Return

the width in Pango units, or -1 if no width set.