18#include <AUI/Util/kAUI.h>
19#include <AUI/View/AView.h>
20#include <AUI/ASS/AAssHelper.h>
30 struct ClassOf: IAssSubSelector {
32 AStringVector mClasses;
35 ClassOf(
const AStringVector& classes) : mClasses(classes) {}
36 ClassOf(
const AString& clazz) : mClasses({clazz}) {}
38 bool isPossiblyApplicable(AView* view)
override {
39 for (
auto& v : mClasses) {
40 if (view->getAssNames().
contains(v)) {
47 bool isStateApplicable(AView* view)
override {
48 return isPossiblyApplicable(view);
51 const AStringVector& getClasses()
const {
57 struct class_of: detail::ClassOf {
60 class_of(
const AString& clazz) : ClassOf(clazz) {}
An AVector with string-related functions.
Definition AStringVector.h:22
Represents a Unicode character string.
Definition AString.h:37
bool contains(const StoredType &value) const noexcept
Definition AVector.h:148
class_of c
Selects views that are of the specified classes.
Definition class_of.h:84
Definition activated.h:21