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.
Members
TYPEto_reforientation_propertyhorizontal_drag_threshold_propertyvertical_drag_threshold_propertyconstructneworientationset_orientationhorizontal_drag_thresholdset_horizontal_drag_thresholdvertical_drag_thresholdset_vertical_drag_threshold
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ItemDragBehavior>
Returns a strong reference to this object.
orientation_property
fn orientation_property() -> &'static StyledProperty<Orientation>
Identifies the Orientation property.
horizontal_drag_threshold_property
fn horizontal_drag_threshold_property() -> &'static StyledProperty<f64>
Identifies the HorizontalDragThreshold property.
vertical_drag_threshold_property
fn vertical_drag_threshold_property() -> &'static StyledProperty<f64>
Identifies the VerticalDragThreshold property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the behavior.
orientation
fn orientation(self: &Self) -> Orientation
Gets or sets the orientation of the drag operation.
set_orientation
fn set_orientation(self: &Self, value: Orientation)
horizontal_drag_threshold
fn horizontal_drag_threshold(self: &Self) -> f64
Gets or sets the horizontal drag threshold in pixels.
set_horizontal_drag_threshold
fn set_horizontal_drag_threshold(self: &Self, value: f64)
vertical_drag_threshold
fn vertical_drag_threshold(self: &Self) -> f64
Gets or sets the vertical drag threshold in pixels.
set_vertical_drag_threshold
fn set_vertical_drag_threshold(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ItemDragBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.