web_sys/features/
gen_ScrollAreaEvent.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = ScrollAreaEvent , typescript_type = "ScrollAreaEvent")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `ScrollAreaEvent` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
14    pub type ScrollAreaEvent;
15    # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = x)]
16    #[doc = "Getter for the `x` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/x)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
21    pub fn x(this: &ScrollAreaEvent) -> f32;
22    # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = y)]
23    #[doc = "Getter for the `y` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/y)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
28    pub fn y(this: &ScrollAreaEvent) -> f32;
29    # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = width)]
30    #[doc = "Getter for the `width` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/width)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
35    pub fn width(this: &ScrollAreaEvent) -> f32;
36    # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = height)]
37    #[doc = "Getter for the `height` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/height)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
42    pub fn height(this: &ScrollAreaEvent) -> f32;
43    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
44    #[doc = "The `initScrollAreaEvent()` method."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
49    pub fn init_scroll_area_event(this: &ScrollAreaEvent, type_: &str);
50    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
51    #[doc = "The `initScrollAreaEvent()` method."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
56    pub fn init_scroll_area_event_with_can_bubble(
57        this: &ScrollAreaEvent,
58        type_: &str,
59        can_bubble: bool,
60    );
61    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
62    #[doc = "The `initScrollAreaEvent()` method."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
67    pub fn init_scroll_area_event_with_can_bubble_and_cancelable(
68        this: &ScrollAreaEvent,
69        type_: &str,
70        can_bubble: bool,
71        cancelable: bool,
72    );
73    #[cfg(feature = "Window")]
74    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
75    #[doc = "The `initScrollAreaEvent()` method."]
76    #[doc = ""]
77    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
80    pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view(
81        this: &ScrollAreaEvent,
82        type_: &str,
83        can_bubble: bool,
84        cancelable: bool,
85        view: Option<&Window>,
86    );
87    #[cfg(feature = "Window")]
88    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
89    #[doc = "The `initScrollAreaEvent()` method."]
90    #[doc = ""]
91    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
94    pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail(
95        this: &ScrollAreaEvent,
96        type_: &str,
97        can_bubble: bool,
98        cancelable: bool,
99        view: Option<&Window>,
100        detail: i32,
101    );
102    #[cfg(feature = "Window")]
103    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
104    #[doc = "The `initScrollAreaEvent()` method."]
105    #[doc = ""]
106    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
107    #[doc = ""]
108    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
109    pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x(
110        this: &ScrollAreaEvent,
111        type_: &str,
112        can_bubble: bool,
113        cancelable: bool,
114        view: Option<&Window>,
115        detail: i32,
116        x: f32,
117    );
118    #[cfg(feature = "Window")]
119    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
120    #[doc = "The `initScrollAreaEvent()` method."]
121    #[doc = ""]
122    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
123    #[doc = ""]
124    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
125    pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y(
126        this: &ScrollAreaEvent,
127        type_: &str,
128        can_bubble: bool,
129        cancelable: bool,
130        view: Option<&Window>,
131        detail: i32,
132        x: f32,
133        y: f32,
134    );
135    #[cfg(feature = "Window")]
136    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
137    #[doc = "The `initScrollAreaEvent()` method."]
138    #[doc = ""]
139    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
140    #[doc = ""]
141    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
142    pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width(
143        this: &ScrollAreaEvent,
144        type_: &str,
145        can_bubble: bool,
146        cancelable: bool,
147        view: Option<&Window>,
148        detail: i32,
149        x: f32,
150        y: f32,
151        width: f32,
152    );
153    #[cfg(feature = "Window")]
154    # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)]
155    #[doc = "The `initScrollAreaEvent()` method."]
156    #[doc = ""]
157    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
158    #[doc = ""]
159    #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
160    pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width_and_height(
161        this: &ScrollAreaEvent,
162        type_: &str,
163        can_bubble: bool,
164        cancelable: bool,
165        view: Option<&Window>,
166        detail: i32,
167        x: f32,
168        y: f32,
169        width: f32,
170        height: f32,
171    );
172}