web_sys/features/
gen_VisualViewport.rs

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