Gtk.IconView.prototype.get_item_row

function get_item_row(path:Gtk.TreePath):Number {
    // Gjs wrapper for gtk_icon_view_get_item_row()
}

Gets the row in which the item path is currently displayed. Row numbers start at 0.

Since 2.22

path

the Gtk.TreePath of the item

Returns

The row in which the item is displayed