FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TouchDevice

    struct · ferroui-base · v0.5.0

    struct TouchDevice
    

    Handles raw touch events.

    This class is supposed to be used on per-toplevel basis; don't use a shared one.

    View source

    Members

    new

    fn new() -> Rc<TouchDevice>
    

    Creates a touch device.

    Source

    dispose

    fn dispose(self: &Self)
    

    Releases the device and its pointers.

    Source

    platform_capture_lost

    fn platform_capture_lost(self: &Self)
    

    Notifies the device that the capture of its pointers was lost in the platform.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • IInputDevice
    • IPointerDevice

    Availability

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