Enum webrender::prim_store::picture::PictureCompositeKey
source · pub enum PictureCompositeKey {
Show 35 variants
Identity,
Blur(Au, Au, bool),
Brightness(Au),
Contrast(Au),
Grayscale(Au),
HueRotate(Au),
Invert(Au),
Opacity(Au),
OpacityBinding(PropertyBindingId, Au),
Saturate(Au),
Sepia(Au),
DropShadows(Vec<(VectorKey, Au, ColorU)>),
ColorMatrix([Au; 20]),
SrgbToLinear,
LinearToSrgb,
ComponentTransfer(ItemUid),
Flood(ColorU),
SvgFilter(Vec<FilterPrimitiveKey>),
SVGFEGraph(Vec<(FilterGraphNodeKey, FilterGraphOpKey)>),
Multiply,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Hue,
Saturation,
Color,
Luminosity,
PlusLighter,
}
Expand description
Represents a hashable description of how a picture primitive will be composited into its parent.
Variants§
Identity
Blur(Au, Au, bool)
Brightness(Au)
Contrast(Au)
Grayscale(Au)
HueRotate(Au)
Invert(Au)
Opacity(Au)
OpacityBinding(PropertyBindingId, Au)
Saturate(Au)
Sepia(Au)
DropShadows(Vec<(VectorKey, Au, ColorU)>)
ColorMatrix([Au; 20])
SrgbToLinear
LinearToSrgb
ComponentTransfer(ItemUid)
Flood(ColorU)
SvgFilter(Vec<FilterPrimitiveKey>)
SVGFEGraph(Vec<(FilterGraphNodeKey, FilterGraphOpKey)>)
Multiply
Screen
Overlay
Darken
Lighten
ColorDodge
ColorBurn
HardLight
SoftLight
Difference
Exclusion
Hue
Saturation
Color
Luminosity
PlusLighter
Trait Implementations§
source§impl Clone for PictureCompositeKey
impl Clone for PictureCompositeKey
source§fn clone(&self) -> PictureCompositeKey
fn clone(&self) -> PictureCompositeKey
Returns a copy 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 PictureCompositeKey
impl Debug for PictureCompositeKey
source§impl From<Option<PictureCompositeMode>> for PictureCompositeKey
impl From<Option<PictureCompositeMode>> for PictureCompositeKey
source§fn from(mode: Option<PictureCompositeMode>) -> Self
fn from(mode: Option<PictureCompositeMode>) -> Self
Converts to this type from the input type.
source§impl Hash for PictureCompositeKey
impl Hash for PictureCompositeKey
source§impl MallocSizeOf for PictureCompositeKey
impl MallocSizeOf for PictureCompositeKey
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for PictureCompositeKey
impl PartialEq for PictureCompositeKey
source§impl Serialize for PictureCompositeKey
impl Serialize for PictureCompositeKey
impl Eq for PictureCompositeKey
impl StructuralPartialEq for PictureCompositeKey
Auto Trait Implementations§
impl Freeze for PictureCompositeKey
impl RefUnwindSafe for PictureCompositeKey
impl Send for PictureCompositeKey
impl Sync for PictureCompositeKey
impl Unpin for PictureCompositeKey
impl UnwindSafe for PictureCompositeKey
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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