Struct pros_devices::screen::TouchEvent
source · 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 screen.
Fields§
§state: TouchStateTouch state.
x: i16X coordinate of the touch.
y: i16Y coordinate of the touch.
press_count: i32how many times the screen has been pressed.
release_count: i32how many times the screen 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 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 TouchEvent
impl Debug for TouchEvent
source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
source§fn eq(&self, other: &TouchEvent) -> bool
fn eq(&self, other: &TouchEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<screen_touch_status_s_t> for TouchEvent
impl TryFrom<screen_touch_status_s_t> for TouchEvent
§type Error = ScreenError
type Error = ScreenError
The type returned in the event of a conversion error.
impl Copy for TouchEvent
impl Eq for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
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