pub enum ShadowPrimitive {
Drop {
shape: Box<DrawPrimitive>,
blur_radius: f32,
blend_mode: BlendMode,
},
Inner {
fill: Box<DrawPrimitive>,
cutout: Box<DrawPrimitive>,
blur_radius: f32,
blend_mode: BlendMode,
clip_rect: Rect,
},
}Expand description
Describes a shadow to be rendered. Each renderer chooses how to blur.
Variants§
Drop
Drop shadow: render shape behind content, blurred.
Inner
Inner shadow: render fill + cutout to offscreen, blur, clip to bounds.
Trait Implementations§
Source§impl Clone for ShadowPrimitive
impl Clone for ShadowPrimitive
Source§fn clone(&self) -> ShadowPrimitive
fn clone(&self) -> ShadowPrimitive
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShadowPrimitive
impl Debug for ShadowPrimitive
Source§impl PartialEq for ShadowPrimitive
impl PartialEq for ShadowPrimitive
impl StructuralPartialEq for ShadowPrimitive
Auto Trait Implementations§
impl Freeze for ShadowPrimitive
impl RefUnwindSafe for ShadowPrimitive
impl Send for ShadowPrimitive
impl Sync for ShadowPrimitive
impl Unpin for ShadowPrimitive
impl UnsafeUnpin for ShadowPrimitive
impl UnwindSafe for ShadowPrimitive
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