blob: 262bdc3bc59e99cb8018b6c1d06b033fc0c734d2 [file]
#include "rive/layout/n_sliced_node.hpp"
#include "rive/shapes/deformer.hpp"
#include "rive/shapes/shape.hpp"
using namespace rive;
RenderPathDeformer* RenderPathDeformer::from(Component* component)
{
switch (component->coreType())
{
case NSlicedNode::typeKey:
return component->as<NSlicedNode>();
}
return nullptr;
}
PointDeformer* PointDeformer::from(Component* component)
{
switch (component->coreType())
{
case NSlicedNode::typeKey:
return component->as<NSlicedNode>();
}
return nullptr;
}