| 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 = IntersectionObserverEntry , typescript_type = "IntersectionObserverEntry" )] |
| 8 | #[derive (Debug, Clone, PartialEq, Eq)] |
| 9 | #[doc = "The `IntersectionObserverEntry` class." ] |
| 10 | #[doc = "" ] |
| 11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry)" ] |
| 12 | #[doc = "" ] |
| 13 | #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*" ] |
| 14 | pub type IntersectionObserverEntry; |
| 15 | # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = time)] |
| 16 | #[doc = "Getter for the `time` field of this object." ] |
| 17 | #[doc = "" ] |
| 18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/time)" ] |
| 19 | #[doc = "" ] |
| 20 | #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*" ] |
| 21 | pub unsafefn time(this: &IntersectionObserverEntry) -> f64; |
| 22 | #[cfg (feature = "DomRectReadOnly" )] |
| 23 | # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = rootBounds)] |
| 24 | #[doc = "Getter for the `rootBounds` field of this object." ] |
| 25 | #[doc = "" ] |
| 26 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/rootBounds)" ] |
| 27 | #[doc = "" ] |
| 28 | #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*" ] |
| 29 | pub unsafefn root_bounds(this: &IntersectionObserverEntry) -> Option<DomRectReadOnly>; |
| 30 | #[cfg (feature = "DomRectReadOnly" )] |
| 31 | # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = boundingClientRect)] |
| 32 | #[doc = "Getter for the `boundingClientRect` field of this object." ] |
| 33 | #[doc = "" ] |
| 34 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/boundingClientRect)" ] |
| 35 | #[doc = "" ] |
| 36 | #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*" ] |
| 37 | pub unsafefn bounding_client_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; |
| 38 | #[cfg (feature = "DomRectReadOnly" )] |
| 39 | # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRect)] |
| 40 | #[doc = "Getter for the `intersectionRect` field of this object." ] |
| 41 | #[doc = "" ] |
| 42 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRect)" ] |
| 43 | #[doc = "" ] |
| 44 | #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*" ] |
| 45 | pub unsafefn intersection_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; |
| 46 | # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = isIntersecting)] |
| 47 | #[doc = "Getter for the `isIntersecting` field of this object." ] |
| 48 | #[doc = "" ] |
| 49 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/isIntersecting)" ] |
| 50 | #[doc = "" ] |
| 51 | #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*" ] |
| 52 | pub unsafefn is_intersecting(this: &IntersectionObserverEntry) -> bool; |
| 53 | # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRatio)] |
| 54 | #[doc = "Getter for the `intersectionRatio` field of this object." ] |
| 55 | #[doc = "" ] |
| 56 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRatio)" ] |
| 57 | #[doc = "" ] |
| 58 | #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*" ] |
| 59 | pub unsafefn intersection_ratio(this: &IntersectionObserverEntry) -> f64; |
| 60 | #[cfg (feature = "Element" )] |
| 61 | # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = target)] |
| 62 | #[doc = "Getter for the `target` field of this object." ] |
| 63 | #[doc = "" ] |
| 64 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/target)" ] |
| 65 | #[doc = "" ] |
| 66 | #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverEntry`*" ] |
| 67 | pub unsafefn target(this: &IntersectionObserverEntry) -> Element; |
| 68 | } |
| 69 | |