Struct conrod::input::state::mouse::ButtonMap
[−]
[src]
pub struct ButtonMap { /* fields omitted */ }Stores the state of all mouse buttons.
If the mouse button is down, it stores the position of the mouse when the button was pressed
Methods
impl ButtonMap[src]
pub fn new() -> Self[src]
Returns a new button map with all states set to None
pub fn relative_to(self, xy: Point) -> Self[src]
Returns a copy of the ButtonMap relative to the given Point
pub fn left(&self) -> &ButtonPosition[src]
The state of the left mouse button.
pub fn middle(&self) -> &ButtonPosition[src]
The state of the middle mouse button.
pub fn right(&self) -> &ButtonPosition[src]
The state of the right mouse button.
pub fn press(&mut self, button: Button, xy: Point, widget: Option<Id>)[src]
Sets the Button in the Down position.
pub fn release(&mut self, button: Button)[src]
Set's the Button in the Up position.
ⓘImportant traits for PressedButtons<'a>pub fn pressed(&self) -> PressedButtons[src]
An iterator yielding all pressed mouse buttons along with the location at which they were originally pressed.
Trait Implementations
impl Copy for ButtonMap[src]
impl Clone for ButtonMap[src]
fn clone(&self) -> ButtonMap[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
impl Debug for ButtonMap[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for ButtonMap[src]
fn eq(&self, __arg_0: &ButtonMap) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ButtonMap) -> bool[src]
This method tests for !=.