pub struct InputMouse {
pub state: InputMouseState,
pub modifiers: InputKeyMod,
pub position: Point,
pub scroll: Point,
}Expand description
Mouse input.
Fields§
§state: InputMouseStateThe state of the mouse.Up/Down, Left/Right, etc.
modifiers: InputKeyModAny keyboard modifiers that are held down.
position: PointPosition of the mouse in the viewport.
scroll: PointScroll delta.
Trait Implementations§
Source§impl Clone for InputMouse
impl Clone for InputMouse
Source§fn clone(&self) -> InputMouse
fn clone(&self) -> InputMouse
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 moreimpl Copy for InputMouse
Auto Trait Implementations§
impl Freeze for InputMouse
impl RefUnwindSafe for InputMouse
impl Send for InputMouse
impl Sync for InputMouse
impl Unpin for InputMouse
impl UnwindSafe for InputMouse
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