Method

GtkEntrytext_index_to_layout_index

Declaration [src]

gint
gtk_entry_text_index_to_layout_index (
  GtkEntry* entry,
  gint text_index
)

Description [src]

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

Parameters

text_index

Type: gint

Byte index into the entry contents.

Return value

Type: gint

Byte index into the entry layout text.