[ Version ( since = "1.50" ) ]
public void get_caret_pos (int index_, out Rectangle strong_pos, out Rectangle weak_pos)
Given an index within a layout, determines the positions that of the strong and weak cursors if the insertion point is at that index.
This is a variant of [[email protected]_cursor_pos] that applies font metric information about caret slope and offset to the positions it returns.
<picture> <source srcset="caret-metrics-dark.png" media="(prefers-color-scheme: dark)"> <img alt="Caret metrics" src="caret-metrics-light.png"> </picture>
this |
a `PangoLayout` |
index_ |
the byte index of the cursor |
strong_pos |
location to store the strong cursor position |
weak_pos |
location to store the weak cursor position |