Group of parameters that represent how a drop shadow should be rendered.

Summary

Public constructors

DropShadow(
    radius: Dp,
    brush: Brush,
    spread: Dp,
    alpha: Float,
    blendMode: BlendMode
)

Create a DropShadow parameter that is to be rendered with the corresponding Brush parameter.

Cmn
DropShadow(
    radius: Dp,
    color: Color,
    spread: Dp,
    alpha: Float,
    blendMode: BlendMode
)

Create a DropShadow parameter that is to be rendered with the corresponding Brush parameter.

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Float

Opacity of the shadow

Cmn
BlendMode

Blending algorithm used by the shadow

Cmn
Brush?

Optional brush to render the shadow with.

Cmn
Color

Color of the shadow.

Cmn
Dp

The blur radius of the shadow

Cmn
Dp

Spread parameter that adds to the size of the shadow

Cmn

Public constructors

DropShadow

DropShadow(
    radius: Dp,
    brush: Brush,
    spread: Dp = 0.dp,
    alpha: Float = 1.0f,
    blendMode: BlendMode = DefaultBlendMode
)

Create a DropShadow parameter that is to be rendered with the corresponding Brush parameter. This brush will be masked against the geometry of the shadow.

DropShadow

DropShadow(
    radius: Dp,
    color: Color = Color.Black,
    spread: Dp = 0.dp,
    alpha: Float = 1.0f,
    blendMode: BlendMode = DefaultBlendMode
)

Create a DropShadow parameter that is to be rendered with the corresponding Brush parameter. The shadow will be tinted with the provided color.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

alpha

val alphaFloat

Opacity of the shadow

blendMode

val blendModeBlendMode

Blending algorithm used by the shadow

brush

val brushBrush?

Optional brush to render the shadow with.

color

val colorColor

Color of the shadow. If Color.Unspecified is provided, Color.Black will be used as a default This color is only used if brush is null

radius

val radiusDp

The blur radius of the shadow

spread

val spreadDp

Spread parameter that adds to the size of the shadow