Skip to main content

DOMMatrixReadOnlyMethods

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§

Source

fn FromMatrix( cx: &mut JSContext, global: &D::GlobalScope, other: &DOMMatrixInit, ) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>

Source

fn FromFloat32Array( cx: &mut JSContext, global: &D::GlobalScope, array32: CustomAutoRooterGuard<'_, Float32Array>, ) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>

Source

fn FromFloat64Array( cx: &mut JSContext, global: &D::GlobalScope, array64: CustomAutoRooterGuard<'_, Float64Array>, ) -> Fallible<DomRoot<D::DOMMatrixReadOnly>>

Source

fn A(&self) -> f64

Source

fn B(&self) -> f64

Source

fn C(&self) -> f64

Source

fn D(&self) -> f64

Source

fn E(&self) -> f64

Source

fn F(&self) -> f64

Source

fn M11(&self) -> f64

Source

fn M12(&self) -> f64

Source

fn M13(&self) -> f64

Source

fn M14(&self) -> f64

Source

fn M21(&self) -> f64

Source

fn M22(&self) -> f64

Source

fn M23(&self) -> f64

Source

fn M24(&self) -> f64

Source

fn M31(&self) -> f64

Source

fn M32(&self) -> f64

Source

fn M33(&self) -> f64

Source

fn M34(&self) -> f64

Source

fn M41(&self) -> f64

Source

fn M42(&self) -> f64

Source

fn M43(&self) -> f64

Source

fn M44(&self) -> f64

Source

fn Is2D(&self) -> bool

Source

fn IsIdentity(&self) -> bool

Source

fn Translate( &self, cx: &mut JSContext, tx: f64, ty: f64, tz: f64, ) -> DomRoot<D::DOMMatrix>

Source

fn Scale( &self, cx: &mut JSContext, scaleX: f64, scaleY: Option<f64>, scaleZ: f64, originX: f64, originY: f64, originZ: f64, ) -> DomRoot<D::DOMMatrix>

Source

fn ScaleNonUniform( &self, cx: &mut JSContext, scaleX: f64, scaleY: f64, ) -> DomRoot<D::DOMMatrix>

Source

fn Scale3d( &self, cx: &mut JSContext, scale: f64, originX: f64, originY: f64, originZ: f64, ) -> DomRoot<D::DOMMatrix>

Source

fn Rotate( &self, cx: &mut JSContext, rotX: f64, rotY: Option<f64>, rotZ: Option<f64>, ) -> DomRoot<D::DOMMatrix>

Source

fn RotateFromVector( &self, cx: &mut JSContext, x: f64, y: f64, ) -> DomRoot<D::DOMMatrix>

Source

fn RotateAxisAngle( &self, cx: &mut JSContext, x: f64, y: f64, z: f64, angle: f64, ) -> DomRoot<D::DOMMatrix>

Source

fn SkewX(&self, cx: &mut JSContext, sx: f64) -> DomRoot<D::DOMMatrix>

Source

fn SkewY(&self, cx: &mut JSContext, sy: f64) -> DomRoot<D::DOMMatrix>

Source

fn Multiply( &self, cx: &mut JSContext, other: &DOMMatrixInit, ) -> Fallible<DomRoot<D::DOMMatrix>>

Source

fn FlipX(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>

Source

fn FlipY(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>

Source

fn Inverse(&self, cx: &mut JSContext) -> DomRoot<D::DOMMatrix>

Source

fn TransformPoint( &self, cx: &mut JSContext, point: &DOMPointInit, ) -> DomRoot<D::DOMPoint>

Source

fn ToFloat32Array( &self, cx: &mut JSContext, ) -> RootedTraceableBox<HeapFloat32Array>

Source

fn ToFloat64Array( &self, cx: &mut JSContext, ) -> RootedTraceableBox<HeapFloat64Array>

Source

fn Stringifier(&self, cx: &mut JSContext) -> Fallible<DOMString>

Source

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".

Implementors§