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.
Members
TYPEto_refon_before_drag_dropon_after_drag_dropcontext_propertyhorizontal_drag_threshold_propertyvertical_drag_threshold_propertyconstructcontextset_contexthorizontal_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<ContextDragBehaviorBase>
Returns a strong reference to this object.
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.
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.
context_property
fn context_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Context 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.
context
fn context(self: &Self) -> Option<BoxedValue>
Gets or sets context data passed to the drag handler.
set_context
fn set_context(self: &Self, value: Option<BoxedValue>)
horizontal_drag_threshold
fn horizontal_drag_threshold(self: &Self) -> f64
Gets or sets the horizontal distance in pixels required to start a drag.
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 distance in pixels required to start a drag.
set_vertical_drag_threshold
fn set_vertical_drag_threshold(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeContextDragBehaviorBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ContextDragBehaviorBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplContextDragBehaviorBaseImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.