Enum TouchState
#[repr(i32)]pub enum TouchState {
Begin = 0,
Update = 1,
End = 2,
}Expand description
Indicates the states of touch events.
Variants§
Begin = 0
The first finger is down.
Update = 1
A gesture or a touch event is in progress.
End = 2
The last finger is up.
Implementations§
§impl TouchState
impl TouchState
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> TouchState
Trait Implementations§
§impl Clone for TouchState
impl Clone for TouchState
§fn clone(&self) -> TouchState
fn clone(&self) -> TouchState
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 more§impl Debug for TouchState
impl Debug for TouchState
§impl Display for TouchState
impl Display for TouchState
§impl PartialEq for TouchState
impl PartialEq for TouchState
§impl VariantConstraint for TouchState
impl VariantConstraint for TouchState
§type DataArg<'a> = TouchState
type DataArg<'a> = TouchState
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = TouchState
type RetArg = TouchState
§fn as_arg(&self) -> <TouchState as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <TouchState as VariantConstraint>::DataArg<'_>
impl Copy for TouchState
impl Eq for TouchState
impl PropertyTypeConstraint for TouchState
impl StructuralPartialEq for TouchState
Auto Trait Implementations§
impl Freeze for TouchState
impl RefUnwindSafe for TouchState
impl Send for TouchState
impl Sync for TouchState
impl Unpin for TouchState
impl UnwindSafe for TouchState
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