Trait script::dom::bindings::codegen::Bindings::DOMRectReadOnlyBinding::DOMRectReadOnly_Binding::DOMRectReadOnlyMethods
source · 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§
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>
Object Safety§
This trait is not object safe.