get_pixel_extents


Description:

public void get_pixel_extents (out Rectangle ink_rect, out Rectangle logical_rect)

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

This function just calls [[email protected]_extents] followed by two [func@extents_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 [func@extents_to_pixels]).

Parameters:

this

a `PangoLayoutLine`

ink_rect

rectangle used to store the extents of the glyph string as drawn

logical_rect

rectangle used to store the logical extents of the glyph string




2022 vala-language.org