1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMRectList , typescript_type = "DOMRectList")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `DomRectList` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"]
13     pub type DomRectList;
14     # [wasm_bindgen (structural , method , getter , js_class = "DOMRectList" , js_name = length)]
15     #[doc = "Getter for the `length` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/length)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"]
length(this: &DomRectList) -> u3220     pub fn length(this: &DomRectList) -> u32;
21     #[cfg(feature = "DomRect")]
22     # [wasm_bindgen (method , structural , js_class = "DOMRectList" , js_name = item)]
23     #[doc = "The `item()` method."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/item)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `DomRect`, `DomRectList`*"]
item(this: &DomRectList, index: u32) -> Option<DomRect>28     pub fn item(this: &DomRectList, index: u32) -> Option<DomRect>;
29     #[cfg(feature = "DomRect")]
30     #[wasm_bindgen(method, structural, js_class = "DOMRectList", indexing_getter)]
31     #[doc = "Indexing getter."]
32     #[doc = ""]
33     #[doc = ""]
34     #[doc = ""]
35     #[doc = "*This API requires the following crate features to be activated: `DomRect`, `DomRectList`*"]
get(this: &DomRectList, index: u32) -> Option<DomRect>36     pub fn get(this: &DomRectList, index: u32) -> Option<DomRect>;
37 }
38