pub enum MaskBlurStyle {
Normal,
Solid,
Outer,
Inner,
}Expand description
Which part of a blurred shape survives.
A mask blur produces two things a picture can be made from: the shape’s own
coverage, and that coverage blurred. Every style here is one combination of
the two, and naming them is what dart:ui and Skia both do – a shadow
wants the blur outside and nothing inside, a glow wants it inside, and a
soft-edged solid wants the shape intact with the blur around it.
Variants§
Normal
The blurred coverage, and nothing else. Soft on both sides of the edge.
Solid
The shape at full strength, with the blur outside it.
Outer
The blur outside the shape only. What a drop shadow behind an opaque object is: the part that would be hidden is not drawn at all.
Inner
The blur inside the shape only, which is an inner shadow or a glow confined to what it lights.
Trait Implementations§
Source§impl Clone for MaskBlurStyle
impl Clone for MaskBlurStyle
Source§fn clone(&self) -> MaskBlurStyle
fn clone(&self) -> MaskBlurStyle
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 MaskBlurStyle
Source§impl Debug for MaskBlurStyle
impl Debug for MaskBlurStyle
Source§impl Default for MaskBlurStyle
impl Default for MaskBlurStyle
Source§fn default() -> MaskBlurStyle
fn default() -> MaskBlurStyle
Returns the “default value” for a type. Read more
impl Eq for MaskBlurStyle
Source§impl PartialEq for MaskBlurStyle
impl PartialEq for MaskBlurStyle
impl StructuralPartialEq for MaskBlurStyle
Auto Trait Implementations§
impl Freeze for MaskBlurStyle
impl RefUnwindSafe for MaskBlurStyle
impl Send for MaskBlurStyle
impl Sync for MaskBlurStyle
impl Unpin for MaskBlurStyle
impl UnsafeUnpin for MaskBlurStyle
impl UnwindSafe for MaskBlurStyle
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