FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContextDropBehaviorBase

    struct · ferroui-xaml-interactions-draganddrop · v0.5.0

    struct ContextDropBehaviorBase
    

    Behavior base class that enables dropping context data onto the associated control: the drag events of the control go to the members of ContextDropBehaviorBaseImpl, with the context of the drag source (found by its key in the drag data) and the context of the target, or else the data context of the control.

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

    Returns a strong reference to this object.

    Source

    on_enter

    fn on_enter(self: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
    

    Called when a drag enters the target.

    Source

    on_leave

    fn on_leave(self: &Self, sender: Option<&BoxedValue>, e: &RoutedEventArgs)
    

    Called when the drag leaves the target.

    Source

    on_over

    fn on_over(self: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
    

    Called repeatedly as the drag moves over the target.

    Source

    on_drop

    fn on_drop(self: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
    

    Called when the drag is dropped on the target.

    Source

    context_property

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

    Identifies the Context property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    context_data_transfer_format

    fn context_data_transfer_format() -> DataFormatOf<String>
    

    Identifies the application data format used to store context identifiers.

    Deviation (DEVIATIONS.md, Behaviors): the identifier of the format names the namespace of the port.

    Source

    context

    fn context(self: &Self) -> Option<BoxedValue>
    

    Gets or sets context data provided to the drop handler.

    Source

    set_context

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

    Source

    Trait implementations

    Availability

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