FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AutoScrollDuringDragBehavior

    struct · ferroui-xaml-interactions-draggable · v0.5.0

    struct AutoScrollDuringDragBehavior
    

    Automatically scrolls the associated ScrollViewer when the pointer is dragged near its edges.

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

    Returns a strong reference to this object.

    Source

    edge_distance_property

    fn edge_distance_property() -> &'static StyledProperty<f64>
    

    Identifies the EdgeDistance property.

    Source

    scroll_delta_property

    fn scroll_delta_property() -> &'static StyledProperty<f64>
    

    Identifies the ScrollDelta property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the behavior.

    Source

    edge_distance

    fn edge_distance(self: &Self) -> f64
    

    Gets or sets the distance from the edge that triggers scrolling.

    Source

    set_edge_distance

    fn set_edge_distance(self: &Self, value: f64)
    

    Source

    scroll_delta

    fn scroll_delta(self: &Self) -> f64
    

    Gets or sets the amount scrolled when triggered.

    Source

    set_scroll_delta

    fn set_scroll_delta(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

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