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.
Experimental: may change without notice.
Parameters of Input.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).
Trait Implementations§
Source§impl Clone for DispatchDragEventParams
impl Clone for DispatchDragEventParams
Source§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<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 Forget for DispatchDragEventParams
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