pub struct DispatchDragEventParams<'a> { /* private fields */ }Expand description
Dispatches a drag event into the page.
Implementations§
Source§impl<'a> DispatchDragEventParams<'a>
impl<'a> DispatchDragEventParams<'a>
Sourcepub fn builder(
type_: impl Into<Cow<'a, str>>,
x: f64,
y: f64,
data: DragData<'a>,
) -> DispatchDragEventParamsBuilder<'a>
pub fn builder( type_: impl Into<Cow<'a, str>>, x: f64, y: f64, data: DragData<'a>, ) -> DispatchDragEventParamsBuilder<'a>
Creates a builder for this type with the required parameters:
type_: Type of the drag event.x: X coordinate of the event relative to the main frame’s viewport in CSS pixels.y: 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.data:
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) -> &DragData<'a>
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for DispatchDragEventParams<'a>
impl<'a> CdpCommand<'a> for DispatchDragEventParams<'a>
Source§impl<'a> Clone for DispatchDragEventParams<'a>
impl<'a> Clone for DispatchDragEventParams<'a>
Source§fn clone(&self) -> DispatchDragEventParams<'a>
fn clone(&self) -> DispatchDragEventParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DispatchDragEventParams<'a>
impl<'a> Debug for DispatchDragEventParams<'a>
Source§impl<'a> Default for DispatchDragEventParams<'a>
impl<'a> Default for DispatchDragEventParams<'a>
Source§fn default() -> DispatchDragEventParams<'a>
fn default() -> DispatchDragEventParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DispatchDragEventParams<'a>
impl<'de, 'a> Deserialize<'de> for DispatchDragEventParams<'a>
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<'a> Freeze for DispatchDragEventParams<'a>
impl<'a> RefUnwindSafe for DispatchDragEventParams<'a>
impl<'a> Send for DispatchDragEventParams<'a>
impl<'a> Sync for DispatchDragEventParams<'a>
impl<'a> Unpin for DispatchDragEventParams<'a>
impl<'a> UnsafeUnpin for DispatchDragEventParams<'a>
impl<'a> UnwindSafe for DispatchDragEventParams<'a>
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