StyleContext.hasClass
bool hasClass(string className)Returns true if context currently has defined the given class name.
Parameters
className | a class name |
Returns
true if context has class_name defined
Deprecated
Use [gtk.widget.Widget.hasCssClass] instead