pub struct DispatchDragEventCommandBuilder { /* private fields */ }Available on crate features
Input and experimental only.Implementations§
Source§impl DispatchDragEventCommandBuilder
impl DispatchDragEventCommandBuilder
Sourcepub fn type(&mut self, v: DispatchDragEventCommandType) -> &mut Self
pub fn type(&mut self, v: DispatchDragEventCommandType) -> &mut Self
Type of the drag event.
Sourcepub fn x(&mut self, v: f64) -> &mut Self
pub fn x(&mut self, v: f64) -> &mut Self
X coordinate of the event relative to the main frame’s viewport in CSS pixels.
Sourcepub fn y(&mut self, v: f64) -> &mut Self
pub fn y(&mut self, v: f64) -> &mut Self
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(&mut self, v: JsonValue) -> &mut Self
Sourcepub fn modifiers(&mut self, v: u32) -> &mut Self
pub fn modifiers(&mut self, v: u32) -> &mut Self
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
pub fn build(&mut self) -> Result<DispatchDragEventCommand, &'static str>
Trait Implementations§
Source§impl Clone for DispatchDragEventCommandBuilder
impl Clone for DispatchDragEventCommandBuilder
Source§fn clone(&self) -> DispatchDragEventCommandBuilder
fn clone(&self) -> DispatchDragEventCommandBuilder
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 moreAuto Trait Implementations§
impl Freeze for DispatchDragEventCommandBuilder
impl RefUnwindSafe for DispatchDragEventCommandBuilder
impl Send for DispatchDragEventCommandBuilder
impl Sync for DispatchDragEventCommandBuilder
impl Unpin for DispatchDragEventCommandBuilder
impl UnwindSafe for DispatchDragEventCommandBuilder
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