pub struct DispatchMouseWheelParams {
pub event_type: MouseEventType,
pub x: f64,
pub y: f64,
pub delta_x: f64,
pub delta_y: f64,
pub modifiers: Option<i32>,
pub pointer_type: Option<String>,
}Expand description
Parameters for Input.dispatchMouseEvent with wheel.
Fields§
§event_type: MouseEventTypeType of the mouse 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.
delta_x: f64X delta in CSS pixels for mouse wheel event.
delta_y: f64Y delta in CSS pixels for mouse wheel event.
modifiers: Option<i32>Bit field representing pressed modifier keys.
pointer_type: Option<String>Pointer type (default “mouse”).
Trait Implementations§
Source§impl Clone for DispatchMouseWheelParams
impl Clone for DispatchMouseWheelParams
Source§fn clone(&self) -> DispatchMouseWheelParams
fn clone(&self) -> DispatchMouseWheelParams
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 DispatchMouseWheelParams
impl Debug for DispatchMouseWheelParams
Auto Trait Implementations§
impl Freeze for DispatchMouseWheelParams
impl RefUnwindSafe for DispatchMouseWheelParams
impl Send for DispatchMouseWheelParams
impl Sync for DispatchMouseWheelParams
impl Unpin for DispatchMouseWheelParams
impl UnwindSafe for DispatchMouseWheelParams
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