Package: pango

Function pango-layout-line-index-to-x

Lambda List

pango-layout-line-index-to-x (line index trailing)

Arguments

iter -- a pango-layout-iter instance
index -- an integer with the byte offset of a grapheme within the layout
trailing -- a boolean indicating the edge of the grapheme to retrieve the position of, if true, the trailing edge of the grapheme, if false, the leading of the grapheme

Return Value

An integer with the x offset (in Pango unit).

Details

Converts an index within a line to a x position.
 

See also

2021-1-16