blob: 1910385ab8a4ad6d509cc4c4e0a4108640749443 [file]
#ifndef _RIVE_KEY_FRAME_STRING_HPP_
#define _RIVE_KEY_FRAME_STRING_HPP_
#include "rive/generated/animation/keyframe_string_base.hpp"
namespace rive
{
class KeyFrameString : public KeyFrameStringBase
{
public:
void apply(Core* object,
int propertyKey,
float mix,
const LinearAnimationInstance* context = nullptr) override;
void applyInterpolation(
Core* object,
int propertyKey,
float seconds,
const KeyFrame* nextFrame,
float mix,
const LinearAnimationInstance* context = nullptr) override;
// Returns the data-bound value for this keyframe in the given instance
// context if one exists, otherwise the authored value().
const std::string& effectiveValue(
const LinearAnimationInstance* context) const;
};
} // namespace rive
#endif