pub trait Path2DMethods<D>where
D: DomTypes,{
Show 13 methods
// Required methods
fn AddPath(&self, path: &<D as DomTypes>::Path2D);
fn ClosePath(&self);
fn MoveTo(&self, x: f64, y: f64);
fn LineTo(&self, x: f64, y: f64);
fn QuadraticCurveTo(&self, cpx: f64, cpy: f64, x: f64, y: f64);
fn BezierCurveTo(
&self,
cp1x: f64,
cp1y: f64,
cp2x: f64,
cp2y: f64,
x: f64,
y: f64,
);
fn ArcTo(
&self,
x1: f64,
y1: f64,
x2: f64,
y2: f64,
radius: f64,
) -> Result<(), Error>;
fn Rect(&self, x: f64, y: f64, w: f64, h: f64);
fn Arc(
&self,
x: f64,
y: f64,
radius: f64,
startAngle: f64,
endAngle: f64,
anticlockwise: bool,
) -> Result<(), Error>;
fn Ellipse(
&self,
x: f64,
y: f64,
radius_x: f64,
radius_y: f64,
rotation: f64,
startAngle: f64,
endAngle: f64,
anticlockwise: bool,
) -> Result<(), Error>;
fn Constructor(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
) -> Root<Dom<<D as DomTypes>::Path2D>>;
fn Constructor_(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
other: &<D as DomTypes>::Path2D,
) -> Root<Dom<<D as DomTypes>::Path2D>>;
fn Constructor__(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
pathString: DOMString,
) -> Root<Dom<<D as DomTypes>::Path2D>>;
}
Required Methods§
fn AddPath(&self, path: &<D as DomTypes>::Path2D)
fn ClosePath(&self)
fn MoveTo(&self, x: f64, y: f64)
fn LineTo(&self, x: f64, y: f64)
fn QuadraticCurveTo(&self, cpx: f64, cpy: f64, x: f64, y: f64)
fn BezierCurveTo( &self, cp1x: f64, cp1y: f64, cp2x: f64, cp2y: f64, x: f64, y: f64, )
fn ArcTo( &self, x1: f64, y1: f64, x2: f64, y2: f64, radius: f64, ) -> Result<(), Error>
fn Rect(&self, x: f64, y: f64, w: f64, h: f64)
fn Arc( &self, x: f64, y: f64, radius: f64, startAngle: f64, endAngle: f64, anticlockwise: bool, ) -> Result<(), Error>
fn Ellipse( &self, x: f64, y: f64, radius_x: f64, radius_y: f64, rotation: f64, startAngle: f64, endAngle: f64, anticlockwise: bool, ) -> Result<(), Error>
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::Path2D>>
fn Constructor_( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, other: &<D as DomTypes>::Path2D, ) -> Root<Dom<<D as DomTypes>::Path2D>>
fn Constructor__( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, pathString: DOMString, ) -> Root<Dom<<D as DomTypes>::Path2D>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.