blob: 78156a60607829b29bafc9a73672c7b379e2a7c4 [file] [log] [blame]
#ifndef _RIVE_TRIM_PATH_HPP_
#define _RIVE_TRIM_PATH_HPP_
#include "rive/generated/shapes/paint/trim_path_base.hpp"
#include "rive/shapes/paint/stroke_effect.hpp"
#include <stdio.h>
namespace rive
{
class TrimPath : public TrimPathBase, public StrokeEffect
{
private:
RenderPath* m_TrimmedPath;
RenderPath* m_RenderPath = nullptr;
public:
TrimPath();
~TrimPath();
StatusCode onAddedClean(CoreContext* context) override;
RenderPath* effectPath(MetricsPath* source) override;
void invalidateEffect() override;
void startChanged() override;
void endChanged() override;
void offsetChanged() override;
void modeValueChanged() override;
};
} // namespace rive
#endif