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

pangoLayoutGetExtents

pangoLayoutGetExtents


Description

Computes the logical and ink extents of layout. Logical extents are usually what you want for positioning things. Note that both extents may have non-zero x and y. You may want to use those to offset where you render the layout. Not doing that is a very typical bug that shows up as right-to-left layouts not being correctly positioned in a layout with a set width.

Usage

pangoLayoutGetExtents(object)

Arguments

Details

The extents are given in layout coordinates and in Pango units; layout coordinates begin at the top left corner of the layout.

Value

A list containing the following elements:

ink.rect

[PangoRectangle] rectangle used to store the extents of the layout as drawn or NULL to indicate that the result is not needed.

logical.rect

[PangoRectangle] rectangle used to store the logical extents of the layout or NULL to indicate that the result is not needed.

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.