FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    position

    position: ferroui_base::Point
    

    Source

    pressure

    pressure: f32
    

    Source

    tilt_x

    tilt_x: f32
    

    Source

    tilt_y

    tilt_y: f32
    

    Source

    twist

    twist: f32
    

    Source

    timestamp

    timestamp: u64
    

    Source

    new

    fn new(position: Point, pressure: f32) -> Result<Self, InkError>
    

    Source

    validate

    fn validate(self: &Self) -> Result<(), InkError>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • IUnknownImpl
    • MarkupTyped
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.