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 everything up to the matching VectorOp::PopLayer into a layer composited at
opacity.
Fields
PopLayer
Ends the innermost layer.
Fill
Fills path with paint. Strokes are fills of their 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