pub trait DOMMatrixReadOnlyMethods<D: DomTypes> {
Show 45 methods
// Required methods
fn FromMatrix(
cx: &mut JSContext,
global: &D::GlobalScope,
other: &DOMMatrixInit,
) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>;
fn FromFloat32Array(
cx: &mut JSContext,
global: &D::GlobalScope,
array32: CustomAutoRooterGuard<'_, Float32Array>,
) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>;
fn FromFloat64Array(
cx: &mut JSContext,
global: &D::GlobalScope,
array64: CustomAutoRooterGuard<'_, Float64Array>,
) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>;
fn A(&self) -> f64;
fn B(&self) -> f64;
fn C(&self) -> f64;
fn D(&self) -> f64;
fn E(&self) -> f64;
fn F(&self) -> f64;
fn M11(&self) -> f64;
fn M12(&self) -> f64;
fn M13(&self) -> f64;
fn M14(&self) -> f64;
fn M21(&self) -> f64;
fn M22(&self) -> f64;
fn M23(&self) -> f64;
fn M24(&self) -> f64;
fn M31(&self) -> f64;
fn M32(&self) -> f64;
fn M33(&self) -> f64;
fn M34(&self) -> f64;
fn M41(&self) -> f64;
fn M42(&self) -> f64;
fn M43(&self) -> f64;
fn M44(&self) -> f64;
fn Is2D(&self) -> bool;
fn IsIdentity(&self) -> bool;
fn Translate(
&self,
cx: &mut JSContext,
tx: f64,
ty: f64,
tz: f64,
) -> DomRoot<D::DOMMatrix>;
fn Scale(
&self,
cx: &mut JSContext,
scaleX: f64,
scaleY: Option<f64>,
scaleZ: f64,
originX: f64,
originY: f64,
originZ: f64,
) -> DomRoot<D::DOMMatrix>;
fn ScaleNonUniform(
&self,
cx: &mut JSContext,
scaleX: f64,
scaleY: f64,
) -> DomRoot<D::DOMMatrix>;
fn Scale3d(
&self,
cx: &mut JSContext,
scale: f64,
originX: f64,
originY: f64,
originZ: f64,
) -> DomRoot<D::DOMMatrix>;
fn Rotate(
&self,
cx: &mut JSContext,
rotX: f64,
rotY: Option<f64>,
rotZ: Option<f64>,
) -> DomRoot<D::DOMMatrix>;
fn RotateFromVector(
&self,
cx: &mut JSContext,
x: f64,
y: f64,
) -> DomRoot<D::DOMMatrix>;
fn RotateAxisAngle(
&self,
cx: &mut JSContext,
x: f64,
y: f64,
z: f64,
angle: f64,
) -> DomRoot<D::DOMMatrix>;
fn SkewX(&self, cx: &mut JSContext, sx: f64) -> DomRoot<D::DOMMatrix>;
fn SkewY(&self, cx: &mut JSContext, sy: f64) -> DomRoot<D::DOMMatrix>;
fn Multiply(
&self,
cx: &mut JSContext,
other: &DOMMatrixInit,
) -> Fallible<DomRoot<D::DOMMatrix>>;
fn FlipX(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>;
fn FlipY(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>;
fn Inverse(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>;
fn TransformPoint(
&self,
cx: &mut JSContext,
point: &DOMPointInit,
) -> DomRoot<D::DOMPoint>;
fn ToFloat32Array(
&self,
cx: &mut JSContext,
) -> RootedTraceableBox<HeapFloat32Array>;
fn ToFloat64Array(
&self,
cx: &mut JSContext,
) -> RootedTraceableBox<HeapFloat64Array>;
fn Stringifier(&self, cx: &mut JSContext) -> Fallible<DOMString>;
fn Constructor(
cx: &mut JSContext,
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
init: Option<StringOrUnrestrictedDoubleSequence>,
) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>;
}Required Methods§
fn FromMatrix( cx: &mut JSContext, global: &D::GlobalScope, other: &DOMMatrixInit, ) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>
fn FromFloat32Array( cx: &mut JSContext, global: &D::GlobalScope, array32: CustomAutoRooterGuard<'_, Float32Array>, ) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>
fn FromFloat64Array( cx: &mut JSContext, global: &D::GlobalScope, array64: CustomAutoRooterGuard<'_, Float64Array>, ) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>
fn A(&self) -> f64
fn B(&self) -> f64
fn C(&self) -> f64
fn D(&self) -> f64
fn E(&self) -> f64
fn F(&self) -> f64
fn M11(&self) -> f64
fn M12(&self) -> f64
fn M13(&self) -> f64
fn M14(&self) -> f64
fn M21(&self) -> f64
fn M22(&self) -> f64
fn M23(&self) -> f64
fn M24(&self) -> f64
fn M31(&self) -> f64
fn M32(&self) -> f64
fn M33(&self) -> f64
fn M34(&self) -> f64
fn M41(&self) -> f64
fn M42(&self) -> f64
fn M43(&self) -> f64
fn M44(&self) -> f64
fn Is2D(&self) -> bool
fn IsIdentity(&self) -> bool
fn Translate( &self, cx: &mut JSContext, tx: f64, ty: f64, tz: f64, ) -> DomRoot<D::DOMMatrix>
fn Scale( &self, cx: &mut JSContext, scaleX: f64, scaleY: Option<f64>, scaleZ: f64, originX: f64, originY: f64, originZ: f64, ) -> DomRoot<D::DOMMatrix>
fn ScaleNonUniform( &self, cx: &mut JSContext, scaleX: f64, scaleY: f64, ) -> DomRoot<D::DOMMatrix>
fn Scale3d( &self, cx: &mut JSContext, scale: f64, originX: f64, originY: f64, originZ: f64, ) -> DomRoot<D::DOMMatrix>
fn Rotate( &self, cx: &mut JSContext, rotX: f64, rotY: Option<f64>, rotZ: Option<f64>, ) -> DomRoot<D::DOMMatrix>
fn RotateFromVector( &self, cx: &mut JSContext, x: f64, y: f64, ) -> DomRoot<D::DOMMatrix>
fn RotateAxisAngle( &self, cx: &mut JSContext, x: f64, y: f64, z: f64, angle: f64, ) -> DomRoot<D::DOMMatrix>
fn SkewX(&self, cx: &mut JSContext, sx: f64) -> DomRoot<D::DOMMatrix>
fn SkewY(&self, cx: &mut JSContext, sy: f64) -> DomRoot<D::DOMMatrix>
fn Multiply( &self, cx: &mut JSContext, other: &DOMMatrixInit, ) -> Fallible<DomRoot<D::DOMMatrix>>
fn FlipX(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>
fn FlipY(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>
fn Inverse(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>
fn TransformPoint( &self, cx: &mut JSContext, point: &DOMPointInit, ) -> DomRoot<D::DOMPoint>
fn ToFloat32Array( &self, cx: &mut JSContext, ) -> RootedTraceableBox<HeapFloat32Array>
fn ToFloat64Array( &self, cx: &mut JSContext, ) -> RootedTraceableBox<HeapFloat64Array>
fn Stringifier(&self, cx: &mut JSContext) -> Fallible<DOMString>
fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, init: Option<StringOrUnrestrictedDoubleSequence>, ) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".