Thumb
struct · ferroui-controls · v0.5.0
struct Thumb
A control that can be dragged by the user.
Members
TYPEto_refon_drag_startedon_drag_deltaon_drag_completedPSEUDO_CLASSESdrag_started_eventdrag_delta_eventdrag_completed_eventconstructnewdrag_starteddrag_deltadrag_completed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Thumb>
Returns a strong reference to this object.
on_drag_started
fn on_drag_started(self: &Self, e: &VectorEventArgs)
Invoked when an unhandled DragStarted event reaches an element
in its route that is derived from this class. Implement this
method to add class handling for this event.
on_drag_delta
fn on_drag_delta(self: &Self, e: &VectorEventArgs)
Invoked when an unhandled DragDelta event reaches an element in
its route that is derived from this class. Implement this method
to add class handling for this event.
on_drag_completed
fn on_drag_completed(self: &Self, e: &VectorEventArgs)
Invoked when an unhandled DragCompleted event reaches an element
in its route that is derived from this class. Implement this
method to add class handling for this event.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
drag_started_event
fn drag_started_event() -> &'static RoutedEvent<VectorEventArgs>
Defines the DragStarted routed event.
drag_delta_event
fn drag_delta_event() -> &'static RoutedEvent<VectorEventArgs>
Defines the DragDelta routed event.
drag_completed_event
fn drag_completed_event() -> &'static RoutedEvent<VectorEventArgs>
Defines the DragCompleted routed event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
drag_started
fn drag_started(self: &Self, handler: impl Fn(&Interactive, &VectorEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Raised when a drag of the thumb starts.
drag_delta
fn drag_delta(self: &Self, handler: impl Fn(&Interactive, &VectorEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Raised while the thumb is dragged.
drag_completed
fn drag_completed(self: &Self, handler: impl Fn(&Interactive, &VectorEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Raised when a drag of the thumb completes.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtThumbImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Thumb>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplTemplatedControlImplControlImplFerroObjectImplInputElementImplThumbImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.