pub struct ExtDataControlDeviceV1 { /* private fields */ }Expand description
manage a data device for a seat
This interface allows a client to manage a seat’s selection.
When the seat is destroyed, this object becomes inert.
See also the Request enum for this interface.
Implementations§
Source§impl ExtDataControlDeviceV1
impl ExtDataControlDeviceV1
Sourcepub fn data_offer(&self, id: &ExtDataControlOfferV1)
pub fn data_offer(&self, id: &ExtDataControlOfferV1)
introduce a new ext_data_control_offer
The data_offer event introduces a new ext_data_control_offer object, which will subsequently be used in either the ext_data_control_device.selection event (for the regular clipboard selections) or the ext_data_control_device.primary_selection event (for the primary clipboard selections). Immediately following the ext_data_control_device.data_offer event, the new data_offer object will send out ext_data_control_offer.offer events to describe the MIME types it offers.
Sourcepub fn selection(&self, id: Option<&ExtDataControlOfferV1>)
pub fn selection(&self, id: Option<&ExtDataControlOfferV1>)
advertise new selection
The selection event is sent out to notify the client of a new ext_data_control_offer for the selection for this device. The ext_data_control_device.data_offer and the ext_data_control_offer.offer events are sent out immediately before this event to introduce the data offer object. The selection event is sent to a client when a new selection is set. The ext_data_control_offer is valid until a new ext_data_control_offer or NULL is received. The client must destroy the previous selection ext_data_control_offer, if any, upon receiving this event. Regardless, the previous selection will be ignored once a new selection ext_data_control_offer is received.
The first selection event is sent upon binding the ext_data_control_device object.
Sourcepub fn finished(&self)
pub fn finished(&self)
this data control is no longer valid
This data control object is no longer valid and should be destroyed by the client.
Sourcepub fn primary_selection(&self, id: Option<&ExtDataControlOfferV1>)
pub fn primary_selection(&self, id: Option<&ExtDataControlOfferV1>)
advertise new primary selection
The primary_selection event is sent out to notify the client of a new ext_data_control_offer for the primary selection for this device. The ext_data_control_device.data_offer and the ext_data_control_offer.offer events are sent out immediately before this event to introduce the data offer object. The primary_selection event is sent to a client when a new primary selection is set. The ext_data_control_offer is valid until a new ext_data_control_offer or NULL is received. The client must destroy the previous primary selection ext_data_control_offer, if any, upon receiving this event. Regardless, the previous primary selection will be ignored once a new primary selection ext_data_control_offer is received.
If the compositor supports primary selection, the first primary_selection event is sent upon binding the ext_data_control_device object.
Trait Implementations§
Source§impl Borrow<ObjectId> for ExtDataControlDeviceV1
impl Borrow<ObjectId> for ExtDataControlDeviceV1
Source§impl Clone for ExtDataControlDeviceV1
impl Clone for ExtDataControlDeviceV1
Source§fn clone(&self) -> ExtDataControlDeviceV1
fn clone(&self) -> ExtDataControlDeviceV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more