PgLayout.indexToPos

Converts from an index within a gtk.Layout to the onscreen position corresponding to the grapheme at that index, which is represented as rectangle. Note that <literal>pos->x</literal> is always the leading edge of the grapheme and <literal>pos->x + pos->width</literal> the trailing edge of the grapheme. If the directionality of the grapheme is right-to-left, then <literal>pos->width</literal> will be negative.

class PgLayout
void
indexToPos

Parameters

index int

byte index within layout

pos PangoRectangle

rectangle in which to store the position of the grapheme