Enum canvas_traits::canvas::Canvas2dMsg
source · pub enum Canvas2dMsg {
Show 41 variants
Arc(Point2D<f32>, f32, f32, f32, bool),
ArcTo(Point2D<f32>, Point2D<f32>, f32),
DrawImage(IpcSharedMemory, Size2D<f64>, Rect<f64>, Rect<f64>, bool),
DrawEmptyImage(Size2D<f64>, Rect<f64>, Rect<f64>),
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>),
MeasureText(String, IpcSender<TextMetrics>),
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(AbsoluteColor),
SetFont(Font),
SetTextAlign(TextAlign),
SetTextBaseline(TextBaseline),
}
Variants§
Arc(Point2D<f32>, f32, f32, f32, bool)
ArcTo(Point2D<f32>, Point2D<f32>, f32)
DrawImage(IpcSharedMemory, Size2D<f64>, Rect<f64>, Rect<f64>, bool)
DrawEmptyImage(Size2D<f64>, Rect<f64>, Rect<f64>)
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>)
MeasureText(String, IpcSender<TextMetrics>)
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(AbsoluteColor)
SetFont(Font)
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 !Freeze for Canvas2dMsg
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> 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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
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