StyleContext.hasClass

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

class StyleContext
bool
hasClass
(
string className
)

Parameters

className string

a class name

Return Value

Type: bool

true if context has class_name defined