Gtk.TreeView.prototype.get_cursor

function get_cursor():void {
    // Gjs wrapper for gtk_tree_view_get_cursor()
}

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

The returned Gtk.TreePath must be freed with Gtk.TreePath.prototype.free when you are done with it.