FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImmutableDropShadowDirectionEffect

    struct · ferroui-base · v0.5.0

    struct ImmutableDropShadowDirectionEffect
    

    An immutable drop shadow effect described by a direction and a depth.

    View source

    Members

    new

    fn new(direction: f64, shadow_depth: f64, blur_radius: f64, color: Color, opacity: f64) -> Self
    

    Source

    offset_x

    fn offset_x(self: &Self) -> f64
    

    The horizontal offset of the shadow.

    Source

    offset_y

    fn offset_y(self: &Self) -> f64
    

    The vertical offset of the shadow.

    Source

    direction

    fn direction(self: &Self) -> f64
    

    The direction of the shadow, in degrees.

    Source

    shadow_depth

    fn shadow_depth(self: &Self) -> f64
    

    The distance of the shadow from the content.

    Source

    blur_radius

    fn blur_radius(self: &Self) -> f64
    

    The blur radius of the shadow.

    Source

    color

    fn color(self: &Self) -> Color
    

    The color of the shadow.

    Source

    opacity

    fn opacity(self: &Self) -> f64
    

    The opacity of the shadow.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.