42 _unique<IAssSubSelector> mWrapped;
46 Selected(T value): mWrapped(
new T(std::move(value))) {}
49 bool isPossiblyApplicable(
AView* view)
override {
50 return mWrapped->isPossiblyApplicable(view) &&
dynamic_cast<ISelectable*
>(view);
53 bool isStateApplicable(
AView* view)
override {
54 if (!mWrapped->isStateApplicable(view))
58 return c->selectableIsSelectedImpl();
64 IAssSubSelector::setupConnections(view, helper);
65 mWrapped->setupConnections(view, helper);
67 view->customCssPropertyChanged.clearAllConnectionsWith(helper.get());
static void connect(const Signal &signal, Object *object, Function &&function)
Connects signal to the slot of the specified object.
Definition AObject.h:65