FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PullGestureRecognizer

    struct · ferroui-base · v0.5.0

    struct PullGestureRecognizer
    

    Recognizes the pull gesture: a drag from an edge of the target, as used by pull-to-refresh.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<PullGestureRecognizer>
    

    Returns a strong reference to this object.

    Source

    pull_direction_property

    fn pull_direction_property() -> &'static StyledProperty<PullDirection>
    

    Defines the PullDirection property.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a recognizer for pulls from the top.

    Source

    with_direction

    fn with_direction(pull_direction: PullDirection) -> Ref<Self>
    

    Creates a recognizer for pulls in the given direction.

    Source

    pull_direction

    fn pull_direction(self: &Self) -> PullDirection
    

    The direction the target is pulled in.

    Source

    set_pull_direction

    fn set_pull_direction(self: &Self, value: PullDirection)
    

    Source

    Trait implementations

    Availability

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