Struct conrod::mouse::Mouse [−] [src]

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

Represents the current state of the Mouse.

Fields

xy

Position of the mouse cursor.

left

Left mouse button state.

middle

Middle mouse button state.

right

Right mouse button state.

unknown

Unknown button state.

Methods

impl Mouse

fn new(xy: Point, left: ButtonState, middle: ButtonState, right: ButtonState) -> Mouse

Constructor for a Mouse struct.

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

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

Trait Implementations

Derived Implementations

impl Debug for Mouse

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

impl Clone for Mouse

fn clone(&self) -> Mouse

fn clone_from(&mut self, source: &Self)

impl Copy for Mouse