Layout.getWidth

int getWidth()

Gets the width to which the lines of the pango.layout.Layout should wrap.

Returns

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