WlDataDeviceManagerHandler

Trait WlDataDeviceManagerHandler 

Source
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§

Source

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.

Source

fn handle_create_data_source( &mut self, slf: &Rc<WlDataDeviceManager>, id: &Rc<WlDataSource>, )

create a new data source

Create a new data source.

§Arguments
  • id: data source to create
Source

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 create
  • seat: seat associated with the data device

All borrowed proxies passed to this function are guaranteed to be immutable and non-null.

Implementors§