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

buttons: &'a ButtonMap

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> Debug for Mouse<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl<'a> Copy for Mouse<'a>
[src]