pub struct ShadowLayer {
pub sigma: f64,
pub offset: Vector2,
pub opacity: f64,
}Expand description
One soft shadow silhouette: blur sigma, offset and opacity multiplier.
Fields§
§sigma: f64Gaussian standard deviation in local units.
offset: Vector2Local displacement of the silhouette.
opacity: f64Multiplier on the shadow color’s alpha, in 0..=1.
Trait Implementations§
Source§impl Clone for ShadowLayer
impl Clone for ShadowLayer
impl Copy for ShadowLayer
Source§impl Debug for ShadowLayer
impl Debug for ShadowLayer
Source§impl PartialEq for ShadowLayer
impl PartialEq for ShadowLayer
impl StructuralPartialEq for ShadowLayer
Auto Trait Implementations§
impl Forget for ShadowLayer
impl Freeze for ShadowLayer
impl Move 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