FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ManagedContextDropBehavior

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

    struct ManagedContextDropBehavior
    

    Drop target behavior that integrates with ManagedDragDropService.

    It mirrors the semantics of ContextDropBehavior but works entirely in-process: while a managed drag of the accept_data_format is in progress the target gets the pseudo class droptarget when its handler validates the payload, and dragover (and the over_class) while the pointer is over it.

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

    Returns a strong reference to this object.

    Source

    accept_data_format_property

    fn accept_data_format_property() -> &'static StyledProperty<String>
    

    Identifies the AcceptDataFormat property.

    Source

    allow_drop_property

    fn allow_drop_property() -> &'static StyledProperty<bool>
    

    Identifies the AllowDrop property.

    Source

    over_class_property

    fn over_class_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the OverClass property.

    Source

    context_property

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

    Identifies the Context property.

    Source

    handler_property

    fn handler_property() -> &'static StyledProperty<Option<Rc<dyn IDropHandler>>>
    

    Identifies the Handler 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

    accept_data_format

    fn accept_data_format(self: &Self) -> String
    

    Gets or sets the accepted managed data format.

    Source

    set_accept_data_format

    fn set_accept_data_format(self: &Self, value: String)
    

    Source

    allow_drop

    fn allow_drop(self: &Self) -> bool
    

    Gets or sets a value indicating whether drop is allowed.

    Source

    set_allow_drop

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

    Source

    over_class

    fn over_class(self: &Self) -> Option<String>
    

    Gets or sets an optional class applied while the pointer is over the target during drag.

    Source

    set_over_class

    fn set_over_class(self: &Self, value: Option<String>)
    

    Source

    context

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

    Gets or sets the context value supplied to the drop handler.

    Source

    set_context

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

    Source

    handler

    fn handler(self: &Self) -> Option<Rc<dyn IDropHandler>>
    

    Gets or sets the handler that receives managed drag-drop notifications.

    Source

    set_handler

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

    Source

    Trait implementations

    Availability

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