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]
pub fn abs_xy(&self) -> Point[src]
The absolute position of the mouse within the window.
pub fn rel_xy(&self) -> Point[src]
The position of the mouse relative to the middle of the widget's Rect.
pub fn is_over(&self) -> bool[src]
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>[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