pub struct PrimarySelectionState { /* private fields */ }Available on crate feature
wayland_frontend only.Expand description
State of the primary selection.
Implementations§
Source§impl PrimarySelectionState
impl PrimarySelectionState
Sourcepub fn new<D>(display: &DisplayHandle) -> Selfwhere
D: GlobalDispatch<PrimaryDeviceManager, PrimaryDeviceManagerGlobalData> + 'static + PrimarySelectionHandler,
pub fn new<D>(display: &DisplayHandle) -> Selfwhere
D: GlobalDispatch<PrimaryDeviceManager, PrimaryDeviceManagerGlobalData> + 'static + PrimarySelectionHandler,
Register new PrimaryDeviceManager global
Sourcepub fn new_with_filter<D, F>(display: &DisplayHandle, filter: F) -> Selfwhere
D: GlobalDispatch<PrimaryDeviceManager, PrimaryDeviceManagerGlobalData> + 'static + PrimarySelectionHandler,
F: for<'c> Fn(&'c Client) -> bool + Send + Sync + 'static,
pub fn new_with_filter<D, F>(display: &DisplayHandle, filter: F) -> Selfwhere
D: GlobalDispatch<PrimaryDeviceManager, PrimaryDeviceManagerGlobalData> + 'static + PrimarySelectionHandler,
F: for<'c> Fn(&'c Client) -> bool + Send + Sync + 'static,
Register new PrimaryDeviceManager global with a filter.
Filters can be used to limit visibility of a global to certain clients.
Sourcepub fn global(&self) -> GlobalId
pub fn global(&self) -> GlobalId
PrimaryDeviceManager GlobalId getter
Trait Implementations§
Source§impl Debug for PrimarySelectionState
impl Debug for PrimarySelectionState
Source§impl<D> Dispatch<ZwpPrimarySelectionDeviceManagerV1, (), D> for PrimarySelectionStatewhere
D: Dispatch<ZwpPrimarySelectionDeviceManagerV1, ()> + Dispatch<ZwpPrimarySelectionSourceV1, PrimarySourceUserData> + Dispatch<ZwpPrimarySelectionDeviceV1, PrimaryDeviceUserData> + PrimarySelectionHandler + SeatHandler + 'static,
impl<D> Dispatch<ZwpPrimarySelectionDeviceManagerV1, (), D> for PrimarySelectionStatewhere
D: Dispatch<ZwpPrimarySelectionDeviceManagerV1, ()> + Dispatch<ZwpPrimarySelectionSourceV1, PrimarySourceUserData> + Dispatch<ZwpPrimarySelectionDeviceV1, PrimaryDeviceUserData> + PrimarySelectionHandler + SeatHandler + 'static,
Auto Trait Implementations§
impl Freeze for PrimarySelectionState
impl !RefUnwindSafe for PrimarySelectionState
impl Send for PrimarySelectionState
impl Sync for PrimarySelectionState
impl Unpin for PrimarySelectionState
impl !UnwindSafe for PrimarySelectionState
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.