FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(input_element: &Ref<InputElement>) -> Self
    

    Creates the collection of an input element.

    Source

    add

    fn add(self: &Self, recognizer: impl crate::IntoRef<GestureRecognizer>)
    

    Attaches a recognizer to the element.

    Source

    remove

    fn remove(self: &Self, recognizer: &GestureRecognizer) -> bool
    

    Detaches a recognizer from the element. Returns whether it was attached.

    Source

    to_vec

    fn to_vec(self: &Self) -> Vec<Ref<GestureRecognizer>>
    

    The attached recognizers.

    Source

    count

    fn count(self: &Self) -> usize
    

    The number of attached recognizers.

    Source

    Trait implementations

    Availability

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