pub struct DispatchDragEventCommand { /* private fields */ }Available on crate features
Input and experimental only.Expand description
Dispatches a drag event into the page.
Implementations§
Source§impl DispatchDragEventCommand
impl DispatchDragEventCommand
pub fn builder() -> DispatchDragEventCommandBuilder
Sourcepub fn type(&self) -> &DispatchDragEventCommandType
pub fn type(&self) -> &DispatchDragEventCommandType
Type of the drag event.
Sourcepub fn x(&self) -> f64
pub fn x(&self) -> f64
X coordinate of the event relative to the main frame’s viewport in CSS pixels.
Sourcepub fn y(&self) -> f64
pub fn y(&self) -> f64
Y 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.
pub fn data(&self) -> &JsonValue
Trait Implementations§
Source§impl Clone for DispatchDragEventCommand
impl Clone for DispatchDragEventCommand
Source§fn clone(&self) -> DispatchDragEventCommand
fn clone(&self) -> DispatchDragEventCommand
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 Command for DispatchDragEventCommand
impl Command for DispatchDragEventCommand
Source§impl Debug for DispatchDragEventCommand
impl Debug for DispatchDragEventCommand
Source§impl<'de> Deserialize<'de> for DispatchDragEventCommand
impl<'de> Deserialize<'de> for DispatchDragEventCommand
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
Auto Trait Implementations§
impl Freeze for DispatchDragEventCommand
impl RefUnwindSafe for DispatchDragEventCommand
impl Send for DispatchDragEventCommand
impl Sync for DispatchDragEventCommand
impl Unpin for DispatchDragEventCommand
impl UnwindSafe for DispatchDragEventCommand
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