pub enum AtlasCommand {
SetTransform(Affine),
SetPaint(AtlasPaint),
SetPaintTransform(Affine),
FillPath(Arc<BezPath>),
FillRect(Rect),
PushClipLayer(Arc<BezPath>),
PushClipPath(Arc<BezPath>),
PushBlendLayer(BlendMode),
PopLayer,
PopClipPath,
}Expand description
A single draw command recorded for deferred atlas rendering.
The variants correspond 1:1 to the methods on DrawSink.
Variants§
SetTransform(Affine)
Set the current transform.
SetPaint(AtlasPaint)
Set the current paint (solid colour or gradient).
SetPaintTransform(Affine)
Set the paint transform.
FillPath(Arc<BezPath>)
Fill a path with the current paint and transform.
FillRect(Rect)
Fill a rectangle with the current paint and transform.
PushClipLayer(Arc<BezPath>)
Push a clip layer defined by a path.
PushClipPath(Arc<BezPath>)
Push a clip path.
PushBlendLayer(BlendMode)
Push a blend/compositing layer.
PopLayer
Pop the most recent clip or blend layer.
PopClipPath
Pop the most recent clip path.
Trait Implementations§
Source§impl Clone for AtlasCommand
impl Clone for AtlasCommand
Source§fn clone(&self) -> AtlasCommand
fn clone(&self) -> AtlasCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AtlasCommand
impl RefUnwindSafe for AtlasCommand
impl Send for AtlasCommand
impl Sync for AtlasCommand
impl Unpin for AtlasCommand
impl UnsafeUnpin for AtlasCommand
impl UnwindSafe for AtlasCommand
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