Trait script::dom::bindings::codegen::Bindings::DOMRectBinding::DOMRect_Binding::DOMRectMethods
source · pub trait DOMRectMethods<D: DomTypes> {
// 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§
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>
Object Safety§
This trait is not object safe.