pub enum VectorOp {
PushLayer {
opacity: f32,
bounds: IRect,
},
PopLayer,
Fill {
path: Arc<BezPath>,
rule: FillRule,
paint: ScenePaint,
opacity: f32,
bounds: IRect,
},
}Expand description
One drawing operation of a VectorScene.
Variants§
PushLayer
Draws what follows, until the matching VectorOp::PopLayer, into a
layer composited at opacity, within bounds.
Fields
PopLayer
Ends the innermost layer.
Fill
Covers the inside of path with paint. A stroke is a fill of its
outline with the nonzero rule.
Trait Implementations§
impl StructuralPartialEq for VectorOp
Auto Trait Implementations§
impl Freeze for VectorOp
impl RefUnwindSafe for VectorOp
impl Send for VectorOp
impl Sync for VectorOp
impl Unpin for VectorOp
impl UnsafeUnpin for VectorOp
impl UnwindSafe for VectorOp
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