pub struct TouchEvent {
pub state: TouchState,
pub x: i16,
pub y: i16,
pub press_count: i32,
pub release_count: i32,
}
Expand description
A touch event on the display.
Fields§
§state: TouchState
Touch state.
x: i16
X coordinate of the touch.
y: i16
Y coordinate of the touch.
press_count: i32
how many times the display has been pressed.
release_count: i32
how many times the display has been released.
Trait Implementations§
Source§impl Clone for TouchEvent
impl Clone for TouchEvent
Source§fn clone(&self) -> TouchEvent
fn clone(&self) -> TouchEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TouchEvent
impl Debug for TouchEvent
Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
impl Copy for TouchEvent
impl Eq for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
impl Freeze for TouchEvent
impl RefUnwindSafe for TouchEvent
impl Send for TouchEvent
impl Sync for TouchEvent
impl Unpin for TouchEvent
impl UnwindSafe for TouchEvent
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