pub enum Mutator {
Transform(Matrix4),
ClipRect(Rect),
ClipRRect(RRect),
ClipPath(Arc<Path>),
Opacity(u8),
}Expand description
One thing a container above a composition layer does to it: Flutter’s Mutator. Each is in the
coordinates the transforms before it lead to.
Variants§
Transform(Matrix4)
ClipRect(Rect)
Nothing of the layer shows outside the rectangle.
ClipRRect(RRect)
Nothing of the layer shows outside the rounded rectangle.
ClipPath(Arc<Path>)
Nothing of the layer shows outside the path, filled non-zero.
Opacity(u8)
The layer shows at this alpha, out of 255.
Trait Implementations§
impl StructuralPartialEq for Mutator
Auto Trait Implementations§
impl Freeze for Mutator
impl RefUnwindSafe for Mutator
impl Send for Mutator
impl Sync for Mutator
impl Unpin for Mutator
impl UnsafeUnpin for Mutator
impl UnwindSafe for Mutator
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