Struct smithay_client_toolkit::primary_selection::PrimarySelectionSource [−][src]
pub struct PrimarySelectionSource { /* fields omitted */ }
Expand description
A primary selection source for sending data through copy/paste.
Implementations
pub fn new<F, S, It>(
manager: &PrimarySelectionDeviceManager,
mime_types: It,
callback: F
) -> Self where
F: FnMut(PrimarySelectionSourceEvent, DispatchData<'_>) + 'static,
S: Into<String>,
It: IntoIterator<Item = S>,
pub fn new<F, S, It>(
manager: &PrimarySelectionDeviceManager,
mime_types: It,
callback: F
) -> Self where
F: FnMut(PrimarySelectionSourceEvent, DispatchData<'_>) + 'static,
S: Into<String>,
It: IntoIterator<Item = S>,
Create a new primary selection source.
You’ll then need to provide a primary selection device to send via selection.