Package: pango
Function pango:layout-xy-to-index
Lambda Listpango:layout-xy-to-index (layout x y) SyntaxArgumentsDetails Converts from x and y position within a Pango layout to the
byte index of the character at that logical position. If the y position is not inside the Pango layout, the closest position
is chosen (the position will be clamped inside the Pango layout). If the x position is not within the Pango layout, then the start or the end of the line is chosen as described for the pango:layout-line-x-to-index function. If either the x or y positions were not inside the Pango layout, then the function returns nil. | See also |
2025-2-15