pub struct Shadow {
pub radius: Dp,
pub spread: Dp,
pub offset: DpOffset,
pub color: Color,
pub brush: Option<Brush>,
pub alpha: f32,
pub blend_mode: BlendMode,
}Expand description
Static shadow configuration.
This mirrors Compose’s static Shadow object where radius/spread/offset
are provided in density-independent units and converted to pixels at draw time.
Fields§
§radius: Dp§spread: Dp§offset: DpOffset§color: Color§brush: Option<Brush>§alpha: f32§blend_mode: BlendModeImplementations§
Trait Implementations§
impl StructuralPartialEq for Shadow
Auto Trait Implementations§
impl Freeze for Shadow
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnsafeUnpin for Shadow
impl UnwindSafe for Shadow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more