pub enum RenderCommand<Font = FontData, Brush = Paint> {
PushLayer(LayerCommand),
PushClipLayer(ClipCommand),
PopLayer,
Stroke(StrokeCommand<Brush>),
Fill(FillCommand<Brush>),
GlyphRun(GlyphRunCommand<Font, Brush>),
BoxShadow(BoxShadowCommand),
}Variants§
PushLayer(LayerCommand)
Pushes a new layer clipped by the specified shape and composed with previous layers using the specified blend mode. Every drawing command after this call will be clipped by the shape until the layer is popped. However, the transforms are not saved or modified by the layer stack.
PushClipLayer(ClipCommand)
Pushes a new clip layer clipped by the specified shape. Every drawing command after this call will be clipped by the shape until the layer is popped. However, the transforms are not saved or modified by the layer stack.
PopLayer
Pops the current layer.
Stroke(StrokeCommand<Brush>)
Strokes a shape using the specified style and brush.
Fill(FillCommand<Brush>)
Fills a shape using the specified style and brush.
GlyphRun(GlyphRunCommand<Font, Brush>)
Draws a run of glyphs
BoxShadow(BoxShadowCommand)
Draw a rounded rectangle blurred with a gaussian filter.
Trait Implementations§
Source§impl<Font: Clone, Brush: Clone> Clone for RenderCommand<Font, Brush>
impl<Font: Clone, Brush: Clone> Clone for RenderCommand<Font, Brush>
Source§fn clone(&self) -> RenderCommand<Font, Brush>
fn clone(&self) -> RenderCommand<Font, Brush>
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 moreimpl<Font: PartialEq, Brush: PartialEq> StructuralPartialEq for RenderCommand<Font, Brush>
Auto Trait Implementations§
impl<Font, Brush> Freeze for RenderCommand<Font, Brush>
impl<Font, Brush> RefUnwindSafe for RenderCommand<Font, Brush>where
Brush: RefUnwindSafe,
Font: RefUnwindSafe,
impl<Font, Brush> Send for RenderCommand<Font, Brush>
impl<Font, Brush> Sync for RenderCommand<Font, Brush>
impl<Font, Brush> Unpin for RenderCommand<Font, Brush>
impl<Font, Brush> UnsafeUnpin for RenderCommand<Font, Brush>where
Brush: UnsafeUnpin,
Font: UnsafeUnpin,
impl<Font, Brush> UnwindSafe for RenderCommand<Font, Brush>where
Brush: UnwindSafe,
Font: UnwindSafe,
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