std::function< Color(Color)> ColorFilterProc
A base class for SolidRRectBlurContents and SolidRSuperellipseBlurContents.
void SetShape(Rect rect, Scalar corner_radius)
std::optional< Rect > GetCoverage(const Entity &entity) const override
Get the area of the render pass that will be affected when this contents is rendered.
~SolidRRectLikeBlurContents() override
virtual bool SetPassInfo(RenderPass &pass, const ContentContext &renderer, PassContext &pass_context) const =0
bool Render(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
void SetSigma(Sigma sigma)
bool ApplyColorFilter(const ColorFilterProc &color_filter_proc) override
If possible, applies a color filter to this contents inputs on the CPU.
static Vector4 Concat(Vector2 &a, Vector2 &b)
Scalar GetCornerRadius() const
void SetColor(Color color)