pub struct LayerCommand {
pub blend: BlendMode,
pub alpha: f32,
pub transform: Affine,
pub clip: BezPath,
pub filter: Option<Arc<Filter>>,
pub backdrop_filter: Option<Arc<Filter>>,
}Expand description
Pushes a new layer clipped by the specified shape and composed with previous layers using the specified blend mode. Every drawing command after this call will be clipped by the shape until the layer is popped. However, the transforms are not saved or modified by the layer stack.
Fields§
§blend: BlendMode§alpha: f32§transform: Affine§clip: BezPath§filter: Option<Arc<Filter>>§backdrop_filter: Option<Arc<Filter>>Trait Implementations§
Source§impl Clone for LayerCommand
impl Clone for LayerCommand
Source§fn clone(&self) -> LayerCommand
fn clone(&self) -> LayerCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayerCommand
impl Debug for LayerCommand
Source§impl PartialEq for LayerCommand
impl PartialEq for LayerCommand
impl StructuralPartialEq for LayerCommand
Auto Trait Implementations§
impl Freeze for LayerCommand
impl RefUnwindSafe for LayerCommand
impl Send for LayerCommand
impl Sync for LayerCommand
impl Unpin for LayerCommand
impl UnsafeUnpin for LayerCommand
impl UnwindSafe for LayerCommand
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