cosmic::iced_runtime::core::clipboard

Function start_dnd

source
pub fn start_dnd<T, R, M>(
    clipboard: &mut dyn Clipboard,
    internal: bool,
    source_surface: Option<DndSource>,
    icon_surface: Option<(Element<'static, M, T, R>, State)>,
    content: Box<dyn AsMimeTypes + Send>,
    actions: DndAction,
)
where T: 'static, R: 'static, M: 'static,
Expand description

Starts a DnD operation. icon surface is a tuple of the icon element and optionally the icon element state.