pub struct TouchPoint {
pub status: TouchStatus,
pub x: u16,
pub y: u16,
}Expand description
A single touch point with coordinates and status
Represents one touch point detected by the FT6336U. The controller can detect up to 2 simultaneous touch points.
§Examples
use ft6336u_driver::{TouchPoint, TouchStatus};
let point = TouchPoint {
status: TouchStatus::Touch,
x: 120,
y: 240,
};
println!("Touch detected at ({}, {})", point.x, point.y);Fields§
§status: TouchStatusTouch status
x: u16X coordinate
y: u16Y coordinate
Trait Implementations§
Source§impl Clone for TouchPoint
impl Clone for TouchPoint
Source§fn clone(&self) -> TouchPoint
fn clone(&self) -> TouchPoint
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 moreSource§impl Debug for TouchPoint
impl Debug for TouchPoint
Source§impl Default for TouchPoint
impl Default for TouchPoint
impl Copy for TouchPoint
Auto Trait Implementations§
impl Freeze for TouchPoint
impl RefUnwindSafe for TouchPoint
impl Send for TouchPoint
impl Sync for TouchPoint
impl Unpin for TouchPoint
impl UnwindSafe for TouchPoint
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