pub struct Layer {
pub opacity: f64,
pub blend: BlendMode,
pub clip: Option<BezPath>,
pub blur: f64,
pub shadow: Option<Shadow>,
}Expand description
Everything drawn until the matching Primitive::PopLayer is rendered
into its own buffer, filtered, clipped and composited as a whole.
Fields§
§opacity: f64Group opacity, 0..=1.
blend: BlendModeHow the layer is composited onto what is below.
clip: Option<BezPath>Clip path in the item’s local coordinates.
blur: f64Gaussian blur standard deviation in local units.
shadow: Option<Shadow>Drop shadow of the layer’s content.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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