FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ManagedDataTransferItemExtensions

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

    trait ManagedDataTransferItemExtensions: IDataTransferItem
    

    Provides helpers to retrieve managed drag-drop payloads from the items of data transfer objects (see ManagedDataTransferExtensions).

    View source

    Members

    try_get_managed_value

    fn try_get_managed_value(self: &Self, format: &str) -> Option<Rc<dyn Any>>
    

    Tries to get a managed payload for the specified application format from a single data transfer item: the stored payload, or None when the format is not present.

    Source

    try_get_managed_value_as

    fn try_get_managed_value_as<T: 'static>(self: &Self, format: &str) -> Option<Rc<T>>
    

    Tries to get a managed payload for the specified application format from a single data transfer item as a T: the stored payload, or None when it is unavailable or of another type.

    Source

    Trait implementations

    Availability

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