compute_cursor_extents
Description:
[ Version ( since = "4.4" ) ]
public void compute_cursor_extents (size_t position, out Rect strong, out Rect @weak)
public void compute_cursor_extents (size_t position, out Rect strong, out Rect @weak)
Determines the positions of the strong and weak cursors for a given character position.
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 are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction are inserted.
The rectangle positions are in widget coordinates.
Parameters:
this |
a text widget |
position |
the character position |
strong |
location to store the strong cursor position |
weak |
location to store the weak cursor position |