pub struct Shadow {
pub color: Color,
pub offset_x: Dp,
pub offset_y: Dp,
pub blur_radius: Dp,
}Expand description
Text shadow. Offsets and blur are in Dp,
converted to px at the paint boundary.
Fields§
§color: Color§offset_x: DpHorizontal offset in Dp.
offset_y: DpVertical offset in Dp.
blur_radius: DpBlur radius in Dp.
Trait Implementations§
impl Copy for Shadow
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