pub struct ShadowLayer {
pub offset_x: f32,
pub offset_y: f32,
pub blur: f32,
pub spread: f32,
pub color: Color,
}Expand description
A single drop-shadow descriptor.
Fields§
§offset_x: f32Horizontal offset in logical pixels.
offset_y: f32Vertical offset in logical pixels.
blur: f32Blur radius in logical pixels.
spread: f32Spread radius in logical pixels.
color: ColorShadow color (includes opacity via alpha channel).
Implementations§
Source§impl ShadowLayer
impl ShadowLayer
Trait Implementations§
Source§impl Clone for ShadowLayer
impl Clone for ShadowLayer
Source§fn clone(&self) -> ShadowLayer
fn clone(&self) -> ShadowLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadowLayer
Auto Trait Implementations§
impl Freeze for ShadowLayer
impl RefUnwindSafe for ShadowLayer
impl Send for ShadowLayer
impl Sync for ShadowLayer
impl Unpin for ShadowLayer
impl UnsafeUnpin for ShadowLayer
impl UnwindSafe for ShadowLayer
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