#[repr(transparent)]pub struct DragEvent { /* private fields */ }
Expand description
The DragEvent
object
This API requires the following crate features to be activated: DragEvent
Implementations§
source§impl DragEvent
impl DragEvent
sourcepub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &DragEventInit
) -> Result<DragEvent, JsValue>
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &DragEventInit
) -> Result<DragEvent, JsValue>
The new DragEvent(..)
constructor, creating a new instance of DragEvent
This API requires the following crate features to be activated: DragEvent
, DragEventInit
source§impl DragEvent
impl DragEvent
sourcepub fn init_drag_event(&self, type_: &str)
pub fn init_drag_event(&self, type_: &str)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
source§impl DragEvent
impl DragEvent
sourcepub fn init_drag_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
pub fn init_drag_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
source§impl DragEvent
impl DragEvent
sourcepub fn init_drag_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
pub fn init_drag_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
source§impl DragEvent
impl DragEvent
source§impl DragEvent
impl DragEvent
source§impl DragEvent
impl DragEvent
sourcepub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
a_view: Option<&Window>,
a_detail: i32,
a_screen_x: i32
)
pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
a_view: Option<&Window>,
a_detail: i32,
a_screen_x: i32
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
sourcepub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
a_view: Option<&Window>,
a_detail: i32,
a_screen_x: i32,
a_screen_y: i32
)
pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
a_view: Option<&Window>,
a_detail: i32,
a_screen_x: i32,
a_screen_y: i32
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
sourcepub 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(
&self,
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
)
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(
&self,
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
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
sourcepub 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(
&self,
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
)
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(
&self,
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
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
sourcepub 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(
&self,
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
)
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(
&self,
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
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
sourcepub 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(
&self,
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
)
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(
&self,
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
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
sourcepub 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(
&self,
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
)
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(
&self,
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
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
sourcepub 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(
&self,
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
)
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(
&self,
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
)
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, Window
source§impl DragEvent
impl DragEvent
The initDragEvent()
method
This API requires the following crate features to be activated: DragEvent
, EventTarget
, Window
source§impl DragEvent
impl DragEvent
The initDragEvent()
method
This API requires the following crate features to be activated: DataTransfer
, DragEvent
, EventTarget
, Window
source§impl DragEvent
impl DragEvent
sourcepub fn data_transfer(&self) -> Option<DataTransfer>
pub fn data_transfer(&self) -> Option<DataTransfer>
The dataTransfer
getter
This API requires the following crate features to be activated: DataTransfer
, DragEvent
Trait Implementations§
source§impl AsRef<MouseEvent> for DragEvent
impl AsRef<MouseEvent> for DragEvent
source§fn as_ref(&self) -> &MouseEvent
fn as_ref(&self) -> &MouseEvent
source§impl From<DragEvent> for MouseEvent
impl From<DragEvent> for MouseEvent
source§fn from(obj: DragEvent) -> MouseEvent
fn from(obj: DragEvent) -> MouseEvent
source§impl FromWasmAbi for DragEvent
impl FromWasmAbi for DragEvent
source§impl<'a> IntoWasmAbi for &'a DragEvent
impl<'a> IntoWasmAbi for &'a DragEvent
source§impl IntoWasmAbi for DragEvent
impl IntoWasmAbi for DragEvent
source§impl JsCast for DragEvent
impl JsCast for DragEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for DragEvent
impl OptionFromWasmAbi for DragEvent
source§impl<'a> OptionIntoWasmAbi for &'a DragEvent
impl<'a> OptionIntoWasmAbi for &'a DragEvent
source§impl OptionIntoWasmAbi for DragEvent
impl OptionIntoWasmAbi for DragEvent
source§impl RefFromWasmAbi for DragEvent
impl RefFromWasmAbi for DragEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<DragEvent>
type Anchor = ManuallyDrop<DragEvent>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DragEvent
impl !Send for DragEvent
impl !Sync for DragEvent
impl Unpin for DragEvent
impl UnwindSafe for DragEvent
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more