FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContextDragBehaviorBase

    struct · ferroui-xaml-interactions-draganddrop · v0.5.0

    struct ContextDragBehaviorBase
    

    Behavior base class that starts a drag operation using the associated context data: the context, or else the data context of the associated control, travels with the drag (by its key in the drag data) to the drop behaviors of this crate.

    The class is abstract: a deriving class implements the members of ContextDragBehaviorBaseImpl.

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

    Returns a strong reference to this object.

    Source

    on_before_drag_drop

    fn on_before_drag_drop(self: &Self, sender: Option<&BoxedValue>, e: &PointerEventArgs, context: Option<&BoxedValue>)
    

    Called before the drag operation begins.

    Source

    on_after_drag_drop

    fn on_after_drag_drop(self: &Self, sender: Option<&BoxedValue>, e: &PointerEventArgs, context: Option<&BoxedValue>)
    

    Called after the drag operation completes.

    Source

    context_property

    fn context_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the Context property.

    Source

    horizontal_drag_threshold_property

    fn horizontal_drag_threshold_property() -> &'static StyledProperty<f64>
    

    Identifies the HorizontalDragThreshold property.

    Source

    vertical_drag_threshold_property

    fn vertical_drag_threshold_property() -> &'static StyledProperty<f64>
    

    Identifies the VerticalDragThreshold property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    context

    fn context(self: &Self) -> Option<BoxedValue>
    

    Gets or sets context data passed to the drag handler.

    Source

    set_context

    fn set_context(self: &Self, value: Option<BoxedValue>)
    

    Source

    horizontal_drag_threshold

    fn horizontal_drag_threshold(self: &Self) -> f64
    

    Gets or sets the horizontal distance in pixels required to start a drag.

    Source

    set_horizontal_drag_threshold

    fn set_horizontal_drag_threshold(self: &Self, value: f64)
    

    Source

    vertical_drag_threshold

    fn vertical_drag_threshold(self: &Self) -> f64
    

    Gets or sets the vertical distance in pixels required to start a drag.

    Source

    set_vertical_drag_threshold

    fn set_vertical_drag_threshold(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

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