pub struct InkPoint {
pub position: Point,
pub pressure: f32,
pub tilt_x: f32,
pub tilt_y: f32,
pub twist: f32,
pub timestamp: u64,
}Expand description
An immutable device sample. Positions are in device-independent pixels, pressure is normalized to 0..=1, angles are degrees and timestamps are monotonically increasing microseconds supplied by the input adapter.
Fields§
§position: Point§pressure: f32§tilt_x: f32§tilt_y: f32§twist: f32§timestamp: u64Implementations§
Trait Implementations§
impl Copy for InkPoint
Source§impl MarkupTyped for InkPoint
impl MarkupTyped for InkPoint
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
impl StructuralPartialEq for InkPoint
Auto Trait Implementations§
impl Freeze for InkPoint
impl RefUnwindSafe for InkPoint
impl Send for InkPoint
impl Sync for InkPoint
impl Unpin for InkPoint
impl UnsafeUnpin for InkPoint
impl UnwindSafe for InkPoint
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more