web_sys/features/
gen_VisualViewport.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VisualViewport , typescript_type = "VisualViewport")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `VisualViewport` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
14    pub type VisualViewport;
15    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = offsetLeft)]
16    #[doc = "Getter for the `offsetLeft` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/offsetLeft)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
21    pub fn offset_left(this: &VisualViewport) -> f64;
22    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = offsetTop)]
23    #[doc = "Getter for the `offsetTop` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/offsetTop)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
28    pub fn offset_top(this: &VisualViewport) -> f64;
29    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = pageLeft)]
30    #[doc = "Getter for the `pageLeft` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageLeft)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
35    pub fn page_left(this: &VisualViewport) -> f64;
36    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = pageTop)]
37    #[doc = "Getter for the `pageTop` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageTop)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
42    pub fn page_top(this: &VisualViewport) -> f64;
43    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = width)]
44    #[doc = "Getter for the `width` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/width)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
49    pub fn width(this: &VisualViewport) -> f64;
50    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = height)]
51    #[doc = "Getter for the `height` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/height)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
56    pub fn height(this: &VisualViewport) -> f64;
57    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = scale)]
58    #[doc = "Getter for the `scale` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/scale)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
63    pub fn scale(this: &VisualViewport) -> f64;
64    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = onresize)]
65    #[doc = "Getter for the `onresize` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onresize)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
70    pub fn onresize(this: &VisualViewport) -> Option<::js_sys::Function>;
71    # [wasm_bindgen (structural , method , setter , js_class = "VisualViewport" , js_name = onresize)]
72    #[doc = "Setter for the `onresize` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onresize)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
77    pub fn set_onresize(this: &VisualViewport, value: Option<&::js_sys::Function>);
78    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = onscroll)]
79    #[doc = "Getter for the `onscroll` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onscroll)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
84    pub fn onscroll(this: &VisualViewport) -> Option<::js_sys::Function>;
85    # [wasm_bindgen (structural , method , setter , js_class = "VisualViewport" , js_name = onscroll)]
86    #[doc = "Setter for the `onscroll` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onscroll)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
91    pub fn set_onscroll(this: &VisualViewport, value: Option<&::js_sys::Function>);
92    # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = onscrollend)]
93    #[doc = "Getter for the `onscrollend` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onscrollend)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
98    pub fn onscrollend(this: &VisualViewport) -> Option<::js_sys::Function>;
99    # [wasm_bindgen (structural , method , setter , js_class = "VisualViewport" , js_name = onscrollend)]
100    #[doc = "Setter for the `onscrollend` field of this object."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onscrollend)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"]
105    pub fn set_onscrollend(this: &VisualViewport, value: Option<&::js_sys::Function>);
106}