DragDropCommandsBehavior
struct · ferroui-xaml-interactions-draganddrop · v0.5.0
struct DragDropCommandsBehavior
Behavior that exposes commands for drag-and-drop events: each drag event executes its command
with the event args (or no parameter), and the can_execute_* properties tell whether each
command can execute.
Members
TYPEto_refdrag_enter_command_propertydrag_over_command_propertydrag_leave_command_propertydrop_command_propertycan_execute_command_parameter_propertycan_execute_drag_enter_command_propertycan_execute_drag_over_command_propertycan_execute_drag_leave_command_propertycan_execute_drop_command_propertyconstructnewdrag_enter_commandset_drag_enter_commanddrag_over_commandset_drag_over_commanddrag_leave_commandset_drag_leave_commanddrop_commandset_drop_commandcan_execute_command_parameterset_can_execute_command_parametercan_execute_drag_enter_commandcan_execute_drag_over_commandcan_execute_drag_leave_commandcan_execute_drop_commandpass_event_args_to_commandset_pass_event_args_to_command
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DragDropCommandsBehavior>
Returns a strong reference to this object.
drag_enter_command_property
fn drag_enter_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
Identifies the DragEnterCommand property.
drag_over_command_property
fn drag_over_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
Identifies the DragOverCommand property.
drag_leave_command_property
fn drag_leave_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
Identifies the DragLeaveCommand property.
drop_command_property
fn drop_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
Identifies the DropCommand property.
can_execute_command_parameter_property
fn can_execute_command_parameter_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the CanExecuteCommandParameter property.
can_execute_drag_enter_command_property
fn can_execute_drag_enter_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
Identifies the CanExecuteDragEnterCommand property.
can_execute_drag_over_command_property
fn can_execute_drag_over_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
Identifies the CanExecuteDragOverCommand property.
can_execute_drag_leave_command_property
fn can_execute_drag_leave_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
Identifies the CanExecuteDragLeaveCommand property.
can_execute_drop_command_property
fn can_execute_drop_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
Identifies the CanExecuteDropCommand property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the behavior.
drag_enter_command
fn drag_enter_command(self: &Self) -> Option<Rc<dyn ICommand>>
Gets or sets the command invoked on drag enter.
set_drag_enter_command
fn set_drag_enter_command(self: &Self, value: Option<Rc<dyn ICommand>>)
drag_over_command
fn drag_over_command(self: &Self) -> Option<Rc<dyn ICommand>>
Gets or sets the command invoked on drag over.
set_drag_over_command
fn set_drag_over_command(self: &Self, value: Option<Rc<dyn ICommand>>)
drag_leave_command
fn drag_leave_command(self: &Self) -> Option<Rc<dyn ICommand>>
Gets or sets the command invoked on drag leave.
set_drag_leave_command
fn set_drag_leave_command(self: &Self, value: Option<Rc<dyn ICommand>>)
drop_command
fn drop_command(self: &Self) -> Option<Rc<dyn ICommand>>
Gets or sets the command invoked on drop.
set_drop_command
fn set_drop_command(self: &Self, value: Option<Rc<dyn ICommand>>)
can_execute_command_parameter
fn can_execute_command_parameter(self: &Self) -> Option<BoxedValue>
Gets or sets the parameter used to evaluate the drag-and-drop commands before event-specific parameters are available. This property does not change the parameter passed to command execution.
set_can_execute_command_parameter
fn set_can_execute_command_parameter(self: &Self, value: Option<BoxedValue>)
can_execute_drag_enter_command
fn can_execute_drag_enter_command(self: &Self) -> bool
Gets a value indicating whether drag_enter_command can execute
with the current can-execute parameter.
can_execute_drag_over_command
fn can_execute_drag_over_command(self: &Self) -> bool
Gets a value indicating whether drag_over_command can execute
with the current can-execute parameter.
can_execute_drag_leave_command
fn can_execute_drag_leave_command(self: &Self) -> bool
Gets a value indicating whether drag_leave_command can execute
with the current can-execute parameter.
can_execute_drop_command
fn can_execute_drop_command(self: &Self) -> bool
Gets a value indicating whether drop_command can execute with the
current can-execute parameter.
pass_event_args_to_command
fn pass_event_args_to_command(self: &Self) -> bool
Specifies whether the event args should be passed to the command.
set_pass_event_args_to_command
fn set_pass_event_args_to_command(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDragAndDropEventsBehaviorImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<DragDropCommandsBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImplDragAndDropEventsBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.