ContextDropBehaviorBase
struct · ferroui-xaml-interactions-draganddrop · v0.5.0
struct ContextDropBehaviorBase
Behavior base class that enables dropping context data onto the associated control: the drag
events of the control go to the members of ContextDropBehaviorBaseImpl, with the context of
the drag source (found by its key in the drag data) and the context of the
target, or else the data context of the control.
The class is abstract.
Members
TYPEto_refon_enteron_leaveon_overon_dropcontext_propertyconstructcontext_data_transfer_formatcontextset_context
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ContextDropBehaviorBase>
Returns a strong reference to this object.
on_enter
fn on_enter(self: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
Called when a drag enters the target.
on_leave
fn on_leave(self: &Self, sender: Option<&BoxedValue>, e: &RoutedEventArgs)
Called when the drag leaves the target.
on_over
fn on_over(self: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
Called repeatedly as the drag moves over the target.
on_drop
fn on_drop(self: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
Called when the drag is dropped on the target.
context_property
fn context_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Context property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
context_data_transfer_format
fn context_data_transfer_format() -> DataFormatOf<String>
Identifies the application data format used to store context identifiers.
Deviation (DEVIATIONS.md, Behaviors): the identifier of the format names the namespace of the port.
context
fn context(self: &Self) -> Option<BoxedValue>
Gets or sets context data provided to the drop handler.
set_context
fn set_context(self: &Self, value: Option<BoxedValue>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeContextDropBehaviorBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ContextDropBehaviorBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplContextDropBehaviorBaseImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.