Skip to main content

web_sys/features/
gen_DomRectReadOnly.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "DOMRectReadOnly",
10        typescript_type = "DOMRectReadOnly"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `DomRectReadOnly` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
18    pub type DomRectReadOnly;
19    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "x")]
20    #[doc = "Getter for the `x` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/x)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
25    pub fn x(this: &DomRectReadOnly) -> f64;
26    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "y")]
27    #[doc = "Getter for the `y` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/y)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
32    pub fn y(this: &DomRectReadOnly) -> f64;
33    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "width")]
34    #[doc = "Getter for the `width` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
39    pub fn width(this: &DomRectReadOnly) -> f64;
40    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "height")]
41    #[doc = "Getter for the `height` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
46    pub fn height(this: &DomRectReadOnly) -> f64;
47    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "top")]
48    #[doc = "Getter for the `top` field of this object."]
49    #[doc = ""]
50    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top)"]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
53    pub fn top(this: &DomRectReadOnly) -> f64;
54    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "right")]
55    #[doc = "Getter for the `right` field of this object."]
56    #[doc = ""]
57    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right)"]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
60    pub fn right(this: &DomRectReadOnly) -> f64;
61    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "bottom")]
62    #[doc = "Getter for the `bottom` field of this object."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
67    pub fn bottom(this: &DomRectReadOnly) -> f64;
68    #[wasm_bindgen(method, getter, js_class = "DOMRectReadOnly", js_name = "left")]
69    #[doc = "Getter for the `left` field of this object."]
70    #[doc = ""]
71    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left)"]
72    #[doc = ""]
73    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
74    pub fn left(this: &DomRectReadOnly) -> f64;
75    #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")]
76    #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."]
77    #[doc = ""]
78    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
81    pub fn new() -> Result<DomRectReadOnly, JsValue>;
82    #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")]
83    #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."]
84    #[doc = ""]
85    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"]
86    #[doc = ""]
87    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
88    pub fn new_with_x(x: f64) -> Result<DomRectReadOnly, JsValue>;
89    #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")]
90    #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."]
91    #[doc = ""]
92    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
95    pub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomRectReadOnly, JsValue>;
96    #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")]
97    #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."]
98    #[doc = ""]
99    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"]
100    #[doc = ""]
101    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
102    pub fn new_with_x_and_y_and_width(
103        x: f64,
104        y: f64,
105        width: f64,
106    ) -> Result<DomRectReadOnly, JsValue>;
107    #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")]
108    #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."]
109    #[doc = ""]
110    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
113    pub fn new_with_x_and_y_and_width_and_height(
114        x: f64,
115        y: f64,
116        width: f64,
117        height: f64,
118    ) -> Result<DomRectReadOnly, JsValue>;
119    #[wasm_bindgen(method, js_class = "DOMRectReadOnly", js_name = "toJSON")]
120    #[doc = "The `toJSON()` method."]
121    #[doc = ""]
122    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/toJSON)"]
123    #[doc = ""]
124    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"]
125    pub fn to_json(this: &DomRectReadOnly) -> ::js_sys::Object;
126}