Struct nannou::state::mouse::Mouse
[−]
[src]
pub struct Mouse { pub window: Option<Id>, pub x: f64, pub y: f64, pub buttons: ButtonMap, }
The state of the Mouse
at a single moment in time.
Fields
window: Option<Id>
The ID of the last window currently in focus.
x: f64
x position relative to the middle of window
.
y: f64
y position relative to the middle of window
.
A map describing the state of each mouse button.
Methods
impl Mouse
[src]
fn new() -> Self
[src]
Construct a new default Mouse
.
fn position(&self) -> Point2<f64>
[src]
The position of the mouse relative to the middle of the window in focus..
Trait Implementations
impl Copy for Mouse
[src]
impl Clone for Mouse
[src]
fn clone(&self) -> Mouse
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more