#[repr(C)]pub struct DOMMatrix {
parent: DOMMatrixReadOnly,
}
Fields§
§parent: DOMMatrixReadOnly
Implementations§
source§impl DOMMatrix
impl DOMMatrix
fn __assert_parent_type(&self)
source§impl DOMMatrix
impl DOMMatrix
pub fn new( global: &GlobalScope, is2D: bool, matrix: Transform3D<f64> ) -> Root<Dom<Self>>
fn new_with_proto( global: &GlobalScope, proto: Option<HandleObject<'_>>, is2D: bool, matrix: Transform3D<f64> ) -> Root<Dom<Self>>
pub fn new_inherited(is2D: bool, matrix: Transform3D<f64>) -> Self
pub fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, init: Option<StringOrUnrestrictedDoubleSequence> ) -> Result<Root<Dom<Self>>, Error>
pub fn FromMatrix( global: &GlobalScope, other: &DOMMatrixInit ) -> Result<Root<Dom<Self>>, Error>
pub fn from_readonly( global: &GlobalScope, ro: &DOMMatrixReadOnly ) -> Root<Dom<Self>>
pub fn FromFloat32Array( global: &GlobalScope, array: CustomAutoRooterGuard<'_, Float32Array> ) -> Result<Root<Dom<DOMMatrix>>, Error>
pub fn FromFloat64Array( global: &GlobalScope, array: CustomAutoRooterGuard<'_, Float64Array> ) -> Result<Root<Dom<DOMMatrix>>, Error>
Trait Implementations§
source§impl Castable for DOMMatrix
impl Castable for DOMMatrix
source§impl DOMMatrixMethods for DOMMatrix
impl DOMMatrixMethods for DOMMatrix
fn M11(&self) -> f64
fn SetM11(&self, value: f64)
fn M12(&self) -> f64
fn SetM12(&self, value: f64)
fn M13(&self) -> f64
fn SetM13(&self, value: f64)
fn M14(&self) -> f64
fn SetM14(&self, value: f64)
fn M21(&self) -> f64
fn SetM21(&self, value: f64)
fn M22(&self) -> f64
fn SetM22(&self, value: f64)
fn M23(&self) -> f64
fn SetM23(&self, value: f64)
fn M24(&self) -> f64
fn SetM24(&self, value: f64)
fn M31(&self) -> f64
fn SetM31(&self, value: f64)
fn M32(&self) -> f64
fn SetM32(&self, value: f64)
fn M33(&self) -> f64
fn SetM33(&self, value: f64)
fn M34(&self) -> f64
fn SetM34(&self, value: f64)
fn M41(&self) -> f64
fn SetM41(&self, value: f64)
fn M42(&self) -> f64
fn SetM42(&self, value: f64)
fn M43(&self) -> f64
fn SetM43(&self, value: f64)
fn M44(&self) -> f64
fn SetM44(&self, value: f64)
fn A(&self) -> f64
fn SetA(&self, value: f64)
fn B(&self) -> f64
fn SetB(&self, value: f64)
fn C(&self) -> f64
fn SetC(&self, value: f64)
fn D(&self) -> f64
fn SetD(&self, value: f64)
fn E(&self) -> f64
fn SetE(&self, value: f64)
fn F(&self) -> f64
fn SetF(&self, value: f64)
fn MultiplySelf( &self, other: &DOMMatrixInit ) -> Result<Root<Dom<DOMMatrix>>, Error>
fn PreMultiplySelf( &self, other: &DOMMatrixInit ) -> Result<Root<Dom<DOMMatrix>>, Error>
fn TranslateSelf(&self, tx: f64, ty: f64, tz: f64) -> Root<Dom<DOMMatrix>>
fn ScaleSelf( &self, scaleX: f64, scaleY: Option<f64>, scaleZ: f64, originX: f64, originY: f64, originZ: f64 ) -> Root<Dom<DOMMatrix>>
fn Scale3dSelf( &self, scale: f64, originX: f64, originY: f64, originZ: f64 ) -> Root<Dom<DOMMatrix>>
fn RotateSelf( &self, rotX: f64, rotY: Option<f64>, rotZ: Option<f64> ) -> Root<Dom<DOMMatrix>>
fn RotateFromVectorSelf(&self, x: f64, y: f64) -> Root<Dom<DOMMatrix>>
fn RotateAxisAngleSelf( &self, x: f64, y: f64, z: f64, angle: f64 ) -> Root<Dom<DOMMatrix>>
fn SkewXSelf(&self, sx: f64) -> Root<Dom<DOMMatrix>>
fn SkewYSelf(&self, sy: f64) -> Root<Dom<DOMMatrix>>
fn InvertSelf(&self) -> Root<Dom<DOMMatrix>>
source§impl DomObjectWrap for DOMMatrix
impl DomObjectWrap for DOMMatrix
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::DOMMatrixBinding::DOMMatrix_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::dommatrix::DOMMatrix>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::dommatrix::DOMMatrix>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::DOMMatrixBinding::DOMMatrix_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::dommatrix::DOMMatrix>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::dommatrix::DOMMatrix>>}
Function pointer to the general wrap function type
source§impl HasParent for DOMMatrix
impl HasParent for DOMMatrix
source§fn as_parent(&self) -> &DOMMatrixReadOnly
fn as_parent(&self) -> &DOMMatrixReadOnly
This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is
type Parent = DOMMatrixReadOnly
source§impl IDLInterface for DOMMatrix
impl IDLInterface for DOMMatrix
source§impl MallocSizeOf for DOMMatrix
impl MallocSizeOf for DOMMatrix
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for DOMMatrix
impl MutDomObject for DOMMatrix
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq<DOMMatrix> for DOMMatrix
impl PartialEq<DOMMatrix> for DOMMatrix
source§impl ToJSValConvertible for DOMMatrix
impl ToJSValConvertible for DOMMatrix
impl DerivedFrom<DOMMatrixReadOnly> for DOMMatrix
Auto Trait Implementations§
impl !RefUnwindSafe for DOMMatrix
impl !Send for DOMMatrix
impl !Sync for DOMMatrix
impl Unpin for DOMMatrix
impl UnwindSafe for DOMMatrix
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> 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> 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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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, 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