FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<DragDropCommandsBehavior>
    

    Returns a strong reference to this object.

    Source

    drag_enter_command_property

    fn drag_enter_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
    

    Identifies the DragEnterCommand property.

    Source

    drag_over_command_property

    fn drag_over_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
    

    Identifies the DragOverCommand property.

    Source

    drag_leave_command_property

    fn drag_leave_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
    

    Identifies the DragLeaveCommand property.

    Source

    drop_command_property

    fn drop_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
    

    Identifies the DropCommand property.

    Source

    can_execute_command_parameter_property

    fn can_execute_command_parameter_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the CanExecuteCommandParameter property.

    Source

    can_execute_drag_enter_command_property

    fn can_execute_drag_enter_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
    

    Identifies the CanExecuteDragEnterCommand property.

    Source

    can_execute_drag_over_command_property

    fn can_execute_drag_over_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
    

    Identifies the CanExecuteDragOverCommand property.

    Source

    can_execute_drag_leave_command_property

    fn can_execute_drag_leave_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
    

    Identifies the CanExecuteDragLeaveCommand property.

    Source

    can_execute_drop_command_property

    fn can_execute_drop_command_property() -> &'static DirectProperty<DragDropCommandsBehavior, bool>
    

    Identifies the CanExecuteDropCommand property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the behavior.

    Source

    drag_enter_command

    fn drag_enter_command(self: &Self) -> Option<Rc<dyn ICommand>>
    

    Gets or sets the command invoked on drag enter.

    Source

    set_drag_enter_command

    fn set_drag_enter_command(self: &Self, value: Option<Rc<dyn ICommand>>)
    

    Source

    drag_over_command

    fn drag_over_command(self: &Self) -> Option<Rc<dyn ICommand>>
    

    Gets or sets the command invoked on drag over.

    Source

    set_drag_over_command

    fn set_drag_over_command(self: &Self, value: Option<Rc<dyn ICommand>>)
    

    Source

    drag_leave_command

    fn drag_leave_command(self: &Self) -> Option<Rc<dyn ICommand>>
    

    Gets or sets the command invoked on drag leave.

    Source

    set_drag_leave_command

    fn set_drag_leave_command(self: &Self, value: Option<Rc<dyn ICommand>>)
    

    Source

    drop_command

    fn drop_command(self: &Self) -> Option<Rc<dyn ICommand>>
    

    Gets or sets the command invoked on drop.

    Source

    set_drop_command

    fn set_drop_command(self: &Self, value: Option<Rc<dyn ICommand>>)
    

    Source

    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.

    Source

    set_can_execute_command_parameter

    fn set_can_execute_command_parameter(self: &Self, value: Option<BoxedValue>)
    

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    set_pass_event_args_to_command

    fn set_pass_event_args_to_command(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.