Trait BoxShadowView

Source
pub trait BoxShadowView: View {
    // Required method
    fn box_shadow_node(&mut self) -> &mut BoxShadow;

    // Provided methods
    fn shadow(self, shadows: Vec<ShadowStyle>) -> Self { ... }
    fn add_shadow(self, shadow: ShadowStyle) -> Self { ... }
}
Expand description

A trait for setting and modifying UI container shadow styles.

Required Methods§

Source

fn box_shadow_node(&mut self) -> &mut BoxShadow

Returns a mutable reference to the internal shadow style list.

Provided Methods§

Source

fn shadow(self, shadows: Vec<ShadowStyle>) -> Self

Replaces all existing shadows with the provided list.

Source

fn add_shadow(self, shadow: ShadowStyle) -> Self

Appends a new shadow to the current list.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§