pub struct TouchInput {
pub x: i32,
pub y: i32,
pub pressure: u32,
pub orientation: Option<u32>,
pub contact_area: Option<Rectangle>,
pub bind_active: bool,
}Fields§
§x: i32The X screen coordinate
y: i32The Y screen coordinate
pressure: u32The pressure value, if enabled
orientation: Option<u32>The orientation of the touch, if enabled
contact_area: Option<Rectangle>The contact area of the touch, if enabled. This is a rectangle with the X and Y coordinates as its center.
bind_active: boolWhether or not to bind pressure to contact
Trait Implementations§
Source§impl Clone for TouchInput
impl Clone for TouchInput
Source§fn clone(&self) -> TouchInput
fn clone(&self) -> TouchInput
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 TouchInput
impl Debug for TouchInput
Source§impl PartialEq for TouchInput
impl PartialEq for TouchInput
impl Copy for TouchInput
impl StructuralPartialEq for TouchInput
Auto Trait Implementations§
impl Freeze for TouchInput
impl RefUnwindSafe for TouchInput
impl Send for TouchInput
impl Sync for TouchInput
impl Unpin for TouchInput
impl UnwindSafe for TouchInput
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