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 PangoLayout). 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 pango_layout_line_get_extents().

class PgLayoutIter
void
getLineExtents

Parameters

inkRect PangoRectangle*

rectangle to fill with ink extents, or NULL. out[allow-none]

logicalRect PangoRectangle*

rectangle to fill with logical extents, or NULL. out[allow-none]

Meta