Return a predicate that tests a window's resource class. When applied to a window, this predicate will return true if the resource class matches STRING in the manner specified by the optional argument TYPE, which may be 'exact, 'regexp, or 'wildcard. The optional CASE-SENSITIVE argument determines whether the matching is case-sensitive or not.