Enum yy_typings::object_yy::MouseEvent
source · [−]pub enum MouseEvent {
Down(MouseButton),
Pressed(MouseButton),
Released(MouseButton),
NoInput,
MouseEnter,
MouseExit,
MouseWheelUp,
MouseWheelDown,
}
Variants
Down(MouseButton)
Pressed(MouseButton)
Released(MouseButton)
NoInput
MouseEnter
MouseExit
MouseWheelUp
MouseWheelDown
Implementations
sourceimpl MouseEvent
impl MouseEvent
pub const DOWN_OFFSET: usize = 0usize
pub const PRESSED_OFFSET: usize = 4usize
pub const RELEASED_OFFSET: usize = 7usize
sourcepub fn convert_to_input(value: usize) -> Option<MouseEvent>
pub fn convert_to_input(value: usize) -> Option<MouseEvent>
Tries to convert an event_num
to a MouseEvent. This is for internal
usage, but is made public to attempt to be a 100% pub facing crate.
Trait Implementations
sourceimpl Clone for MouseEvent
impl Clone for MouseEvent
sourcefn clone(&self) -> MouseEvent
fn clone(&self) -> MouseEvent
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 more
sourceimpl Debug for MouseEvent
impl Debug for MouseEvent
sourceimpl Default for MouseEvent
impl Default for MouseEvent
sourceimpl Display for MouseEvent
impl Display for MouseEvent
sourceimpl Hash for MouseEvent
impl Hash for MouseEvent
sourceimpl Ord for MouseEvent
impl Ord for MouseEvent
sourcefn cmp(&self, other: &MouseEvent) -> Ordering
fn cmp(&self, other: &MouseEvent) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MouseEvent> for MouseEvent
impl PartialEq<MouseEvent> for MouseEvent
sourcefn eq(&self, other: &MouseEvent) -> bool
fn eq(&self, other: &MouseEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<MouseEvent> for MouseEvent
impl PartialOrd<MouseEvent> for MouseEvent
sourcefn partial_cmp(&self, other: &MouseEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &MouseEvent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for MouseEvent
impl Eq for MouseEvent
impl StructuralEq for MouseEvent
impl StructuralPartialEq for MouseEvent
Auto Trait Implementations
impl RefUnwindSafe for MouseEvent
impl Send for MouseEvent
impl Sync for MouseEvent
impl Unpin for MouseEvent
impl UnwindSafe for MouseEvent
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