Text.computeCursorExtents

void computeCursorExtents(size_t position, out graphene.rect.Rect strong, out graphene.rect.Rect weak)

Determine the positions of the strong and weak cursors if the insertion point in the layout is at 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

positionthe character position
stronglocation to store the strong cursor position
weaklocation to store the weak cursor position