pub enum DrawCmd {
PushClip(RectPx),
PopClip,
Series(SeriesDraw),
Rects(Span),
Lines(Span),
Polyline {
points: Span,
style: StrokeStyle,
},
Polygon {
points: Span,
fill: Rgba,
},
Text(Span),
Icon(Span),
Custom(CustomDraw),
}Expand description
One draw command. All variants are Copy and hold no heap data.
Variants§
PushClip(RectPx)
Intersects the clip with a rectangle until the matching PopClip.
PopClip
Restores the previous clip.
Series(SeriesDraw)
Data-bound series.
Rects(Span)
Filled rectangles: FramePools::rects[span].
Lines(Span)
Line segments: FramePools::lines[span].
Polyline
A polyline through FramePools::points[points].
Polygon
A filled polygon with vertices FramePools::points[points].
Text(Span)
Text runs: FramePools::text_runs[span].
Icon(Span)
Icons: FramePools::icons[span].
Custom(CustomDraw)
Native drawing of a custom series; only for kinds the renderer declared.
Trait Implementations§
impl Copy for DrawCmd
impl StructuralPartialEq for DrawCmd
Auto Trait Implementations§
impl Forget for DrawCmd
impl Freeze for DrawCmd
impl Move for DrawCmd
impl RefUnwindSafe for DrawCmd
impl Send for DrawCmd
impl Sync for DrawCmd
impl Unpin for DrawCmd
impl UnsafeUnpin for DrawCmd
impl UnwindSafe for DrawCmd
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