Gtk.IconView.prototype.get_path_at_pos

function get_path_at_pos(x:Number, y:Number):Gtk.TreePath {
    // Gjs wrapper for gtk_icon_view_get_path_at_pos()
}

Finds the path at the point (x, y), relative to bin_window coordinates. See Gtk.IconView.prototype.get_item_at_pos, if you are also interested in the cell at the specified position. See Gtk.IconView.prototype.convert_widget_to_bin_window_coords for converting widget coordinates to bin_window coordinates.

Since 2.6

x

The x position to be identified

y

The y position to be identified

Returns

The Gtk.TreePath corresponding to the icon or null if no icon exists at that position.