Enum TouchPointState
#[repr(i32)]pub enum TouchPointState {
Undefined = -1,
Pressed = 0,
Stationary = 1,
Moved = 2,
Released = 3,
}Expand description
Indicates the states of a touch point.
Variants§
Undefined = -1
The touch point state is undefined.
Pressed = 0
The touch point was created by touching the screen.
Stationary = 1
The touch point did not move since the last report.
Moved = 2
The touch point moved since the last report.
Released = 3
The touch point was released.
Implementations§
§impl TouchPointState
impl TouchPointState
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> TouchPointState
Trait Implementations§
§impl Clone for TouchPointState
impl Clone for TouchPointState
§fn clone(&self) -> TouchPointState
fn clone(&self) -> TouchPointState
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 TouchPointState
impl Debug for TouchPointState
§impl Display for TouchPointState
impl Display for TouchPointState
§impl PartialEq for TouchPointState
impl PartialEq for TouchPointState
§impl VariantConstraint for TouchPointState
impl VariantConstraint for TouchPointState
§type DataArg<'a> = TouchPointState
type DataArg<'a> = TouchPointState
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 = TouchPointState
type RetArg = TouchPointState
§fn as_arg(&self) -> <TouchPointState as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <TouchPointState as VariantConstraint>::DataArg<'_>
impl Copy for TouchPointState
impl Eq for TouchPointState
impl PropertyTypeConstraint for TouchPointState
impl StructuralPartialEq for TouchPointState
Auto Trait Implementations§
impl Freeze for TouchPointState
impl RefUnwindSafe for TouchPointState
impl Send for TouchPointState
impl Sync for TouchPointState
impl Unpin for TouchPointState
impl UnwindSafe for TouchPointState
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