pub enum Effect {
None,
Transform(Matrix4),
ClipRect {
rect: Rect,
clip_behavior: Clip,
},
ClipRRect {
rrect: RRect,
clip_behavior: Clip,
},
ClipPath {
path: Arc<Path>,
clip_behavior: Clip,
},
Opacity {
alpha: u8,
offset: Offset,
},
BackdropFilter {
filter: ImageFilter,
blend_mode: BlendMode,
backdrop_id: Option<u64>,
},
}Expand description
What a container does to its children: which of flow’s containers it is.
Variants§
None
flow’s ContainerLayer itself, which does nothing: the scene’s root.
Transform(Matrix4)
TransformLayer: the children’s coordinates taken through the matrix. push_transform,
and push_offset as a translation.
ClipRect
ClipRectLayer: nothing of the children outside the rectangle.
ClipRRect
ClipRRectLayer: nothing of the children outside the rounded rectangle.
ClipPath
ClipPathLayer: nothing of the children outside the path, filled non-zero.
Opacity
OpacityLayer: the children moved by offset and composited as one at alpha, out of
255.
BackdropFilter
BackdropFilterLayer: what lies beneath filtered, then blended back with blend_mode,
before the children paint. Filters sharing a backdrop_id sample one backdrop.
Trait Implementations§
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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