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