[−][src]Struct smithay_client_toolkit::data_device::DataDeviceHandler
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]
pub fn init<S>(seat_handler: &mut S) -> DataDeviceHandler where
S: SeatHandling,
[src]
S: SeatHandling,
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]
fn set_callback<F: FnMut(WlSeat, DndEvent<'_>, DispatchData<'_>) + 'static>(
&mut self,
callback: F
) -> Result<(), ()>
[src]
&mut self,
callback: F
) -> Result<(), ()>
fn with_device<F: FnOnce(&DataDevice)>(
&self,
seat: &WlSeat,
f: F
) -> Result<(), ()>
[src]
&self,
seat: &WlSeat,
f: F
) -> Result<(), ()>
impl GlobalHandler<WlDataDeviceManager> for DataDeviceHandler
[src]
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
[src]
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
fn get(&self) -> Option<Attached<WlDataDeviceManager>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DataDeviceHandler
impl !Send for DataDeviceHandler
impl !Sync for DataDeviceHandler
impl Unpin for DataDeviceHandler
impl !UnwindSafe for DataDeviceHandler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,