Struct nannou::ui::input::widget::Mouse [−][src]
pub struct Mouse<'a> { pub buttons: &'a ButtonMap, // some fields omitted }
A view of the input::state::Mouse
that is specific to a single widget.
Fields
The state of each MouseButton
.
Methods
impl<'a> Mouse<'a>
[src]
impl<'a> Mouse<'a>
pub fn abs_xy(&self) -> [f64; 2]
[src]
pub fn abs_xy(&self) -> [f64; 2]
The absolute position of the mouse within the window.
pub fn rel_xy(&self) -> [f64; 2]
[src]
pub fn rel_xy(&self) -> [f64; 2]
The position of the mouse relative to the middle of the widget's Rect
.
pub fn is_over(&self) -> bool
[src]
pub fn is_over(&self) -> bool
Is the mouse currently over the widget.
Trait Implementations
impl<'a> Clone for Mouse<'a>
[src]
impl<'a> Clone for Mouse<'a>
fn clone(&self) -> Mouse<'a>
[src]
fn clone(&self) -> Mouse<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Mouse<'a>
[src]
impl<'a> Debug for Mouse<'a>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a> Copy for Mouse<'a>
[src]
impl<'a> Copy for Mouse<'a>