StyleContext.hasClass

bool hasClass(string className)

Returns true if context currently has defined the given class name.

Parameters

classNamea class name

Returns

true if context has class_name defined

Deprecated

Use [gtk.widget.Widget.hasCssClass] instead