ManagedContextDropBehavior
struct · ferroui-xaml-interactions-draganddrop · v0.5.0
struct ManagedContextDropBehavior
Drop target behavior that integrates with ManagedDragDropService.
It mirrors the semantics of ContextDropBehavior but works
entirely in-process: while a managed drag of the accept_data_format
is in progress the target gets the pseudo class droptarget when its handler validates the
payload, and dragover (and the over_class) while the pointer is over it.
Members
TYPEto_refaccept_data_format_propertyallow_drop_propertyover_class_propertycontext_propertyhandler_propertyconstructnewaccept_data_formatset_accept_data_formatallow_dropset_allow_dropover_classset_over_classcontextset_contexthandlerset_handler
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ManagedContextDropBehavior>
Returns a strong reference to this object.
accept_data_format_property
fn accept_data_format_property() -> &'static StyledProperty<String>
Identifies the AcceptDataFormat property.
allow_drop_property
fn allow_drop_property() -> &'static StyledProperty<bool>
Identifies the AllowDrop property.
over_class_property
fn over_class_property() -> &'static StyledProperty<Option<String>>
Identifies the OverClass property.
context_property
fn context_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Context property.
handler_property
fn handler_property() -> &'static StyledProperty<Option<Rc<dyn IDropHandler>>>
Identifies the Handler property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the behavior.
accept_data_format
fn accept_data_format(self: &Self) -> String
Gets or sets the accepted managed data format.
set_accept_data_format
fn set_accept_data_format(self: &Self, value: String)
allow_drop
fn allow_drop(self: &Self) -> bool
Gets or sets a value indicating whether drop is allowed.
set_allow_drop
fn set_allow_drop(self: &Self, value: bool)
over_class
fn over_class(self: &Self) -> Option<String>
Gets or sets an optional class applied while the pointer is over the target during drag.
set_over_class
fn set_over_class(self: &Self, value: Option<String>)
context
fn context(self: &Self) -> Option<BoxedValue>
Gets or sets the context value supplied to the drop handler.
set_context
fn set_context(self: &Self, value: Option<BoxedValue>)
handler
fn handler(self: &Self) -> Option<Rc<dyn IDropHandler>>
Gets or sets the handler that receives managed drag-drop notifications.
set_handler
fn set_handler(self: &Self, value: Option<Rc<dyn IDropHandler>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ManagedContextDropBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.