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