pub trait DOMRectMethods {
    // Required methods
    fn FromRect(global: &GlobalScope, other: &DOMRectInit) -> Root<Dom<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: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        x: f64,
        y: f64,
        width: f64,
        height: f64,
    ) -> Result<Root<Dom<DOMRect>>, Error>;
}

Required Methods§

source

fn FromRect(global: &GlobalScope, other: &DOMRectInit) -> Root<Dom<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: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, x: f64, y: f64, width: f64, height: f64, ) -> Result<Root<Dom<DOMRect>>, Error>

Object Safety§

This trait is not object safe.

Implementors§