Gtk.IconView.prototype.get_cursor

function get_cursor():Boolean {
    // Gjs wrapper for gtk_icon_view_get_cursor()
}

Fills in path and cell with the current cursor path and cell. If the cursor isn't currently set, then *path will be null. If no cell currently has focus, then *cell will be null.

The returned Gtk.TreePath must be freed with Gtk.free.

Since 2.8

Returns

true if the cursor is set.