pub trait WlDataDeviceManagerHandler: Any {
// Provided methods
fn delete_id(&mut self, slf: &Rc<WlDataDeviceManager>) { ... }
fn handle_create_data_source(
&mut self,
slf: &Rc<WlDataDeviceManager>,
id: &Rc<WlDataSource>,
) { ... }
fn handle_get_data_device(
&mut self,
slf: &Rc<WlDataDeviceManager>,
id: &Rc<WlDataDevice>,
seat: &Rc<WlSeat>,
) { ... }
}Expand description
A message handler for WlDataDeviceManager proxies.
Provided Methods§
Sourcefn delete_id(&mut self, slf: &Rc<WlDataDeviceManager>)
fn delete_id(&mut self, slf: &Rc<WlDataDeviceManager>)
Event handler for wl_display.delete_id messages deleting the ID of this object.
The default handler forwards the event to the client, if any.
Sourcefn handle_create_data_source(
&mut self,
slf: &Rc<WlDataDeviceManager>,
id: &Rc<WlDataSource>,
)
fn handle_create_data_source( &mut self, slf: &Rc<WlDataDeviceManager>, id: &Rc<WlDataSource>, )
Sourcefn handle_get_data_device(
&mut self,
slf: &Rc<WlDataDeviceManager>,
id: &Rc<WlDataDevice>,
seat: &Rc<WlSeat>,
)
fn handle_get_data_device( &mut self, slf: &Rc<WlDataDeviceManager>, id: &Rc<WlDataDevice>, seat: &Rc<WlSeat>, )
create a new data device
Create a new data device for a given seat.
§Arguments
id: data device to createseat: seat associated with the data device
All borrowed proxies passed to this function are guaranteed to be immutable and non-null.