pub enum RenderCommand {
Show 14 variants
FillPath(BezPath),
StrokePath(BezPath),
FillRect(Rect),
StrokeRect(Rect),
SetTransform(Affine),
SetFillRule(Fill),
SetStroke(Stroke),
PushLayer(PushLayerCommand),
PopLayer,
SetPaint(PaintType),
SetPaintTransform(Affine),
ResetPaintTransform,
FillOutlineGlyph((BezPath, Affine)),
StrokeOutlineGlyph((BezPath, Affine)),
}
Expand description
Individual rendering commands that can be recorded.
Variants§
FillPath(BezPath)
Fill a path.
StrokePath(BezPath)
Stroke a path.
FillRect(Rect)
Fill a rectangle.
StrokeRect(Rect)
Stroke a rectangle.
SetTransform(Affine)
Set the current transform.
SetFillRule(Fill)
Set the fill rule.
SetStroke(Stroke)
Set the stroke parameters.
PushLayer(PushLayerCommand)
Push a new layer with optional clipping and effects.
PopLayer
Pop the current layer.
SetPaint(PaintType)
Set the current paint.
SetPaintTransform(Affine)
Set the paint transform.
ResetPaintTransform
Reset the paint transform.
FillOutlineGlyph((BezPath, Affine))
Render a fill outline glyph.
StrokeOutlineGlyph((BezPath, Affine))
Render a stroke outline glyph.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderCommand
impl RefUnwindSafe for RenderCommand
impl Send for RenderCommand
impl Sync for RenderCommand
impl Unpin for RenderCommand
impl UnwindSafe for RenderCommand
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