FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContextDropBehavior

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

    struct ContextDropBehavior
    

    Behavior that enables dropping context data onto the associated control using a predefined IDropHandler.

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

    Returns a strong reference to this object.

    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

    handler

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

    Gets or sets the drop handler that receives 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.