maxcountryman_web_sys/features/
gen_ResizeObserverEntry.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[cfg(web_sys_unstable_apis)]
5#[wasm_bindgen]
6extern "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 #[doc = ""]
15 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
16 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
17 pub type ResizeObserverEntry;
18 #[cfg(web_sys_unstable_apis)]
19 #[cfg(feature = "Element")]
20 # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = target)]
21 #[doc = "Getter for the `target` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/target)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserverEntry`*"]
26 #[doc = ""]
27 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
29 pub fn target(this: &ResizeObserverEntry) -> Element;
30 #[cfg(web_sys_unstable_apis)]
31 #[cfg(feature = "DomRectReadOnly")]
32 # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentRect)]
33 #[doc = "Getter for the `contentRect` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `ResizeObserverEntry`*"]
38 #[doc = ""]
39 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
40 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
41 pub fn content_rect(this: &ResizeObserverEntry) -> DomRectReadOnly;
42 #[cfg(web_sys_unstable_apis)]
43 # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = borderBoxSize)]
44 #[doc = "Getter for the `borderBoxSize` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"]
49 #[doc = ""]
50 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
51 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
52 pub fn border_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array;
53 #[cfg(web_sys_unstable_apis)]
54 # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentBoxSize)]
55 #[doc = "Getter for the `contentBoxSize` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"]
60 #[doc = ""]
61 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
62 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
63 pub fn content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array;
64 #[cfg(web_sys_unstable_apis)]
65 # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = devicePixelContentBoxSize)]
66 #[doc = "Getter for the `devicePixelContentBoxSize` field of this object."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"]
71 #[doc = ""]
72 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
73 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
74 pub fn device_pixel_content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array;
75}