FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RawPointerPoint

    struct · ferroui-base · v0.5.0

    struct RawPointerPoint
    

    The position and pen state of a raw pointer event.

    View source

    Members

    position

    position: crate::Point
    

    Pointer position, in client DIPs.

    Source

    twist

    twist: f32
    

    Source

    pressure

    pressure: f32
    

    Source

    x_tilt

    x_tilt: f32
    

    Source

    y_tilt

    y_tilt: f32
    

    Source

    new

    fn new() -> Self
    

    Creates a raw pointer point at the origin with default pressure.

    Source

    contact_rect

    fn contact_rect(self: &Self) -> Rect
    

    The contact rectangle of the pointer; an empty rectangle at the pointer position unless set.

    Source

    set_contact_rect

    fn set_contact_rect(self: &mut Self, value: Rect)
    

    Source

    Trait implementations

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

    Availability

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