pub trait DOMRectReadOnlyMethods {
    // Required methods
    fn FromRect(
        global: &GlobalScope,
        other: &DOMRectInit,
    ) -> Root<Dom<DOMRectReadOnly>>;
    fn X(&self) -> f64;
    fn Y(&self) -> f64;
    fn Width(&self) -> f64;
    fn Height(&self) -> f64;
    fn Top(&self) -> f64;
    fn Right(&self) -> f64;
    fn Bottom(&self) -> f64;
    fn Left(&self) -> f64;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        x: f64,
        y: f64,
        width: f64,
        height: f64,
    ) -> Result<Root<Dom<DOMRectReadOnly>>, Error>;
}

Required Methods§

source

fn FromRect( global: &GlobalScope, other: &DOMRectInit, ) -> Root<Dom<DOMRectReadOnly>>

source

fn X(&self) -> f64

source

fn Y(&self) -> f64

source

fn Width(&self) -> f64

source

fn Height(&self) -> f64

source

fn Top(&self) -> f64

source

fn Right(&self) -> f64

source

fn Bottom(&self) -> f64

source

fn Left(&self) -> f64

source

fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, x: f64, y: f64, width: f64, height: f64, ) -> Result<Root<Dom<DOMRectReadOnly>>, Error>

Object Safety§

This trait is not object safe.

Implementors§