| 1 | #![allow (unused_imports)] |
| 2 | #![allow (clippy::all)] |
| 3 | use super::*; |
| 4 | use wasm_bindgen::prelude::*; |
| 5 | #[wasm_bindgen ] |
| 6 | unsafeextern "C" { |
| 7 | # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserverEntry , typescript_type = "ResizeObserverEntry" )] |
| 8 | #[derive (Debug, Clone, PartialEq, Eq)] |
| 9 | #[doc = "The `ResizeObserverEntry` class." ] |
| 10 | #[doc = "" ] |
| 11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry)" ] |
| 12 | #[doc = "" ] |
| 13 | #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*" ] |
| 14 | pub type ResizeObserverEntry; |
| 15 | #[cfg (feature = "Element" )] |
| 16 | # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = target)] |
| 17 | #[doc = "Getter for the `target` field of this object." ] |
| 18 | #[doc = "" ] |
| 19 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/target)" ] |
| 20 | #[doc = "" ] |
| 21 | #[doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserverEntry`*" ] |
| 22 | pub unsafefn target(this: &ResizeObserverEntry) -> Element; |
| 23 | #[cfg (feature = "DomRectReadOnly" )] |
| 24 | # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentRect)] |
| 25 | #[doc = "Getter for the `contentRect` field of this object." ] |
| 26 | #[doc = "" ] |
| 27 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect)" ] |
| 28 | #[doc = "" ] |
| 29 | #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `ResizeObserverEntry`*" ] |
| 30 | pub unsafefn content_rect(this: &ResizeObserverEntry) -> DomRectReadOnly; |
| 31 | # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = borderBoxSize)] |
| 32 | #[doc = "Getter for the `borderBoxSize` field of this object." ] |
| 33 | #[doc = "" ] |
| 34 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize)" ] |
| 35 | #[doc = "" ] |
| 36 | #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*" ] |
| 37 | pub unsafefn border_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; |
| 38 | # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentBoxSize)] |
| 39 | #[doc = "Getter for the `contentBoxSize` field of this object." ] |
| 40 | #[doc = "" ] |
| 41 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize)" ] |
| 42 | #[doc = "" ] |
| 43 | #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*" ] |
| 44 | pub unsafefn content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; |
| 45 | # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = devicePixelContentBoxSize)] |
| 46 | #[doc = "Getter for the `devicePixelContentBoxSize` field of this object." ] |
| 47 | #[doc = "" ] |
| 48 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)" ] |
| 49 | #[doc = "" ] |
| 50 | #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*" ] |
| 51 | pub unsafefn device_pixel_content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; |
| 52 | } |
| 53 | |