DropBehaviorBase
struct · ferroui-xaml-interactions-draganddrop · v0.5.0
struct DropBehaviorBase
Base class for behaviors that respond to drag-and-drop events: the drag events of the
associated control go to the handler, and the deriving class executes the
command of the behavior with execute_command.
The class is abstract.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DropBehaviorBase>
Returns a strong reference to this object.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
handler
fn handler(self: &Self) -> Option<Rc<dyn IDropHandler>>
Gets or sets the handler responsible for processing drop events (a protected member of the reference).
set_handler
fn set_handler(self: &Self, value: Option<Rc<dyn IDropHandler>>)
execute_command
fn execute_command(self: &Self, parameter: Option<&BoxedValue>)
Executes the associated command (a protected member of the reference): when the behavior is enabled, its control is visible and enabled, and the command can execute with the resolved parameter.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<DropBehaviorBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.