Layout.getPixelExtents

void getPixelExtents(out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect)

Computes the logical and ink extents of layout in device units.

This function just calls [pango.layout.Layout.getExtents] followed by two funcextents_to_pixels calls, rounding ink_rect and logical_rect such that the rounded rectangles fully contain the unrounded one (that is, passes them as first argument to funcPango.extents_to_pixels).

Parameters

inkRectrectangle used to store the extents of the layout as drawn
logicalRectrectangle used to store the logical extents of the layout