TypedDragBehaviorBase
struct · ferroui-xaml-interactions-draganddrop · v0.5.0
struct TypedDragBehaviorBase
Behavior base class that initiates a drag operation for a specific data type: the press starts
a drag only over an element whose data context is of the data_type.
The class is abstract: a deriving class implements the members of
TypedDragBehaviorBaseImpl.
Members
TYPEto_refon_before_drag_dropon_after_drag_dropdata_type_propertyconstructdata_typeset_data_type
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TypedDragBehaviorBase>
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.
data_type_property
fn data_type_property() -> &'static StyledProperty<Option<ValueType>>
Identifies the DataType property.
Deviation (DEVIATIONS.md, Behaviors): the Type of the reference is the value type of
the framework (what {x:Type} gives in markup): the handle type of a class, the type of
a model object or of a value.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
data_type
fn data_type(self: &Self) -> Option<ValueType>
Gets or sets the data type allowed for dragging.
set_data_type
fn set_data_type(self: &Self, value: Option<ValueType>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTypedDragBehaviorBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<TypedDragBehaviorBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplTypedDragBehaviorBaseImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.