pub struct ButtonEvent {
pub left: bool,
pub middle: bool,
pub right: bool,
}Expand description
A event for clicking the mouse
Fields§
§left: boolWas the left button pressed?
middle: boolWas the middle button pressed?
right: boolWas the right button pressed?
Implementations§
Source§impl ButtonEvent
impl ButtonEvent
Sourcepub fn from_event(event: Event) -> ButtonEvent
pub fn from_event(event: Event) -> ButtonEvent
Convert an Event to a ButtonEvent
Trait Implementations§
Source§impl Clone for ButtonEvent
impl Clone for ButtonEvent
Source§fn clone(&self) -> ButtonEvent
fn clone(&self) -> ButtonEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtonEvent
impl Debug for ButtonEvent
impl Copy for ButtonEvent
Auto Trait Implementations§
impl Freeze for ButtonEvent
impl RefUnwindSafe for ButtonEvent
impl Send for ButtonEvent
impl Sync for ButtonEvent
impl Unpin for ButtonEvent
impl UnwindSafe for ButtonEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more