Skip to main content

paste_button

Function paste_button 

Source
pub fn paste_button(
    kinds: &[ContentType],
    paste: impl Fn(&[ItemProvider]) + 'static,
) -> ViewHandle
Expand description

PasteButton(supportedContentTypes:payloadAction:) — a button that pastes.

Not generic: its label is fixed, so there is no content type to pass. What arrives in the action is the pasteboard’s item providers, the same shape on_paste_command receives.