Entry.layoutIndexToTextIndex

int layoutIndexToTextIndex(int layoutIndex)

Converts from a position in the entry’s #PangoLayout (returned by [gtk.entry.Entry.getLayout]) to a position in the entry contents (returned by [gtk.entry.Entry.getText]).

Parameters

layoutIndexbyte index into the entry layout text

Returns

byte index into the entry contents