Gtk.WidgetPath.prototype.iter_has_class

function iter_has_class(pos:Number, name:String):Boolean {
    // Gjs wrapper for gtk_widget_path_iter_has_class()
}

Returns true if the widget at position pos has the class name defined, false otherwise.

Since 3.0

pos

position to query, -1 for the path head

name

class name

Returns

true if the class name is defined for the widget at pos