FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    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<DropBehaviorBase>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    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).

    Source

    set_handler

    fn set_handler(self: &Self, value: Option<Rc<dyn IDropHandler>>)
    

    Source

    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.

    Source

    Trait implementations

    Availability

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