pub struct DispatchDragEventParams {
pub type: DispatchDragEventType,
pub x: f64,
pub y: f64,
pub data: DragData,
pub modifiers: Option<i64>,
}Expand description
Dispatches a drag event into the page. dispatchDragEvent
Fields§
§type: DispatchDragEventTypeType of the drag event.
x: f64X coordinate of the event relative to the main frame’s viewport in CSS pixels.
y: f64Y coordinate of the event relative to the main frame’s viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
data: DragData§modifiers: Option<i64>Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Implementations§
Source§impl DispatchDragEventParams
impl DispatchDragEventParams
pub const IDENTIFIER: &'static str = "Input.dispatchDragEvent"
Trait Implementations§
Source§impl Clone for DispatchDragEventParams
impl Clone for DispatchDragEventParams
Source§fn clone(&self) -> DispatchDragEventParams
fn clone(&self) -> DispatchDragEventParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for DispatchDragEventParams
impl Command for DispatchDragEventParams
Source§impl Debug for DispatchDragEventParams
impl Debug for DispatchDragEventParams
Source§impl<'de> Deserialize<'de> for DispatchDragEventParams
impl<'de> Deserialize<'de> for DispatchDragEventParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchDragEventParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchDragEventParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for DispatchDragEventParams
impl Method for DispatchDragEventParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeSource§impl MethodType for DispatchDragEventParams
impl MethodType for DispatchDragEventParams
Source§impl PartialEq for DispatchDragEventParams
impl PartialEq for DispatchDragEventParams
Source§impl Serialize for DispatchDragEventParams
impl Serialize for DispatchDragEventParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DispatchDragEventParams
Auto Trait Implementations§
impl Freeze for DispatchDragEventParams
impl RefUnwindSafe for DispatchDragEventParams
impl Send for DispatchDragEventParams
impl Sync for DispatchDragEventParams
impl Unpin for DispatchDragEventParams
impl UnwindSafe for DispatchDragEventParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more