FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Thumb

    struct · ferroui-controls · v0.5.0

    struct Thumb
    

    A control that can be dragged by the user.

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

    Returns a strong reference to this object.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    drag_started_event

    fn drag_started_event() -> &'static RoutedEvent<VectorEventArgs>
    

    Defines the DragStarted routed event.

    Source

    drag_delta_event

    fn drag_delta_event() -> &'static RoutedEvent<VectorEventArgs>
    

    Defines the DragDelta routed event.

    Source

    drag_completed_event

    fn drag_completed_event() -> &'static RoutedEvent<VectorEventArgs>
    

    Defines the DragCompleted routed event.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    drag_started

    fn drag_started(self: &Self, handler: impl Fn(&Interactive, &VectorEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when a drag of the thumb starts.

    Source

    drag_delta

    fn drag_delta(self: &Self, handler: impl Fn(&Interactive, &VectorEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised while the thumb is dragged.

    Source

    drag_completed

    fn drag_completed(self: &Self, handler: impl Fn(&Interactive, &VectorEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when a drag of the thumb completes.

    Source

    Trait implementations

    Availability

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