GestureRecognizerCollection
struct · ferroui-base · v0.5.0
struct GestureRecognizerCollection
The gesture recognizers attached to an input element.
The value is a shared handle: clones refer to the same collection, and handles compare by identity.
Members
new
fn new(input_element: &Ref<InputElement>) -> Self
Creates the collection of an input element.
add
fn add(self: &Self, recognizer: impl crate::IntoRef<GestureRecognizer>)
Attaches a recognizer to the element.
remove
fn remove(self: &Self, recognizer: &GestureRecognizer) -> bool
Detaches a recognizer from the element. Returns whether it was attached.
to_vec
fn to_vec(self: &Self) -> Vec<Ref<GestureRecognizer>>
The attached recognizers.
count
fn count(self: &Self) -> usize
The number of attached recognizers.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherClonePartialEqDebugMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.