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<(), ()>
fn set_callback<F: FnMut(WlSeat, DndEvent<'_>, DispatchData<'_>) + 'static>(
&mut self,
callback: F
) -> Result<(), ()>
Set the global drag’n’drop callback Read more
Access the data device associated with a seat Read more
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
This global was created and signaled in the registry with given id and version
Access the global if it was signaled