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

pangoLayoutIndexToLineX

pangoLayoutIndexToLineX


Description

Converts from byte index. within the layout to line and X position. (X position is measured from the left edge of the line)

Usage

pangoLayoutIndexToLineX(object, index., trailing)

Arguments

object

[PangoLayout] a PangoLayout

index.

[integer] the byte index of a grapheme within the layout.

trailing

[logical] an integer indicating the edge of the grapheme to retrieve the position of. If 0, the trailing edge of the grapheme, if > 0, the leading of the grapheme.

Value

A list containing the following elements:

line

[integer] location to store resulting line index. (which will between 0 and pango_layout_get_line_count(layout) - 1)

x.pos

[integer] location to store resulting position within line (PANGO_SCALE units per device unit)

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.