Skip to main content

web_sys/features/
gen_ResizeObserverEntry.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "ResizeObserverEntry",
10        typescript_type = "ResizeObserverEntry"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `ResizeObserverEntry` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"]
18    pub type ResizeObserverEntry;
19    #[cfg(feature = "Element")]
20    #[wasm_bindgen(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    pub fn target(this: &ResizeObserverEntry) -> Element;
27    #[cfg(feature = "DomRectReadOnly")]
28    #[wasm_bindgen(
29        method,
30        getter,
31        js_class = "ResizeObserverEntry",
32        js_name = "contentRect"
33    )]
34    #[doc = "Getter for the `contentRect` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `ResizeObserverEntry`*"]
39    pub fn content_rect(this: &ResizeObserverEntry) -> DomRectReadOnly;
40    #[wasm_bindgen(
41        method,
42        getter,
43        js_class = "ResizeObserverEntry",
44        js_name = "borderBoxSize"
45    )]
46    #[doc = "Getter for the `borderBoxSize` field of this object."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"]
51    pub fn border_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array;
52    #[wasm_bindgen(
53        method,
54        getter,
55        js_class = "ResizeObserverEntry",
56        js_name = "contentBoxSize"
57    )]
58    #[doc = "Getter for the `contentBoxSize` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"]
63    pub fn content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array;
64    #[wasm_bindgen(
65        method,
66        getter,
67        js_class = "ResizeObserverEntry",
68        js_name = "devicePixelContentBoxSize"
69    )]
70    #[doc = "Getter for the `devicePixelContentBoxSize` field of this object."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"]
75    pub fn device_pixel_content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array;
76}