pango.layout_iter
Module for [LayoutIter] class
class LayoutIter
Types 1
classLayoutIter : gobject.boxed.Boxed
A pango.layout_iter.LayoutIter can be used to iterate over the visual extents of a pango.layout.Layout.
To obtain a pango.layout_iter.LayoutIter, use pango.layout.Layout.getIter.
The pango.layout_iter.LayoutIter structure is opaque, and has no user-visible fields.
Methods
bool atLastLine() nothrowDetermines whether iter is on the last line of the layout. Returns: true if iter is on the last linepango.layout_iter.LayoutIter copy() nothrowCopies a [pango.layout_iter.LayoutIter]. Returns: the newly allocated [pango.layout_iter.LayoutIter]void getCharExtents(out pango.types.Rectangle logicalRect) nothrowGets the extents of the current character, in layout coordinates.void getClusterExtents(out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect) nothrowGets the extents of the current cluster, in layout coordinates.pango.layout.Layout getLayout() nothrowGets the layout associated with a [pango.layout_iter.LayoutIter]. Returns: the layout associated with itervoid getLayoutExtents(out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect) nothrowObtains the extents of the [pango.layout.Layout] being iterated over.void getLineExtents(out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect) nothrowObtains the extents of the current line.void getLineYrange(out int y0, out int y1) nothrowDivides the vertical space in the [pango.layout.Layout] being iterated over between the lines in the layout, and returns the space belonging to the current line.int getRunBaseline() nothrowGets the Y position of the current run's baseline, in layout coordinates.void getRunExtents(out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect) nothrowGets the extents of the current run in layout coordinates.