Gtk.Widget.prototype.get_path

function get_path():Gtk.WidgetPath {
    // Gjs wrapper for gtk_widget_get_path()
}

Returns the Gtk.WidgetPath representing widget, if the widget is not connected to a toplevel widget, a partial path will be created.

Returns

The Gtk.WidgetPath representing widget