pub enum RenderOp {
Show 26 variants
SetStrokeColor(String),
SetFillColor(String),
SetLineWidth(f64),
SetLineDash(Vec<f64>),
BeginPath,
MoveTo(f64, f64),
LineTo(f64, f64),
QuadraticCurveTo(f64, f64, f64, f64),
BezierCurveTo(f64, f64, f64, f64, f64, f64),
Arc(f64, f64, f64, f64, f64),
Ellipse(f64, f64, f64, f64, f64, f64, f64),
ClosePath,
Stroke,
Fill,
StrokeRect(f64, f64, f64, f64),
FillRect(f64, f64, f64, f64),
SetFont(String),
SetTextAlign(TextAlign),
FillText(String, f64, f64),
StrokeText(String, f64, f64),
Save,
Restore,
Translate(f64, f64),
Rotate(f64),
Scale(f64, f64),
Clip,
}Expand description
Render instructions that can be serialized
Variants§
SetStrokeColor(String)
SetFillColor(String)
SetLineWidth(f64)
SetLineDash(Vec<f64>)
BeginPath
MoveTo(f64, f64)
LineTo(f64, f64)
QuadraticCurveTo(f64, f64, f64, f64)
BezierCurveTo(f64, f64, f64, f64, f64, f64)
Arc(f64, f64, f64, f64, f64)
Ellipse(f64, f64, f64, f64, f64, f64, f64)
ClosePath
Stroke
Fill
StrokeRect(f64, f64, f64, f64)
FillRect(f64, f64, f64, f64)
SetFont(String)
SetTextAlign(TextAlign)
FillText(String, f64, f64)
StrokeText(String, f64, f64)
Save
Restore
Translate(f64, f64)
Rotate(f64)
Scale(f64, f64)
Clip
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderOp
impl RefUnwindSafe for RenderOp
impl Send for RenderOp
impl Sync for RenderOp
impl Unpin for RenderOp
impl UnsafeUnpin for RenderOp
impl UnwindSafe for RenderOp
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