#[non_exhaustive]pub enum DrawCommand {
ParticleInstances {
batch: Arc<dyn InstanceBatch>,
transform: Transform,
},
PushFilterLayer {
bounds: Rect,
filters: Vec<Filter>,
},
PushLayer {
opacity: f64,
bounds: Rect,
blend_mode: BlendMode,
clip: Option<PathClip>,
},
PushRectLayer {
opacity: f64,
bounds: Rect,
blend_mode: BlendMode,
clip: Option<PathClip>,
rect_clip: RectClip,
},
PushShapeLayer {
opacity: f64,
bounds: Rect,
blend_mode: BlendMode,
clip: Option<PathClip>,
rect_clip: Option<RectClip>,
shape_clip: ShapeClip,
},
PopLayer,
BeginMask {
mode: MaskMode,
},
EndMask,
FillRect {
bounds: Rect,
transform: Transform,
paint: Paint,
},
Fill {
path: Arc<Path2D>,
transform: Transform,
paint: Paint,
rule: FillRule,
},
}Expand description
A fill or isolated-layer boundary; more primitives await their contracts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ParticleInstances
Particle instances, independent of path strips.
Fields
§
batch: Arc<dyn InstanceBatch>Immutable validated instance/style/program payload.
PushFilterLayer
Begins a source-only filter capture in an independent geometric domain.
Fields
PushLayer
Begins isolated composition of subsequent commands.
Fields
PushRectLayer
Begins isolation with an additional geometric rectangle clip.
Fields
PushShapeLayer
Begins isolation with geometric Shape intersection and optional rectangle.
Fields
PopLayer
Ends the most recent isolated layer.
BeginMask
Begins isolated mask artwork for the current completed layer.
EndMask
Applies completed mask artwork; only PopLayer may follow in that layer.
FillRect
Fills an axis-aligned logical rectangle, preserving its opposite corners.
Fields
Fill
Fills a logical path; open contours close implicitly for filling.
Trait Implementations§
Source§impl Clone for DrawCommand
impl Clone for DrawCommand
Source§impl Debug for DrawCommand
impl Debug for DrawCommand
Source§impl PartialEq for DrawCommand
impl PartialEq for DrawCommand
impl StructuralPartialEq for DrawCommand
Auto Trait Implementations§
impl !RefUnwindSafe for DrawCommand
impl !UnwindSafe for DrawCommand
impl Forget for DrawCommand
impl Freeze for DrawCommand
impl Move for DrawCommand
impl Send for DrawCommand
impl Sync for DrawCommand
impl Unpin for DrawCommand
impl UnsafeUnpin for DrawCommand
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