Struct smithay_client_toolkit::primary_selection::PrimarySelectionDevice [−][src]
pub struct PrimarySelectionDevice { /* fields omitted */ }
Handle to support primary selection on a given seat.
This type provides you with copy/paste actions. It is associated with a seat upon creation.
Implementations
impl PrimarySelectionDevice
[src]
impl PrimarySelectionDevice
[src]pub fn init_for_seat(
manager: &PrimarySelectionDeviceManager,
seat: &WlSeat
) -> Self
[src]
pub fn init_for_seat(
manager: &PrimarySelectionDeviceManager,
seat: &WlSeat
) -> Self
[src]Create the PrimarySelectionDevice
helper for this seat.
pub fn set_selection(
&self,
source: &Option<PrimarySelectionSource>,
serial: u32
)
[src]
pub fn set_selection(
&self,
source: &Option<PrimarySelectionSource>,
serial: u32
)
[src]Provide a primary selection source as the new content for the primary selection.
Correspond to traditional copy/paste behavior. Setting the source to None
will clear
the selection.
pub fn with_selection<F: FnOnce(Option<&PrimarySelectionOffer>) -> T, T>(
&self,
f: F
) -> T
[src]
pub fn with_selection<F: FnOnce(Option<&PrimarySelectionOffer>) -> T, T>(
&self,
f: F
) -> T
[src]Access the PrimarySelectionOffer
currently associated with the primary selection buffer.