Entry.textIndexToLayoutIndex

Converts from a position in the entry contents (returned by gtk_entry_get_text()) to a position in the entry’s #PangoLayout (returned by gtk_entry_get_layout(), with text retrieved via pango_layout_get_text()).

class Entry
int
textIndexToLayoutIndex
()

Parameters

textIndex int

byte index into the entry contents

Return: byte index into the entry layout text

Meta