Struct orbclient::event::ButtonEvent
source · pub struct ButtonEvent {
pub left: bool,
pub middle: bool,
pub right: bool,
}
Expand description
A event for clicking the mouse
Fields§
§left: bool
Was the left button pressed?
middle: bool
Was the middle button pressed?
right: bool
Was 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 copy 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 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