Method

GtkEntryget_icon_at_pos

since: 2.16

Declaration [src]

gint
gtk_entry_get_icon_at_pos (
  GtkEntry* entry,
  gint x,
  gint y
)

Description [src]

Finds the icon at the given position and return its index. The position’s coordinates are relative to the entry’s top left corner. If x, y doesn’t lie inside an icon, -1 is returned. This function is intended for use in a GtkWidget::query-tooltip signal handler.

Available since: 2.16

Parameters

x

Type: gint

The x coordinate of the position to find.

y

Type: gint

The y coordinate of the position to find.

Return value

Type: gint

The index of the icon at the given position, or -1