blob: 4d01176a5f26d2e467822cbcf49d654be17776b4 [file] [log] [blame]
#ifndef _RIVE_CLIPPING_SHAPE_HPP_
#define _RIVE_CLIPPING_SHAPE_HPP_
#include "rive/generated/shapes/clipping_shape_base.hpp"
#include <stdio.h>
#include <vector>
namespace rive {
class Shape;
class Node;
class RenderPath;
class ClippingShape : public ClippingShapeBase {
private:
std::vector<Shape*> m_Shapes;
Node* m_Source = nullptr;
RenderPath* m_RenderPath = nullptr;
public:
~ClippingShape();
Node* source() const { return m_Source; }
const std::vector<Shape*>& shapes() const { return m_Shapes; }
StatusCode onAddedClean(CoreContext* context) override;
StatusCode onAddedDirty(CoreContext* context) override;
void buildDependencies() override;
void update(ComponentDirt value) override;
RenderPath* renderPath() const { return m_RenderPath; }
};
} // namespace rive
#endif