pub struct LayerProps {
pub blend_mode: BlendMode,
pub opacity: f32,
pub mask: Option<Mask>,
pub clip_path: Option<LayerClip>,
}Expand description
Properties for a recorded layer.
Fields§
§blend_mode: BlendModeBlend mode used when compositing the layer.
opacity: f32Opacity applied when compositing the layer.
mask: Option<Mask>Optional mask applied when compositing the layer.
clip_path: Option<LayerClip>Optional clip path applied when compositing the layer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerProps
impl RefUnwindSafe for LayerProps
impl Send for LayerProps
impl Sync for LayerProps
impl Unpin for LayerProps
impl UnsafeUnpin for LayerProps
impl UnwindSafe for LayerProps
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