pub struct DispatchDragEventParams {
pub event_type: DragEventType,
pub x: f64,
pub y: f64,
pub data: DragData,
pub modifiers: Option<i32>,
}Expand description
Parameters for Input.dispatchDragEvent.
Fields§
§event_type: DragEventTypeType of the drag event.
x: f64X coordinate of the event relative to the main frame’s viewport.
y: f64Y coordinate of the event relative to the main frame’s viewport.
data: DragDataDrag data.
modifiers: Option<i32>Bit field representing pressed modifier keys.
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
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