Struct yy_typings::object_yy::GestureEvent
source · [−]Fields
gesture: Gesture
The type of gesture used.
local: bool
Whether the input is a “global” input, or a “local” input. In the Gms2 IDE, these are separated into different categories. “Local” events only file when the object itself is clicked on, while “global” can be fire whenever the input is held at all.
Implementations
sourceimpl GestureEvent
impl GestureEvent
sourcepub const GLOBAL_OFFSET: usize
pub const GLOBAL_OFFSET: usize
The offset for the event_num
if this gesture is a global. We use this
number internally for serialization/deserialization.
sourcepub fn convert_to_input(value: usize) -> Option<GestureEvent>
pub fn convert_to_input(value: usize) -> Option<GestureEvent>
Converts an event_num
, if possible, into a Gesture.
Trait Implementations
sourceimpl Clone for GestureEvent
impl Clone for GestureEvent
sourcefn clone(&self) -> GestureEvent
fn clone(&self) -> GestureEvent
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 GestureEvent
impl Debug for GestureEvent
sourceimpl Default for GestureEvent
impl Default for GestureEvent
sourceimpl Display for GestureEvent
impl Display for GestureEvent
sourceimpl Hash for GestureEvent
impl Hash for GestureEvent
sourceimpl Ord for GestureEvent
impl Ord for GestureEvent
sourceimpl PartialEq<GestureEvent> for GestureEvent
impl PartialEq<GestureEvent> for GestureEvent
sourcefn eq(&self, other: &GestureEvent) -> bool
fn eq(&self, other: &GestureEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GestureEvent) -> bool
fn ne(&self, other: &GestureEvent) -> bool
This method tests for !=
.
sourceimpl PartialOrd<GestureEvent> for GestureEvent
impl PartialOrd<GestureEvent> for GestureEvent
sourcefn partial_cmp(&self, other: &GestureEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &GestureEvent) -> 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 GestureEvent
impl Eq for GestureEvent
impl StructuralEq for GestureEvent
impl StructuralPartialEq for GestureEvent
Auto Trait Implementations
impl RefUnwindSafe for GestureEvent
impl Send for GestureEvent
impl Sync for GestureEvent
impl Unpin for GestureEvent
impl UnwindSafe for GestureEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more