FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScrollChangedEventArgs

    struct · ferroui-controls · v0.5.0

    struct ScrollChangedEventArgs
    

    Describes a change in scrolling state.

    View source

    Members

    new

    fn new(extent_delta: Vector, offset_delta: Vector, viewport_delta: Vector) -> Self
    

    Creates args for the ScrollChanged event of the scroll viewer.

    Source

    with_event

    fn with_event<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, extent_delta: Vector, offset_delta: Vector, viewport_delta: Vector) -> Self
    

    Creates args for a routed event.

    Source

    extent_delta

    fn extent_delta(self: &Self) -> Vector
    

    Gets the change to the value of the Extent of the scroll viewer.

    Source

    offset_delta

    fn offset_delta(self: &Self) -> Vector
    

    Gets the change to the value of the Offset of the scroll viewer.

    Source

    viewport_delta

    fn viewport_delta(self: &Self) -> Vector
    

    Gets the change to the value of the Viewport of the scroll viewer.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • MarkupTyped
    • Clone
    • Deref
    • IRoutedEventArgs

    Availability

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