FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SpinEventArgs

    struct · ferroui-controls · v0.5.0

    struct SpinEventArgs
    

    Provides data for the spinner's Spin event.

    View source

    Members

    new

    fn new(direction: SpinDirection) -> Self
    

    Creates args for a spin in the given direction, with no routed event.

    Source

    with_event

    fn with_event<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, direction: SpinDirection) -> Self
    

    Creates args for a routed event and a spin in the given direction.

    Source

    with_mouse_wheel

    fn with_mouse_wheel(direction: SpinDirection, using_mouse_wheel: bool) -> Self
    

    Creates args for a spin in the given direction, with no routed event, stating whether the spin was initiated by a mouse wheel.

    Source

    with_event_and_mouse_wheel

    fn with_event_and_mouse_wheel<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, direction: SpinDirection, using_mouse_wheel: bool) -> Self
    

    Creates args for a routed event and a spin in the given direction, stating whether the spin was initiated by a mouse wheel.

    Source

    direction

    fn direction(self: &Self) -> SpinDirection
    

    The direction for the spin.

    Source

    using_mouse_wheel

    fn using_mouse_wheel(self: &Self) -> bool
    

    Whether the spin event originated from a mouse wheel event.

    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.