IPointer
trait · ferroui-base · v0.5.0
trait IPointer
Identifies a specific input pointer, e.g. a mouse, a touch contact or a pen.
Members
id
fn id(self: &Self) -> i32
The unique identifier of the pointer.
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.
captured
fn captured(self: &Self) -> Option<Ref<InputElement>>
The control that is currently capturing the pointer, if any.
type_
fn type_(self: &Self) -> PointerType
The type of the pointer.
is_primary
fn is_primary(self: &Self) -> bool
Whether the pointer is the primary pointer of its type.
as_any
fn as_any(self: &Self) -> &dyn Any
The pointer as Any, for downcasting to the concrete pointer.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.