pub struct ExtDataControlDeviceV1 { /* private fields */ }ext-data-control-v1 only.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 Event for the list of possible events.
Implementations§
Source§impl ExtDataControlDeviceV1
impl ExtDataControlDeviceV1
Sourcepub fn set_selection<D>(
self,
conn: &mut Connection<D>,
source: Option<ExtDataControlSourceV1>,
)
pub fn set_selection<D>( self, conn: &mut Connection<D>, source: Option<ExtDataControlSourceV1>, )
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 triggers the used_source protocol error.
To unset the selection, set the source to NULL.
Since version 1.
Sourcepub fn destroy<D>(self, conn: &mut Connection<D>)
pub fn destroy<D>(self, conn: &mut Connection<D>)
destroy this data device
Destroys the data device object.
Since version 1.
Sourcepub fn set_primary_selection<D>(
self,
conn: &mut Connection<D>,
source: Option<ExtDataControlSourceV1>,
)
pub fn set_primary_selection<D>( self, conn: &mut Connection<D>, source: Option<ExtDataControlSourceV1>, )
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 triggers the used_source 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.
Since version 1.
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