[][src]Struct web_sys::DomRect

#[repr(transparent)]pub struct DomRect { /* fields omitted */ }

The DomRect class.

MDN Documentation

This API requires the following crate features to be activated: DomRect

Implementations

impl DomRect[src]

pub fn x(&self) -> f64[src]

Getter for the x field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn set_x(&self, value: f64)[src]

Setter for the x field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn y(&self) -> f64[src]

Getter for the y field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn set_y(&self, value: f64)[src]

Setter for the y field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn width(&self) -> f64[src]

Getter for the width field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn set_width(&self, value: f64)[src]

Setter for the width field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn height(&self) -> f64[src]

Getter for the height field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn set_height(&self, value: f64)[src]

Setter for the height field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn new() -> Result<DomRect, JsValue>[src]

The new DomRect(..) constructor, creating a new instance of DomRect.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn new_with_x(x: f64) -> Result<DomRect, JsValue>[src]

The new DomRect(..) constructor, creating a new instance of DomRect.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomRect, JsValue>[src]

The new DomRect(..) constructor, creating a new instance of DomRect.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn new_with_x_and_y_and_width(
    x: f64,
    y: f64,
    width: f64
) -> Result<DomRect, JsValue>
[src]

The new DomRect(..) constructor, creating a new instance of DomRect.

MDN Documentation

This API requires the following crate features to be activated: DomRect

impl DomRect[src]

pub fn new_with_x_and_y_and_width_and_height(
    x: f64,
    y: f64,
    width: f64,
    height: f64
) -> Result<DomRect, JsValue>
[src]

The new DomRect(..) constructor, creating a new instance of DomRect.

MDN Documentation

This API requires the following crate features to be activated: DomRect

Methods from Deref<Target = DomRectReadOnly>

pub fn x(&self) -> f64[src]

Getter for the x field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn y(&self) -> f64[src]

Getter for the y field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn width(&self) -> f64[src]

Getter for the width field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn height(&self) -> f64[src]

Getter for the height field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn top(&self) -> f64[src]

Getter for the top field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn right(&self) -> f64[src]

Getter for the right field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn bottom(&self) -> f64[src]

Getter for the bottom field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn left(&self) -> f64[src]

Getter for the left field of this object.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

pub fn to_json(&self) -> Object[src]

The toJSON() method.

MDN Documentation

This API requires the following crate features to be activated: DomRectReadOnly

Trait Implementations

impl AsRef<DomRect> for DomRect[src]

impl AsRef<DomRectReadOnly> for DomRect[src]

impl AsRef<JsValue> for DomRect[src]

impl AsRef<Object> for DomRect[src]

impl Clone for DomRect[src]

impl Debug for DomRect[src]

impl Deref for DomRect[src]

type Target = DomRectReadOnly

The resulting type after dereferencing.

impl Eq for DomRect[src]

impl From<DomRect> for JsValue[src]

impl From<DomRect> for DomRectReadOnly[src]

impl From<DomRect> for Object[src]

impl From<JsValue> for DomRect[src]

impl FromWasmAbi for DomRect[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for DomRect[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a DomRect[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for DomRect[src]

impl OptionFromWasmAbi for DomRect[src]

impl OptionIntoWasmAbi for DomRect[src]

impl<'a> OptionIntoWasmAbi for &'a DomRect[src]

impl PartialEq<DomRect> for DomRect[src]

impl RefFromWasmAbi for DomRect[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<DomRect>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for DomRect[src]

impl StructuralPartialEq for DomRect[src]

impl WasmDescribe for DomRect[src]

Auto Trait Implementations

impl RefUnwindSafe for DomRect

impl !Send for DomRect

impl !Sync for DomRect

impl Unpin for DomRect

impl UnwindSafe for DomRect

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.