summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_DragEvent.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_DragEvent.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_DragEvent.rs')
-rw-r--r--vendor/web-sys/src/features/gen_DragEvent.rs326
1 files changed, 326 insertions, 0 deletions
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<DataTransfer>;
+ #[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<DragEvent, JsValue>;
+ #[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<DragEvent, JsValue>;
+ # [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>,
+ );
+}