Layout.getLines

Returns the lines of the layout as a list.

Use the faster pango.layout.Layout.getLinesReadonly if you do not plan to modify the contents of the lines (glyphs, glyph widths, etc.).

class Layout
getLines
()

Return Value

Type: pango.layout_line.LayoutLine[]

a glib.slist.SList containing the lines in the layout. This points to internal data of the pango.layout.Layout and must be used with care. It will become invalid on any change to the layout's text or properties.