#[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>, can_gc: CanGc, ) -> Root<Dom<Self>>
fn new_with_proto( global: &GlobalScope, proto: Option<HandleObject<'_>>, is2D: bool, matrix: Transform3D<f64>, can_gc: CanGc, ) -> Root<Dom<Self>>
pub fn new_inherited(is2D: bool, matrix: Transform3D<f64>) -> Self
pub fn from_readonly( global: &GlobalScope, ro: &DOMMatrixReadOnly, can_gc: CanGc, ) -> Root<Dom<Self>>
Trait Implementations§
source§impl Castable for DOMMatrix
impl Castable for DOMMatrix
source§impl DOMMatrixMethods<DomTypeHolder> for DOMMatrix
impl DOMMatrixMethods<DomTypeHolder> for DOMMatrix
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, init: Option<StringOrUnrestrictedDoubleSequence>, ) -> Result<Root<Dom<Self>>, Error>
fn FromMatrix( global: &GlobalScope, other: &DOMMatrixInit, can_gc: CanGc, ) -> Result<Root<Dom<Self>>, Error>
fn FromFloat32Array( global: &GlobalScope, array: CustomAutoRooterGuard<'_, Float32Array>, can_gc: CanGc, ) -> Result<Root<Dom<DOMMatrix>>, Error>
fn FromFloat64Array( global: &GlobalScope, array: CustomAutoRooterGuard<'_, Float64Array>, can_gc: CanGc, ) -> Result<Root<Dom<DOMMatrix>>, Error>
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>, _: CanGc) -> 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>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::dommatrix::DOMMatrix>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> 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>, script_runtime::CanGc) -> 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§impl ToJSValConvertible for DOMMatrix
impl ToJSValConvertible for DOMMatrix
impl DerivedFrom<DOMMatrixReadOnly> for DOMMatrix
impl Eq for DOMMatrix
Auto Trait Implementations§
impl !Freeze for DOMMatrix
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. 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>
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