Enum egui::TouchPhase
source · pub enum TouchPhase {
Start,
Move,
End,
Cancel,
}
Expand description
In what phase a touch event is in.
Variants§
Start
User just placed a touch point on the touch surface
Move
User moves a touch point along the surface. This event is also sent when any attributes (position, force, …) of the touch point change.
End
User lifted the finger or pen from the surface, or slid off the edge of the surface
Cancel
Touch operation has been disrupted by something (various reasons are possible, maybe a pop-up alert or any other kind of interruption which may not have been intended by the user)
Trait Implementations§
source§impl Clone for TouchPhase
impl Clone for TouchPhase
source§fn clone(&self) -> TouchPhase
fn clone(&self) -> TouchPhase
Returns a copy 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 moresource§impl Debug for TouchPhase
impl Debug for TouchPhase
source§impl PartialEq for TouchPhase
impl PartialEq for TouchPhase
impl Copy for TouchPhase
impl Eq for TouchPhase
impl StructuralPartialEq for TouchPhase
Auto Trait Implementations§
impl Freeze for TouchPhase
impl RefUnwindSafe for TouchPhase
impl Send for TouchPhase
impl Sync for TouchPhase
impl Unpin for TouchPhase
impl UnwindSafe for TouchPhase
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)