Enum piston_window::Touch
pub enum Touch {
Start,
Move,
End,
Cancel,
}
Expand description
Stores the touch state.
Variants
Start
The start of touch, for example a finger pressed down on a touch screen.
Move
The move of touch, for example a finger moving while touching a touch screen.
End
The end of touch, for example taking a finger away from a touch screen.
Cancel
The cancel of touch, for example the window loses focus.
Trait Implementations
impl<'de> Deserialize<'de> for Touch
impl<'de> Deserialize<'de> for Touch
fn deserialize<__D>(
__deserializer: __D
) -> Result<Touch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Touch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Ord for Touch
impl Ord for Touch
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<Touch> for Touch
impl PartialOrd<Touch> for Touch
impl Serialize for Touch
impl Serialize for Touch
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Touch
impl Eq for Touch
impl StructuralEq for Touch
impl StructuralPartialEq for Touch
Auto Trait Implementations
impl RefUnwindSafe for Touch
impl Send for Touch
impl Sync for Touch
impl Unpin for Touch
impl UnwindSafe for Touch
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