pub struct WlDataDeviceManager { /* private fields */ }
Expand description
data transfer interface
The wl_data_device_manager is a singleton global object that provides access to inter-client data transfer mechanisms such as copy-and-paste and drag-and-drop. These mechanisms are tied to a wl_seat and this interface lets a client get a wl_data_device corresponding to a wl_seat.
Depending on the version bound, the objects created from the bound wl_data_device_manager object will have different requirements for functioning properly. See wl_data_source.set_actions, wl_data_offer.accept and wl_data_offer.finish for details.
This interface has no events.
Implementations§
Source§impl WlDataDeviceManager
impl WlDataDeviceManager
Sourcepub fn create_data_source<U, D>(
&self,
qh: &QueueHandle<D>,
udata: U,
) -> WlDataSource
pub fn create_data_source<U, D>( &self, qh: &QueueHandle<D>, udata: U, ) -> WlDataSource
create a new data source
Create a new data source.
Sourcepub fn get_data_device<U, D>(
&self,
seat: &WlSeat,
qh: &QueueHandle<D>,
udata: U,
) -> WlDataDevice
pub fn get_data_device<U, D>( &self, seat: &WlSeat, qh: &QueueHandle<D>, udata: U, ) -> WlDataDevice
create a new data device
Create a new data device for a given seat.
Trait Implementations§
Source§impl Borrow<ObjectId> for WlDataDeviceManager
impl Borrow<ObjectId> for WlDataDeviceManager
Source§impl Clone for WlDataDeviceManager
impl Clone for WlDataDeviceManager
Source§fn clone(&self) -> WlDataDeviceManager
fn clone(&self) -> WlDataDeviceManager
Returns a duplicate 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 WlDataDeviceManager
impl Debug for WlDataDeviceManager
Source§impl<D> Dispatch<WlDataDeviceManager, GlobalData, D> for DataDeviceManagerState
impl<D> Dispatch<WlDataDeviceManager, GlobalData, D> for DataDeviceManagerState
Source§fn event(
_state: &mut D,
_proxy: &WlDataDeviceManager,
_event: <WlDataDeviceManager as Proxy>::Event,
_data: &GlobalData,
_conn: &Connection,
_qhandle: &QueueHandle<D>,
)
fn event( _state: &mut D, _proxy: &WlDataDeviceManager, _event: <WlDataDeviceManager as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<D>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Hash for WlDataDeviceManager
impl Hash for WlDataDeviceManager
Source§impl PartialEq for WlDataDeviceManager
impl PartialEq for WlDataDeviceManager
Source§impl Proxy for WlDataDeviceManager
impl Proxy for WlDataDeviceManager
Source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
Access the raw data associated with this object. Read more
Source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
Access the backend associated with this object
Source§fn send_request(
&self,
req: <WlDataDeviceManager as Proxy>::Request<'_>,
) -> Result<(), InvalidId>
fn send_request( &self, req: <WlDataDeviceManager as Proxy>::Request<'_>, ) -> Result<(), InvalidId>
Send a request for this object. Read more
Source§fn send_constructor<I>(
&self,
req: <WlDataDeviceManager as Proxy>::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>where
I: Proxy,
fn send_constructor<I>(
&self,
req: <WlDataDeviceManager as Proxy>::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>where
I: Proxy,
Send a request for this object that creates another object. Read more
Source§fn from_id(
conn: &Connection,
id: ObjectId,
) -> Result<WlDataDeviceManager, InvalidId>
fn from_id( conn: &Connection, id: ObjectId, ) -> Result<WlDataDeviceManager, InvalidId>
Create an object proxy from its ID Read more
Source§fn inert(backend: WeakBackend) -> WlDataDeviceManager
fn inert(backend: WeakBackend) -> WlDataDeviceManager
Create an inert object proxy Read more
Source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(WlDataDeviceManager, <WlDataDeviceManager as Proxy>::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd>, ) -> Result<(WlDataDeviceManager, <WlDataDeviceManager as Proxy>::Event), DispatchError>
Parse a event for this object Read more
Source§fn write_request<'a>(
&self,
conn: &Connection,
msg: <WlDataDeviceManager as Proxy>::Request<'a>,
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: <WlDataDeviceManager as Proxy>::Request<'a>, ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
Serialize a request for this object Read more
impl Eq for WlDataDeviceManager
Auto Trait Implementations§
impl Freeze for WlDataDeviceManager
impl !RefUnwindSafe for WlDataDeviceManager
impl Send for WlDataDeviceManager
impl Sync for WlDataDeviceManager
impl Unpin for WlDataDeviceManager
impl !UnwindSafe for WlDataDeviceManager
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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
.Source§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
.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more