Enum webrender::picture::PictureCompositeMode
source · pub enum PictureCompositeMode {
MixBlend(MixBlendMode),
Filter(Filter),
ComponentTransferFilter(Handle<FilterDataIntern>),
Blit(BlitReason),
TileCache {
slice_id: SliceId,
},
SvgFilter(Vec<FilterPrimitive>, Vec<SFilterData>),
IntermediateSurface,
}
Expand description
Specifies how this Picture should be composited onto the target it belongs to.
Variants§
MixBlend(MixBlendMode)
Apply CSS mix-blend-mode effect.
Filter(Filter)
Apply a CSS filter (except component transfer).
ComponentTransferFilter(Handle<FilterDataIntern>)
Apply a component transfer filter.
Blit(BlitReason)
Draw to intermediate surface, copy straight across. This is used for CSS isolation, and plane splitting.
TileCache
Used to cache a picture as a series of tiles.
SvgFilter(Vec<FilterPrimitive>, Vec<SFilterData>)
Apply an SVG filter
IntermediateSurface
A surface that is used as an input to another primitive
Implementations§
source§impl PictureCompositeMode
impl PictureCompositeMode
pub fn get_rect( &self, surface: &SurfaceInfo, sub_rect: Option<LayoutRect> ) -> LayoutRect
pub fn get_coverage( &self, surface: &SurfaceInfo, sub_rect: Option<LayoutRect> ) -> LayoutRect
Trait Implementations§
source§impl Clone for PictureCompositeMode
impl Clone for PictureCompositeMode
source§fn clone(&self) -> PictureCompositeMode
fn clone(&self) -> PictureCompositeMode
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 PictureCompositeMode
impl Debug for PictureCompositeMode
Auto Trait Implementations§
impl RefUnwindSafe for PictureCompositeMode
impl Send for PictureCompositeMode
impl Sync for PictureCompositeMode
impl Unpin for PictureCompositeMode
impl UnwindSafe for PictureCompositeMode
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> 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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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