Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pangoExtentsToPixels

pangoExtentsToPixels


Description

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

Usage

pangoExtentsToPixels(inclusive, nearest)

Arguments

inclusive

[PangoRectangle] rectangle to round to pixels inclusively, or NULL.

nearest

[PangoRectangle] rectangle to round to nearest pixels, or NULL.

Details

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

The nearest rectangle is converted by rounding the coordinates of the rectangle to the nearest device unit (pixel).

The rule to which argument to use is: if you want the resulting device-space rectangle to completely contain the original rectangle, pass it in as inclusive. If you want two touching-but-not-overlapping rectangles stay touching-but-not-overlapping after rounding to device units, pass them in as nearest. Since 1.16

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.