pub enum Filter {
Show 17 variants
Identity,
Blur {
width: f32,
height: f32,
should_inflate: bool,
edge_mode: BlurEdgeMode,
},
Brightness(f32),
Contrast(f32),
Grayscale(f32),
HueRotate(f32),
Invert(f32),
Opacity(PropertyBinding<f32>, f32),
Saturate(f32),
Sepia(f32),
DropShadows(SmallVec<[Shadow; 1]>),
ColorMatrix(Box<[f32; 20]>),
SrgbToLinear,
LinearToSrgb,
ComponentTransfer,
Flood(ColorF),
SVGGraphNode(FilterGraphNode, FilterGraphOp),
}Expand description
Equivalent to api::FilterOp with added internal information
Variants§
Identity
Blur
Brightness(f32)
Contrast(f32)
Grayscale(f32)
HueRotate(f32)
Invert(f32)
Opacity(PropertyBinding<f32>, f32)
Saturate(f32)
Sepia(f32)
DropShadows(SmallVec<[Shadow; 1]>)
ColorMatrix(Box<[f32; 20]>)
SrgbToLinear
LinearToSrgb
ComponentTransfer
Flood(ColorF)
SVGGraphNode(FilterGraphNode, FilterGraphOp)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more