Files
rive-cpp/include/rive/foreground_layout_drawable.hpp
bodymovin eb80612795 Nnnn feather fixes 2
foreground drawables were not returning paths to paint from

Diffs=
b2886f2449 Nnnn feather fixes 2 (#9003)

Co-authored-by: hernan <hernan@rive.app>
2025-02-08 06:10:57 +00:00

32 lines
971 B
C++

#ifndef _RIVE_FOREGROUND_LAYOUT_DRAWABLE_HPP_
#define _RIVE_FOREGROUND_LAYOUT_DRAWABLE_HPP_
#include "rive/generated/foreground_layout_drawable_base.hpp"
#include "rive/shapes/shape_paint_container.hpp"
#include <stdio.h>
namespace rive
{
class ForegroundLayoutDrawable : public ForegroundLayoutDrawableBase,
public ShapePaintContainer
{
public:
void draw(Renderer* renderer) override;
void update(ComponentDirt value) override;
void buildDependencies() override;
Core* hitTest(HitInfo*, const Mat2D&) override;
Artboard* getArtboard() override { return artboard(); }
// Implemented for ShapePaintContainer.
const Mat2D& shapeWorldTransform() const override
{
return worldTransform();
}
Component* pathBuilder() override;
ShapePaintPath* worldPath() override;
ShapePaintPath* localPath() override;
ShapePaintPath* localClockwisePath() override;
};
} // namespace rive
#endif