Struct wayland_protocols::unstable::primary_selection::v1::client::zwp_primary_selection_device_v1::ZwpPrimarySelectionDeviceV1
source · pub struct ZwpPrimarySelectionDeviceV1(/* private fields */);
Implementations§
source§impl ZwpPrimarySelectionDeviceV1
impl ZwpPrimarySelectionDeviceV1
sourcepub fn set_selection(
&self,
source: Option<&ZwpPrimarySelectionSourceV1>,
serial: u32
)
pub fn set_selection( &self, source: Option<&ZwpPrimarySelectionSourceV1>, serial: u32 )
set the primary selection
Replaces the current selection. The previous owner of the primary selection will receive a wp_primary_selection_source.cancelled event.
To unset the selection, set the source to NULL.
Trait Implementations§
source§impl Clone for ZwpPrimarySelectionDeviceV1
impl Clone for ZwpPrimarySelectionDeviceV1
source§fn clone(&self) -> ZwpPrimarySelectionDeviceV1
fn clone(&self) -> ZwpPrimarySelectionDeviceV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ZwpPrimarySelectionDeviceV1
impl Debug for ZwpPrimarySelectionDeviceV1
source§impl From<ZwpPrimarySelectionDeviceV1> for Proxy<ZwpPrimarySelectionDeviceV1>
impl From<ZwpPrimarySelectionDeviceV1> for Proxy<ZwpPrimarySelectionDeviceV1>
source§fn from(value: ZwpPrimarySelectionDeviceV1) -> Self
fn from(value: ZwpPrimarySelectionDeviceV1) -> Self
Converts to this type from the input type.
source§impl Interface for ZwpPrimarySelectionDeviceV1
impl Interface for ZwpPrimarySelectionDeviceV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
source§impl PartialEq for ZwpPrimarySelectionDeviceV1
impl PartialEq for ZwpPrimarySelectionDeviceV1
source§fn eq(&self, other: &ZwpPrimarySelectionDeviceV1) -> bool
fn eq(&self, other: &ZwpPrimarySelectionDeviceV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ZwpPrimarySelectionDeviceV1
impl StructuralEq for ZwpPrimarySelectionDeviceV1
impl StructuralPartialEq for ZwpPrimarySelectionDeviceV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZwpPrimarySelectionDeviceV1
impl Send for ZwpPrimarySelectionDeviceV1
impl Sync for ZwpPrimarySelectionDeviceV1
impl Unpin for ZwpPrimarySelectionDeviceV1
impl !UnwindSafe for ZwpPrimarySelectionDeviceV1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more