pub struct ShadowParams {
pub offset_x: f64,
pub offset_y: f64,
pub radius: f64,
pub color: Paint,
pub opacity: f64,
}Expand description
Composites a blurred alpha shadow behind a raster.
Fields§
§offset_x: f64Horizontal shadow offset in pixels.
offset_y: f64Vertical shadow offset in pixels.
radius: f64Shadow blur radius in pixels.
color: PaintShadow color.
opacity: f64Shadow opacity.
Trait Implementations§
Source§impl Clone for ShadowParams
impl Clone for ShadowParams
Source§impl Debug for ShadowParams
impl Debug for ShadowParams
Source§impl Default for ShadowParams
impl Default for ShadowParams
Source§impl Delegated for ShadowParams
impl Delegated for ShadowParams
type Delegate = ShadowParamsDelegate
fn into_delegate(self) -> Self::Delegate
Auto Trait Implementations§
impl Freeze for ShadowParams
impl RefUnwindSafe for ShadowParams
impl Send for ShadowParams
impl Sync for ShadowParams
impl Unpin for ShadowParams
impl UnsafeUnpin for ShadowParams
impl UnwindSafe for ShadowParams
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