pub struct PenInput {
pub x: i32,
pub y: i32,
pub pressure: u32,
pub tilt_x: Option<i32>,
pub tilt_y: Option<i32>,
pub rotation: Option<u32>,
pub bind_active: bool,
}Fields§
§x: i32The X screen coordinate
y: i32The Y screen coordinate
pressure: u32The pressure value, if enabled
tilt_x: Option<i32>The tilt value on the X axis, if enabled
tilt_y: Option<i32>The tilt value on the Y axis, if enabled
rotation: Option<u32>The rotation value, if enabled
bind_active: boolWhether or not to bind pressure to contact
Trait Implementations§
impl Copy for PenInput
impl StructuralPartialEq for PenInput
Auto Trait Implementations§
impl Freeze for PenInput
impl RefUnwindSafe for PenInput
impl Send for PenInput
impl Sync for PenInput
impl Unpin for PenInput
impl UnwindSafe for PenInput
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