get_icon_at_pos


Description:

[ Version ( since = "2.16" ) ]
public int get_icon_at_pos (int x, int y)

Finds the icon at the given position and return its index.

The position’s coordinates are relative to the this’s top left corner. If x, y doesn’t lie inside an icon, -1 is returned. This function is intended for use in a query_tooltip signal handler.

Parameters:

this

a Entry

x

the x coordinate of the position to find

y

the y coordinate of the position to find

Returns:

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




2022 vala-language.org