plushie/prop/shadow
Shadow type for widget drop shadows.
Builder pattern: start with new() and pipe through color,
offset, offset_x, offset_y, or blur_radius to configure.
Types
A drop shadow with color, offset, and blur.
pub type Shadow {
Shadow(
color: color.Color,
offset_x: Float,
offset_y: Float,
blur_radius: Float,
)
}
Constructors
-
Shadow( color: color.Color, offset_x: Float, offset_y: Float, blur_radius: Float, )
Values
pub fn to_prop_value(s: Shadow) -> node.PropValue
Encode a Shadow to its wire-format PropValue.
Offset is encoded as a two-element array [x, y] to match
the Elixir SDK’s wire format.