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.
Members
TYPEto_refcontext_propertyhandler_propertyhorizontal_drag_threshold_propertyvertical_drag_threshold_propertyconstructnewcontextset_contexthandlerset_handlerhorizontal_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<ContextDragWithDirectionBehavior>
Returns a strong reference to this object.
context_property
fn context_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Context property.
handler_property
fn handler_property() -> &'static StyledProperty<Option<Rc<dyn IDragHandler>>>
Identifies the Handler 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.
context
fn context(self: &Self) -> Option<BoxedValue>
Gets or sets the context used for drag operations.
set_context
fn set_context(self: &Self, value: Option<BoxedValue>)
handler
fn handler(self: &Self) -> Option<Rc<dyn IDragHandler>>
Gets or sets the drag handler to notify.
set_handler
fn set_handler(self: &Self, value: Option<Rc<dyn IDragHandler>>)
horizontal_drag_threshold
fn horizontal_drag_threshold(self: &Self) -> f64
Gets or sets the horizontal drag threshold.
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.
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<ContextDragWithDirectionBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.