pub struct ZwpPrimarySelectionDeviceV1 { /* private fields */ }Expand description
zwp_primary_selection_device_v1
See also the Request enum for this interface.
Implementations§
Source§impl ZwpPrimarySelectionDeviceV1
impl ZwpPrimarySelectionDeviceV1
Sourcepub fn data_offer(&self, offer: &ZwpPrimarySelectionOfferV1)
pub fn data_offer(&self, offer: &ZwpPrimarySelectionOfferV1)
introduce a new wp_primary_selection_offer
Introduces a new wp_primary_selection_offer object that may be used to receive the current primary selection. Immediately following this event, the new wp_primary_selection_offer object will send wp_primary_selection_offer.offer events to describe the offered mime types.
Sourcepub fn selection(&self, id: Option<&ZwpPrimarySelectionOfferV1>)
pub fn selection(&self, id: Option<&ZwpPrimarySelectionOfferV1>)
advertise a new primary selection
The wp_primary_selection_device.selection event is sent to notify the client of a new primary selection. This event is sent after the wp_primary_selection.data_offer event introducing this object, and after the offer has announced its mimetypes through wp_primary_selection_offer.offer.
The data_offer is valid until a new offer or NULL is received or until the client loses keyboard focus. The client must destroy the previous selection data_offer, if any, upon receiving this event.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZwpPrimarySelectionDeviceV1
impl Borrow<ObjectId> for ZwpPrimarySelectionDeviceV1
Source§impl Clone for ZwpPrimarySelectionDeviceV1
impl Clone for ZwpPrimarySelectionDeviceV1
Source§fn clone(&self) -> ZwpPrimarySelectionDeviceV1
fn clone(&self) -> ZwpPrimarySelectionDeviceV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more