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§
Trait Implementations§
Source§impl Clone for DispatchDragEventParams
impl Clone for DispatchDragEventParams
Source§fn clone(&self) -> DispatchDragEventParams
fn clone(&self) -> DispatchDragEventParams
Returns a duplicate 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 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DispatchDragEventParams
impl PartialEq for DispatchDragEventParams
Source§impl Serialize for DispatchDragEventParams
impl Serialize for DispatchDragEventParams
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 UnsafeUnpin 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