FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IPointer

    trait · ferroui-base · v0.5.0

    trait IPointer
    

    Identifies a specific input pointer, e.g. a mouse, a touch contact or a pen.

    View source

    Members

    id

    fn id(self: &Self) -> i32
    

    The unique identifier of the pointer.

    Source

    capture

    fn capture(self: &Self, control: Option<&Ref<InputElement>>)
    

    Captures pointer input to the specified control.

    When an element captures the pointer, it receives pointer input whether the cursor is within the control's bounds or not. The current pointer capture control is exposed by captured.

    Source

    captured

    fn captured(self: &Self) -> Option<Ref<InputElement>>
    

    The control that is currently capturing the pointer, if any.

    Source

    type_

    fn type_(self: &Self) -> PointerType
    

    The type of the pointer.

    Source

    is_primary

    fn is_primary(self: &Self) -> bool
    

    Whether the pointer is the primary pointer of its type.

    Source

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    The pointer as Any, for downcasting to the concrete pointer.

    Source

    Trait implementations

    Availability

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