Struct conrod::MouseButtonState
[−]
[src]
pub struct MouseButtonState { pub was_just_pressed: bool, pub was_just_released: bool, pub position: ButtonPosition, }
The current state of a Mouse button.
Fields
was_just_pressed: bool
The button has been pressed since the last update.
was_just_released: bool
The button has been released since the last update.
position: ButtonPosition
The current position of the button.
Methods
impl ButtonState
[src]
fn new() -> ButtonState
Constructor for a default ButtonState.
fn reset_pressed_and_released(&mut self)
Reset the was_just_released
and was_just_pressed
flags.
Trait Implementations
impl Debug for ButtonState
[src]
impl Clone for ButtonState
[src]
fn clone(&self) -> ButtonState
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