PgLayoutIter.getLineExtents

Obtains the extents of the current line. ink_rect or logical_rect can be NULL if you aren't interested in them. Extents are in layout coordinates (origin is the top-left corner of the entire gtk.Layout). Thus the extents returned by this function will be the same width/height but not at the same x/y as the extents returned from Layout.lineGetExtents.

class PgLayoutIter
void
getLineExtents

Parameters

inkRect PangoRectangle

rectangle to fill with ink extents, or NULL

logicalRect PangoRectangle

rectangle to fill with logical extents, or NULL