Entry.layoutIndexToTextIndex

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).

class Entry
int
layoutIndexToTextIndex

Parameters

layoutIndex int

byte index into the entry layout text

Return Value

Type: int

byte index into the entry contents