Entry.textIndexToLayoutIndex
int textIndexToLayoutIndex(int textIndex)Converts from a position in the entry contents (returned by [gtk.entry.Entry.getText]) to a position in the entry’s #PangoLayout (returned by [gtk.entry.Entry.getLayout], with text retrieved via [pango.layout.Layout.getText]).
Parameters
textIndex | byte index into the entry contents |
Returns
byte index into the entry layout text