Struct conrod::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]
fn abs_xy(&self) -> Point
The absolute position of the mouse within the window.
fn rel_xy(&self) -> Point
The position of the mouse relative to the middle of the widget's Rect
.
fn is_over(&self) -> bool
Is the mouse currently over the widget.
Trait Implementations
impl<'a> Copy for Mouse<'a>
[src]
impl<'a> Clone for 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
Performs copy-assignment from source
. Read more