blob: 825757e513caf4d9552d2de2e2c9bfeafcd15c3b [file] [log] [blame] [edit]
#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;
}