pangoExtentsToPixels {RGtk2}R Documentation

pangoExtentsToPixels

Description

Converts extents from Pango units to device units, dividing by the PANGO_SCALE factor and performing rounding.

Usage

pangoExtentsToPixels(ink.rect, logical.rect)

Arguments

ink.rect [PangoRectangle] ink rectangle to convert, or NULL.
logical.rect [PangoRectangle] logical rectangle to convert, or NULL.

Details

The ink rectangle is converted by flooring the x/y coordinates and extending width/height, such that the final rectangle completely includes the original rectangle.

The logical rectangle is converted by rounding the coordinates of the rectangle to the nearest device unit.

Note that in certain situations you may want pass a logical extents rectangle to this function as ink.rect. The rule is: if you want the resulting device-space rectangle to completely contain the original rectangle, pass it in as ink.rect.

Since 1.16

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]