Struct smithay_client_toolkit::data_device::DataDeviceHandler [−][src]
pub struct DataDeviceHandler { /* fields omitted */ }
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
impl DataDeviceHandler
[src]
impl DataDeviceHandler
[src]pub fn init<S>(seat_handler: &mut S) -> DataDeviceHandler where
S: SeatHandling,
[src]
pub fn init<S>(seat_handler: &mut S) -> DataDeviceHandler where
S: SeatHandling,
[src]Initialize a data device handler
It needs access to a seat handler in order to track the creation and removal of seats.
Trait Implementations
impl DataDeviceHandling for DataDeviceHandler
[src]
impl DataDeviceHandling for DataDeviceHandler
[src]fn set_callback<F: FnMut(WlSeat, DndEvent<'_>, DispatchData<'_>) + 'static>(
&mut self,
callback: F
) -> Result<(), MissingGlobal>
[src]
fn set_callback<F: FnMut(WlSeat, DndEvent<'_>, DispatchData<'_>) + 'static>(
&mut self,
callback: F
) -> Result<(), MissingGlobal>
[src]Set the global drag’n’drop callback Read more
fn with_device<F: FnOnce(&DataDevice)>(
&self,
seat: &WlSeat,
f: F
) -> Result<(), MissingGlobal>
[src]
fn with_device<F: FnOnce(&DataDevice)>(
&self,
seat: &WlSeat,
f: F
) -> Result<(), MissingGlobal>
[src]Access the data device associated with a seat Read more