InkPoint
struct · ferroui-controls-inking · v0.5.0
struct InkPoint
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.
Members
position
position: ferroui_base::Point
pressure
pressure: f32
tilt_x
tilt_x: f32
tilt_y
tilt_y: f32
twist
twist: f32
timestamp
timestamp: u64
new
fn new(position: Point, pressure: f32) -> Result<Self, InkError>
validate
fn validate(self: &Self) -> Result<(), InkError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherIUnknownImplMarkupTypedCloneCopyDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.