blob: 4df902234136f66d7b81ccbc42c37e23394dc52d [file]
#ifndef _RIVE_TRANSITION_FOCUS_CONDITION_HPP_
#define _RIVE_TRANSITION_FOCUS_CONDITION_HPP_
#include "rive/generated/animation/transition_focus_condition_base.hpp"
#include <stdio.h>
namespace rive
{
// Condition that evaluates whether a specific focusable component currently
// holds focus. The target component is stored on the right comparator (a
// TransitionPropertyComponentComparator pointing at the focusable node); the
// left side is the implicit "current focus". Only ==/!= are meaningful.
class TransitionFocusCondition : public TransitionFocusConditionBase
{
public:
bool evaluate(
const StateMachineInstance* stateMachineInstance,
StateMachineLayerInstance* layerInstance) const override;
};
} // namespace rive
#endif