pub enum RenderCommand {
FillPath {
path: Path,
rule: FillRule,
paint: Paint,
alpha: f32,
},
StrokePath {
path: Path,
style: StrokeStyle,
paint: Paint,
alpha: f32,
},
DrawGlyphRun(GlyphRun),
DrawImage(ImageDraw),
PushClip {
path: Path,
rule: FillRule,
},
PushClipStroke {
path: Path,
style: StrokeStyle,
},
PopClip,
PushBlendGroup {
blend_mode: BlendMode,
isolated: bool,
knockout: bool,
bounds: Rect,
alpha: f32,
mask: Option<SoftMask>,
},
PopBlendGroup,
}Variants§
FillPath
StrokePath
DrawGlyphRun(GlyphRun)
DrawImage(ImageDraw)
PushClip
PushClipStroke
Intersect the clip with a stroked path’s outline (not its fill).
Used to clip a pattern/shading paint to a stroke, since stroke geometry
is the backend’s job. Released by the matching RenderCommand::PopClip.
PopClip
PushBlendGroup
Fields
PopBlendGroup
Trait Implementations§
Source§impl Clone for RenderCommand
impl Clone for RenderCommand
Source§fn clone(&self) -> RenderCommand
fn clone(&self) -> RenderCommand
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 RenderCommand
impl RefUnwindSafe for RenderCommand
impl Send for RenderCommand
impl Sync for RenderCommand
impl Unpin for RenderCommand
impl UnsafeUnpin 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