FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DataTransfer

    struct · ferroui-base · v0.5.0

    struct DataTransfer
    

    A mutable implementation of IDataTransfer and IAsyncDataTransfer.

    While it also implements IAsyncDataTransfer, this type always returns data synchronously. For advanced usages, consider implementing IAsyncDataTransfer directly.

    View source

    Members

    new

    fn new() -> Rc<DataTransfer>
    

    Creates an empty data transfer.

    Source

    formats

    fn formats(self: &Self) -> Rc<[DataFormat]>
    

    Gets the formats supported by the items of this object, without duplicates.

    Source

    items

    fn items(self: &Self) -> Rc<[Rc<DataTransferItem>]>
    

    Gets a list of DataTransferItem contained in this object.

    Source

    add

    fn add(self: &Self, item: Rc<DataTransferItem>)
    

    Adds an existing DataTransferItem to this object.

    Source

    Trait implementations

    Availability

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