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