SpinEventArgs
struct · ferroui-controls · v0.5.0
struct SpinEventArgs
Provides data for the spinner's Spin event.
Members
new
fn new(direction: SpinDirection) -> Self
Creates args for a spin in the given direction, with no routed event.
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.
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.
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.
direction
fn direction(self: &Self) -> SpinDirection
The direction for the spin.
using_mouse_wheel
fn using_mouse_wheel(self: &Self) -> bool
Whether the spin event originated from a mouse wheel event.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedClassDefaultsErasedDestructorIntoEitherMarkupTypedCloneDerefIRoutedEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.