FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContextDragWithDirectionBehavior

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

    struct ContextDragWithDirectionBehavior
    

    Behavior that starts drag and drop with information about drag direction: the drag data holds "up" or "down", as the pointer moved up or down to start the drag.

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

    Returns a strong reference to this object.

    Source

    context_property

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

    Identifies the Context property.

    Source

    handler_property

    fn handler_property() -> &'static StyledProperty<Option<Rc<dyn IDragHandler>>>
    

    Identifies the Handler 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

    new

    fn new() -> Ref<Self>
    

    Creates the behavior.

    Source

    context

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

    Gets or sets the context used for drag operations.

    Source

    set_context

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

    Source

    handler

    fn handler(self: &Self) -> Option<Rc<dyn IDragHandler>>
    

    Gets or sets the drag handler to notify.

    Source

    set_handler

    fn set_handler(self: &Self, value: Option<Rc<dyn IDragHandler>>)
    

    Source

    horizontal_drag_threshold

    fn horizontal_drag_threshold(self: &Self) -> f64
    

    Gets or sets the horizontal drag threshold.

    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 drag threshold.

    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.