Struct smithay_client_toolkit::data_device::DataDeviceHandler [−][src]
pub struct DataDeviceHandler { /* fields omitted */ }
Expand description
A handler for data devices
It provides automatic tracking of data device for each available seat, allowing you to manipulate selection clipboard and drag&drop manipulations.
It is automatically included in the default_environment!
.
Implementations
Initialize a data device handler
It needs access to a seat handler in order to track the creation and removal of seats.
Trait Implementations
fn set_callback<F: FnMut(WlSeat, DndEvent<'_>, DispatchData<'_>) + 'static>(
&mut self,
callback: F
) -> Result<(), MissingGlobal>
fn set_callback<F: FnMut(WlSeat, DndEvent<'_>, DispatchData<'_>) + 'static>(
&mut self,
callback: F
) -> Result<(), MissingGlobal>
Set the global drag’n’drop callback Read more
fn with_device<F: FnOnce(&DataDevice)>(
&self,
seat: &WlSeat,
f: F
) -> Result<(), MissingGlobal>
fn with_device<F: FnOnce(&DataDevice)>(
&self,
seat: &WlSeat,
f: F
) -> Result<(), MissingGlobal>
Access the data device associated with a seat Read more