Enum canvas_traits::canvas::Canvas2dMsg
source · pub enum Canvas2dMsg {
Show 39 variants
Arc(Point2D<f32>, f32, f32, f32, bool),
ArcTo(Point2D<f32>, Point2D<f32>, f32),
DrawImage(Option<ByteBuf>, Size2D<f64>, Rect<f64>, Rect<f64>, bool),
DrawImageInOther(CanvasId, Size2D<f64>, Rect<f64>, Rect<f64>, bool),
BeginPath,
BezierCurveTo(Point2D<f32>, Point2D<f32>, Point2D<f32>),
ClearRect(Rect<f32>),
Clip,
ClosePath,
Ellipse(Point2D<f32>, f32, f32, f32, f32, f32, bool),
Fill(FillOrStrokeStyle),
FillText(String, f64, f64, Option<f64>, FillOrStrokeStyle, bool),
FillRect(Rect<f32>, FillOrStrokeStyle),
GetImageData(Rect<u64>, Size2D<u64>, IpcBytesSender),
GetTransform(IpcSender<Transform2D<f32>>),
IsPointInPath(f64, f64, FillRule, IpcSender<bool>),
LineTo(Point2D<f32>),
MoveTo(Point2D<f32>),
PutImageData(Rect<u64>, IpcBytesReceiver),
QuadraticCurveTo(Point2D<f32>, Point2D<f32>),
Rect(Rect<f32>),
RestoreContext,
SaveContext,
StrokeRect(Rect<f32>, FillOrStrokeStyle),
Stroke(FillOrStrokeStyle),
SetLineWidth(f32),
SetLineCap(LineCapStyle),
SetLineJoin(LineJoinStyle),
SetMiterLimit(f32),
SetGlobalAlpha(f32),
SetGlobalComposition(CompositionOrBlending),
SetTransform(Transform2D<f32>),
SetShadowOffsetX(f64),
SetShadowOffsetY(f64),
SetShadowBlur(f64),
SetShadowColor(RGBA),
SetFont(FontStyleStruct),
SetTextAlign(TextAlign),
SetTextBaseline(TextBaseline),
}
Variants§
Arc(Point2D<f32>, f32, f32, f32, bool)
ArcTo(Point2D<f32>, Point2D<f32>, f32)
DrawImage(Option<ByteBuf>, Size2D<f64>, Rect<f64>, Rect<f64>, bool)
DrawImageInOther(CanvasId, Size2D<f64>, Rect<f64>, Rect<f64>, bool)
BeginPath
BezierCurveTo(Point2D<f32>, Point2D<f32>, Point2D<f32>)
ClearRect(Rect<f32>)
Clip
ClosePath
Ellipse(Point2D<f32>, f32, f32, f32, f32, f32, bool)
Fill(FillOrStrokeStyle)
FillText(String, f64, f64, Option<f64>, FillOrStrokeStyle, bool)
FillRect(Rect<f32>, FillOrStrokeStyle)
GetImageData(Rect<u64>, Size2D<u64>, IpcBytesSender)
GetTransform(IpcSender<Transform2D<f32>>)
IsPointInPath(f64, f64, FillRule, IpcSender<bool>)
LineTo(Point2D<f32>)
MoveTo(Point2D<f32>)
PutImageData(Rect<u64>, IpcBytesReceiver)
QuadraticCurveTo(Point2D<f32>, Point2D<f32>)
Rect(Rect<f32>)
RestoreContext
SaveContext
StrokeRect(Rect<f32>, FillOrStrokeStyle)
Stroke(FillOrStrokeStyle)
SetLineWidth(f32)
SetLineCap(LineCapStyle)
SetLineJoin(LineJoinStyle)
SetMiterLimit(f32)
SetGlobalAlpha(f32)
SetGlobalComposition(CompositionOrBlending)
SetTransform(Transform2D<f32>)
SetShadowOffsetX(f64)
SetShadowOffsetY(f64)
SetShadowBlur(f64)
SetShadowColor(RGBA)
SetFont(FontStyleStruct)
SetTextAlign(TextAlign)
SetTextBaseline(TextBaseline)
Trait Implementations§
source§impl Debug for Canvas2dMsg
impl Debug for Canvas2dMsg
source§impl<'de> Deserialize<'de> for Canvas2dMsg
impl<'de> Deserialize<'de> for Canvas2dMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Canvas2dMsg
impl Send for Canvas2dMsg
impl !Sync for Canvas2dMsg
impl Unpin for Canvas2dMsg
impl UnwindSafe for Canvas2dMsg
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert