InnerShadowPainter

Class

Common
class InnerShadowPainter
internal constructor(
    private val shape: Shape,
    private val shadow: Shadow,
    private val renderCreator: InnerShadowRendererProvider = InnerShadowRendererProvider.Default,
) : Painter()

Painter implementation that draws an inner shadow with the geometry defined by the specified shape and Shadow.

Secondary Constructors

constructor(
    shape: Shape,
    shadow: Shadow,
) : this(shape, shadow, InnerShadowRendererProvider.Default)

Create an InnerShadowPainter with the specified shape and shadow. It is preferred to obtain an instance of the InnerShadowPainter through a ShadowContext instance instead, as the underlying shadow dependencies can be shared across multiple InnerShadowPainter instances. However, creating an instance through this constructor will not share resources with any other InnerShadowPainter.

Parameters

shapeShape of the shadow
shadowParameters used to render the shadow