From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/web-sys/src/features/gen_DragEvent.rs | 326 +++++++++++++++++++++++++++ 1 file changed, 326 insertions(+) create mode 100644 vendor/web-sys/src/features/gen_DragEvent.rs (limited to 'vendor/web-sys/src/features/gen_DragEvent.rs') diff --git a/vendor/web-sys/src/features/gen_DragEvent.rs b/vendor/web-sys/src/features/gen_DragEvent.rs new file mode 100644 index 000000000..fc18b1ee5 --- /dev/null +++ b/vendor/web-sys/src/features/gen_DragEvent.rs @@ -0,0 +1,326 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = DragEvent , typescript_type = "DragEvent")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DragEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub type DragEvent; + #[cfg(feature = "DataTransfer")] + # [wasm_bindgen (structural , method , getter , js_class = "DragEvent" , js_name = dataTransfer)] + #[doc = "Getter for the `dataTransfer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/dataTransfer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEvent`*"] + pub fn data_transfer(this: &DragEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "DragEvent")] + #[doc = "The `new DragEvent(..)` constructor, creating a new instance of `DragEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "DragEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "DragEvent")] + #[doc = "The `new DragEvent(..)` constructor, creating a new instance of `DragEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `DragEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &DragEventInit, + ) -> Result; + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn init_drag_event(this: &DragEvent, type_: &str); + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn init_drag_event_with_can_bubble(this: &DragEvent, type_: &str, can_bubble: bool); + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + ); + #[cfg(feature = "Window")] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + a_button: u16, + ); + #[cfg(all(feature = "EventTarget", feature = "Window",))] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `EventTarget`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button_and_a_related_target( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + a_button: u16, + a_related_target: Option<&EventTarget>, + ); + #[cfg(all(feature = "DataTransfer", feature = "EventTarget", feature = "Window",))] + # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEvent`, `EventTarget`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button_and_a_related_target_and_a_data_transfer( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + a_button: u16, + a_related_target: Option<&EventTarget>, + a_data_transfer: Option<&DataTransfer>, + ); +} -- cgit v1.2.3