Gtk.WidgetPath.prototype.is_type

function is_type(type:GType):Boolean {
    // Gjs wrapper for gtk_widget_path_is_type()
}

Returns true if the widget type represented by this path is type, or a subtype of it.

Since 3.0

type

widget type to match

Returns

true if the widget represented by path is of type type