Method

GtkEntrylayout_index_to_text_index

Declaration [src]

gint
gtk_entry_layout_index_to_text_index (
  GtkEntry* entry,
  gint layout_index
)

Description [src]

Converts from a position in the entry‚Äôs PangoLayout (returned by gtk_entry_get_layout()) to a position in the entry contents (returned by gtk_entry_get_text()).

Parameters

layout_index

Type: gint

Byte index into the entry layout text.

Return value

Type: gint

Byte index into the entry contents.