Struct uni_app::events::MouseButtonEvent
source · [−]pub struct MouseButtonEvent {
pub button: usize,
}Expand description
data associated with a mouse button press/release event
Fields
the button number (0=left, 1=middle, 2=right, …)
Trait Implementations
sourceimpl Clone for MouseButtonEvent
impl Clone for MouseButtonEvent
sourcefn clone(&self) -> MouseButtonEvent
fn clone(&self) -> MouseButtonEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for MouseButtonEvent
impl Send for MouseButtonEvent
impl Sync for MouseButtonEvent
impl Unpin for MouseButtonEvent
impl UnwindSafe for MouseButtonEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more