Struct wayland_protocols::wlr::unstable::data_control::v1::client::zwlr_data_control_device_v1::ZwlrDataControlDeviceV1
source · pub struct ZwlrDataControlDeviceV1(/* private fields */);
Implementations§
source§impl ZwlrDataControlDeviceV1
impl ZwlrDataControlDeviceV1
sourcepub fn set_selection(&self, source: Option<&ZwlrDataControlSourceV1>)
pub fn set_selection(&self, source: Option<&ZwlrDataControlSourceV1>)
copy data to the selection
This request asks the compositor to set the selection to the data from the source on behalf of the client.
The given source may not be used in any further set_selection or set_primary_selection requests. Attempting to use a previously used source is a protocol error.
To unset the selection, set the source to NULL.
sourcepub fn destroy(&self)
pub fn destroy(&self)
destroy this data device
Destroys the data device object.
This is a destructor, you cannot send requests to this object any longer once this method is called.
sourcepub fn set_primary_selection(&self, source: Option<&ZwlrDataControlSourceV1>)
pub fn set_primary_selection(&self, source: Option<&ZwlrDataControlSourceV1>)
copy data to the primary selection
This request asks the compositor to set the primary selection to the data from the source on behalf of the client.
The given source may not be used in any further set_selection or set_primary_selection requests. Attempting to use a previously used source is a protocol error.
To unset the primary selection, set the source to NULL.
The compositor will ignore this request if it does not support primary selection.
Only available since version 2 of the interface.
Trait Implementations§
source§impl Clone for ZwlrDataControlDeviceV1
impl Clone for ZwlrDataControlDeviceV1
source§fn clone(&self) -> ZwlrDataControlDeviceV1
fn clone(&self) -> ZwlrDataControlDeviceV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZwlrDataControlDeviceV1
impl Debug for ZwlrDataControlDeviceV1
source§impl From<ZwlrDataControlDeviceV1> for Proxy<ZwlrDataControlDeviceV1>
impl From<ZwlrDataControlDeviceV1> for Proxy<ZwlrDataControlDeviceV1>
source§fn from(value: ZwlrDataControlDeviceV1) -> Self
fn from(value: ZwlrDataControlDeviceV1) -> Self
source§impl Interface for ZwlrDataControlDeviceV1
impl Interface for ZwlrDataControlDeviceV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
source§impl PartialEq for ZwlrDataControlDeviceV1
impl PartialEq for ZwlrDataControlDeviceV1
source§fn eq(&self, other: &ZwlrDataControlDeviceV1) -> bool
fn eq(&self, other: &ZwlrDataControlDeviceV1) -> bool
self
and other
values to be equal, and is used
by ==
.