pub enum Clip {
None,
HardEdge,
AntiAlias,
AntiAliasWithSaveLayer,
}Expand description
What happens to a layer that goes past its stack’s edges — the reference’s Clip, as a
stack uses it (stack.dart:476).
Variants§
None
Nothing is cut: a badge may hang off the corner of the avatar it sits on.
HardEdge
Cut at the stack’s edges. The default.
AntiAlias
Cut at the stack’s edges, smoothed. The edges of a stack are straight, so this cuts
as Clip::HardEdge does.
AntiAliasWithSaveLayer
Cut at the stack’s edges, smoothed, in a layer of its own. As Clip::AntiAlias
here.
Implementations§
Trait Implementations§
impl Copy for Clip
impl Eq for Clip
impl StructuralPartialEq for Clip
Auto Trait Implementations§
impl Freeze for Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnsafeUnpin for Clip
impl UnwindSafe for Clip
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