9 #define SCORE_DECLARE_FOCUSED_PROCESS_CONDITION(Type) \
13 struct EnableWhenFocusedProcessIs<Type> final : public score::FocusActionCondition \
16 static score::ActionConditionKey static_key() \
18 return score::ActionConditionKey{"FocusedProcessIs" #Type}; \
21 EnableWhenFocusedProcessIs() \
22 : score::FocusActionCondition{static_key()} \
27 void action(score::ActionManager& mgr, score::MaybeDocument doc) override \
31 setEnabled(mgr, false); \
35 auto obj = doc->focus.get(); \
38 setEnabled(mgr, false); \
42 setEnabled(mgr, bool(dynamic_cast<const Type*>(obj))); \
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: ProcessActions.hpp:6