mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
foreground drawables were not returning paths to paint from Diffs= b2886f2449 Nnnn feather fixes 2 (#9003) Co-authored-by: hernan <hernan@rive.app>
32 lines
971 B
C++
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 |