Entry.getIconAtPos

int getIconAtPos(int x, int y) nothrow

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 gtk.widget.Widget.queryTooltip signal handler.

Parameters

xthe x coordinate of the position to find, relative to entry
ythe y coordinate of the position to find, relative to entry

Returns

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