pub fn move_mouse(p: impl Into<Point>) -> MouseEvent {
    let pos = p.into();
    MouseEvent {
        pos,
        window_pos: pos,
        buttons: MouseButtons::default(),
        mods: Modifiers::default(),
        count: 0,
        focus: false,
        button: MouseButton::None,
        wheel_delta: Vec2::ZERO,
    }
}
/// Helper function to construct a "move to this position" mouse event.
Helper function to construct a "move to this position" mouse event.
Helper function to construct a " move to this position " mouse event .
pub fn move_mouse(p: impl Into<Point>) -> MouseEvent {
    let pos = p.into();
    MouseEvent {
        pos,
        window_pos: pos,
        buttons: MouseButtons::default(),
        mods: Modifiers::default(),
        count: 0,
        focus: false,
        button: MouseButton::None,
        wheel_delta: Vec2::ZERO,
    }
}
pub fn move_mouse ( p : impl Into < Point > ) -> MouseEvent { let pos = p . into ( ) ; MouseEvent { pos , window_pos : pos , buttons : MouseButtons :: default ( ) , mods : Modifiers :: default ( ) , count : 0 , focus : false , button : MouseButton :: None , wheel_delta : Vec2 :: ZERO , } }
Helper function to construct a "move to this position" mouse event.
Helper function to construct a " move to this position " mouse event .
p
impl Into<Point>
p
impl Into<Point>