FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScrollGestureRecognizer

    struct · ferroui-base · v0.5.0

    struct ScrollGestureRecognizer
    

    Recognizes the scroll gesture: a touch or pen drag, optionally followed by inertia.

    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<ScrollGestureRecognizer>
    

    Returns a strong reference to this object.

    Source

    INERTIAL_SCROLL_SPEED_END

    const INERTIAL_SCROLL_SPEED_END: f64
    

    Pixels per second speed that is considered to be the stop of inertial scroll.

    Source

    INERTIAL_RESISTANCE

    const INERTIAL_RESISTANCE: f64
    

    The resistance applied to inertial scrolling.

    Source

    can_horizontally_scroll_property

    fn can_horizontally_scroll_property() -> &'static DirectProperty<ScrollGestureRecognizer, bool>
    

    Defines the CanHorizontallyScroll property.

    Source

    can_vertically_scroll_property

    fn can_vertically_scroll_property() -> &'static DirectProperty<ScrollGestureRecognizer, bool>
    

    Defines the CanVerticallyScroll property.

    Source

    is_scroll_inertia_enabled_property

    fn is_scroll_inertia_enabled_property() -> &'static DirectProperty<ScrollGestureRecognizer, bool>
    

    Defines the IsScrollInertiaEnabled property.

    Source

    scroll_start_distance_property

    fn scroll_start_distance_property() -> &'static DirectProperty<ScrollGestureRecognizer, i32>
    

    Defines the ScrollStartDistance property.

    Source

    offset_property

    fn offset_property() -> &'static DirectProperty<ScrollGestureRecognizer, Option<Vector>>
    

    Defines the Offset property.

    Source

    extent_property

    fn extent_property() -> &'static DirectProperty<ScrollGestureRecognizer, Option<Size>>
    

    Defines the Extent property.

    Source

    viewport_property

    fn viewport_property() -> &'static DirectProperty<ScrollGestureRecognizer, Option<Size>>
    

    Defines the Viewport property.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    can_horizontally_scroll

    fn can_horizontally_scroll(self: &Self) -> bool
    

    Whether the content can be scrolled horizontally.

    Source

    set_can_horizontally_scroll

    fn set_can_horizontally_scroll(self: &Self, value: bool)
    

    Source

    can_vertically_scroll

    fn can_vertically_scroll(self: &Self) -> bool
    

    Whether the content can be scrolled vertically.

    Source

    set_can_vertically_scroll

    fn set_can_vertically_scroll(self: &Self, value: bool)
    

    Source

    is_scroll_inertia_enabled

    fn is_scroll_inertia_enabled(self: &Self) -> bool
    

    Whether scroll inertia is enabled.

    Source

    set_is_scroll_inertia_enabled

    fn set_is_scroll_inertia_enabled(self: &Self, value: bool)
    

    Source

    scroll_start_distance

    fn scroll_start_distance(self: &Self) -> i32
    

    The minimum distance the pointer must move before scrolling starts.

    Source

    set_scroll_start_distance

    fn set_scroll_start_distance(self: &Self, value: i32)
    

    Source

    extent

    fn extent(self: &Self) -> Option<Size>
    

    The extent of the scrollable content, if known.

    Source

    set_extent

    fn set_extent(self: &Self, value: Option<Size>)
    

    Source

    offset

    fn offset(self: &Self) -> Option<Vector>
    

    The current scroll offset, if known.

    Source

    set_offset

    fn set_offset(self: &Self, value: Option<Vector>)
    

    Source

    viewport

    fn viewport(self: &Self) -> Option<Size>
    

    The size of the viewport, if known.

    Source

    set_viewport

    fn set_viewport(self: &Self, value: Option<Size>)
    

    Source

    Trait implementations

    Availability

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