FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemDragBehavior

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

    struct ItemDragBehavior
    

    Allows dragging items within an ItemsControl.

    The behavior is attached to the container of an item (a list box item, a tab item, the content presenter of an items control); while the item is dragged along the orientation it is translated with the pointer, the containers it passes make room for it, and on release the item moves to the index it was dropped at.

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

    Returns a strong reference to this object.

    Source

    orientation_property

    fn orientation_property() -> &'static StyledProperty<Orientation>
    

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

    orientation

    fn orientation(self: &Self) -> Orientation
    

    Gets or sets the orientation of the drag operation.

    Source

    set_orientation

    fn set_orientation(self: &Self, value: Orientation)
    

    Source

    horizontal_drag_threshold

    fn horizontal_drag_threshold(self: &Self) -> f64
    

    Gets or sets the horizontal drag threshold in pixels.

    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 in pixels.

    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.