Package: pango

Function pango:layout-cursor-pos

Lambda List

pango:layout-cursor-pos (layout index)

Syntax

(pango:layout-cursor-pos layout index) => strong, weak

Arguments

layout -- a pango:layout object
index -- an integer for the byte index of the cursor
strong -- a list with the x, y, width, height values of the rectangle for the strong cursor position
weak -- a list with the x, y, width, height values of the rectangle for the weak cursor position

Details

Given an index within a Pango layout, determines the positions that of the strong and weak cursors if the insertion point is at that index. The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the Pango layout are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the layout are inserted.
 

See also

2025-2-15