FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IDataTransfer

    trait · ferroui-base · v0.5.0

    trait IDataTransfer: IDisposable
    

    Represents an object providing a list of IDataTransferItem usable during a drag and drop operation.

    When an implementation of this interface is used as a drag source using DragDrop::do_drag_drop_async, it must NOT be disposed by the caller. The system will dispose of it automatically when the drag operation completes.

    See DataTransfer for the mutable implementation.

    View source

    Members

    formats

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

    Gets the formats supported by the data transfer.

    Source

    items

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

    Gets a list of IDataTransferItem contained in this object.

    Some platforms (such as Windows and X11) may only support a single data item for all formats except files.

    Items returned by this property must stay valid until the data transfer is disposed.

    Source

    as_async_data_transfer

    fn as_async_data_transfer(self: Rc<Self>) -> Option<Rc<dyn IAsyncDataTransfer>>
    

    The object as an asynchronous data transfer, if it also is one.

    Source

    Trait implementations

    Availability

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