web_sys/features/
gen_UiEvent.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = UIEvent , typescript_type = "UIEvent")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `UiEvent` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub type UiEvent;
    #[cfg(feature = "Window")]
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = view)]
    #[doc = "Getter for the `view` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/view)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"]
    pub fn view(this: &UiEvent) -> Option<Window>;
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = detail)]
    #[doc = "Getter for the `detail` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn detail(this: &UiEvent) -> i32;
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = layerX)]
    #[doc = "Getter for the `layerX` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerX)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn layer_x(this: &UiEvent) -> i32;
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = layerY)]
    #[doc = "Getter for the `layerY` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerY)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn layer_y(this: &UiEvent) -> i32;
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = pageX)]
    #[doc = "Getter for the `pageX` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageX)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn page_x(this: &UiEvent) -> i32;
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = pageY)]
    #[doc = "Getter for the `pageY` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageY)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn page_y(this: &UiEvent) -> i32;
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = which)]
    #[doc = "Getter for the `which` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn which(this: &UiEvent) -> u32;
    #[cfg(feature = "Node")]
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = rangeParent)]
    #[doc = "Getter for the `rangeParent` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeParent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Node`, `UiEvent`*"]
    pub fn range_parent(this: &UiEvent) -> Option<Node>;
    # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = rangeOffset)]
    #[doc = "Getter for the `rangeOffset` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeOffset)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn range_offset(this: &UiEvent) -> i32;
    #[wasm_bindgen(catch, constructor, js_class = "UIEvent")]
    #[doc = "The `new UiEvent(..)` constructor, creating a new instance of `UiEvent`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/UIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn new(type_: &str) -> Result<UiEvent, JsValue>;
    #[cfg(feature = "UiEventInit")]
    #[wasm_bindgen(catch, constructor, js_class = "UIEvent")]
    #[doc = "The `new UiEvent(..)` constructor, creating a new instance of `UiEvent`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/UIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `UiEventInit`*"]
    pub fn new_with_event_init_dict(
        type_: &str,
        event_init_dict: &UiEventInit,
    ) -> Result<UiEvent, JsValue>;
    # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)]
    #[doc = "The `initUIEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn init_ui_event(this: &UiEvent, a_type: &str);
    # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)]
    #[doc = "The `initUIEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn init_ui_event_with_a_can_bubble(this: &UiEvent, a_type: &str, a_can_bubble: bool);
    # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)]
    #[doc = "The `initUIEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub fn init_ui_event_with_a_can_bubble_and_a_cancelable(
        this: &UiEvent,
        a_type: &str,
        a_can_bubble: bool,
        a_cancelable: bool,
    );
    #[cfg(feature = "Window")]
    # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)]
    #[doc = "The `initUIEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"]
    pub fn init_ui_event_with_a_can_bubble_and_a_cancelable_and_a_view(
        this: &UiEvent,
        a_type: &str,
        a_can_bubble: bool,
        a_cancelable: bool,
        a_view: Option<&Window>,
    );
    #[cfg(feature = "Window")]
    # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)]
    #[doc = "The `initUIEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"]
    pub fn init_ui_event_with_a_can_bubble_and_a_cancelable_and_a_view_and_a_detail(
        this: &UiEvent,
        a_type: &str,
        a_can_bubble: bool,
        a_cancelable: bool,
        a_view: Option<&Window>,
        a_detail: i32,
    );
}
impl UiEvent {
    #[doc = "The `UIEvent.SCROLL_PAGE_UP` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub const SCROLL_PAGE_UP: i32 = -32768i64 as i32;
    #[doc = "The `UIEvent.SCROLL_PAGE_DOWN` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"]
    pub const SCROLL_PAGE_DOWN: i32 = 32768u64 as i32;
}