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.