Struct wayland_protocols::misc::gtk_primary_selection::client::gtk_primary_selection_device::GtkPrimarySelectionDevice
source · pub struct GtkPrimarySelectionDevice(/* private fields */);
Implementations§
source§impl GtkPrimarySelectionDevice
impl GtkPrimarySelectionDevice
sourcepub fn set_selection(
&self,
source: Option<&GtkPrimarySelectionSource>,
serial: u32
)
pub fn set_selection( &self, source: Option<&GtkPrimarySelectionSource>, 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 GtkPrimarySelectionDevice
impl Clone for GtkPrimarySelectionDevice
source§fn clone(&self) -> GtkPrimarySelectionDevice
fn clone(&self) -> GtkPrimarySelectionDevice
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 GtkPrimarySelectionDevice
impl Debug for GtkPrimarySelectionDevice
source§impl From<GtkPrimarySelectionDevice> for Proxy<GtkPrimarySelectionDevice>
impl From<GtkPrimarySelectionDevice> for Proxy<GtkPrimarySelectionDevice>
source§fn from(value: GtkPrimarySelectionDevice) -> Self
fn from(value: GtkPrimarySelectionDevice) -> Self
Converts to this type from the input type.
source§impl Interface for GtkPrimarySelectionDevice
impl Interface for GtkPrimarySelectionDevice
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 GtkPrimarySelectionDevice
impl PartialEq for GtkPrimarySelectionDevice
source§fn eq(&self, other: &GtkPrimarySelectionDevice) -> bool
fn eq(&self, other: &GtkPrimarySelectionDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GtkPrimarySelectionDevice
impl StructuralEq for GtkPrimarySelectionDevice
impl StructuralPartialEq for GtkPrimarySelectionDevice
Auto Trait Implementations§
impl !RefUnwindSafe for GtkPrimarySelectionDevice
impl Send for GtkPrimarySelectionDevice
impl Sync for GtkPrimarySelectionDevice
impl Unpin for GtkPrimarySelectionDevice
impl !UnwindSafe for GtkPrimarySelectionDevice
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