Struct conrod::Mouse [] [src]

pub struct Mouse {
    pub xy: Point,
    pub left: ButtonState,
    pub middle: ButtonState,
    pub right: ButtonState,
    pub unknown: ButtonState,
    pub scroll: Scroll,
}

Represents the current state of the Mouse.

Fields

xy: Point

Position of the mouse cursor.

left: ButtonState

Left mouse button state.

middle: ButtonState

Middle mouse button state.

right: ButtonState

Right mouse button state.

unknown: ButtonState

Unknown button state.

scroll: Scroll

Amount that the mouse has scrolled since the last render.

Methods

impl Mouse
[src]

fn new() -> Mouse

Constructor for a default Mouse struct.

fn relative_to(self, xy: Point) -> Mouse

Return the mouse state with its position relative to the given position.

Trait Implementations

impl Debug for Mouse
[src]

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

Formats the value using the given formatter.

impl Clone for Mouse
[src]

fn clone(&self) -> Mouse

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 Copy for Mouse
[src]