pub trait DOMRectMethods<D: DomTypes> {
    // Required methods
    fn FromRect(
        global: &D::GlobalScope,
        other: &DOMRectInit,
        _can_gc: CanGc,
    ) -> DomRoot<D::DOMRect>;
    fn X(&self) -> f64;
    fn SetX(&self, value: f64);
    fn Y(&self) -> f64;
    fn SetY(&self, value: f64);
    fn Width(&self) -> f64;
    fn SetWidth(&self, value: f64);
    fn Height(&self) -> f64;
    fn SetHeight(&self, value: f64);
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        x: f64,
        y: f64,
        width: f64,
        height: f64,
    ) -> Fallible<DomRoot<D::DOMRect>>;
}

Required Methods§

Source

fn FromRect( global: &D::GlobalScope, other: &DOMRectInit, _can_gc: CanGc, ) -> DomRoot<D::DOMRect>

Source

fn X(&self) -> f64

Source

fn SetX(&self, value: f64)

Source

fn Y(&self) -> f64

Source

fn SetY(&self, value: f64)

Source

fn Width(&self) -> f64

Source

fn SetWidth(&self, value: f64)

Source

fn Height(&self) -> f64

Source

fn SetHeight(&self, value: f64)

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, x: f64, y: f64, width: f64, height: f64, ) -> Fallible<DomRoot<D::DOMRect>>

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.

Implementors§