pub struct WlDataDeviceManager { /* private fields */ }Expand description
A wl_data_device_manager object.
See the documentation of the module for the interface description.
Implementations§
Source§impl WlDataDeviceManager
impl WlDataDeviceManager
Sourcepub fn set_handler(&self, handler: impl WlDataDeviceManagerHandler)
pub fn set_handler(&self, handler: impl WlDataDeviceManagerHandler)
Sets a new handler.
Sourcepub fn set_boxed_handler(&self, handler: Box<dyn WlDataDeviceManagerHandler>)
pub fn set_boxed_handler(&self, handler: Box<dyn WlDataDeviceManagerHandler>)
Sets a new, already boxed handler.
Source§impl WlDataDeviceManager
impl WlDataDeviceManager
Sourcepub const MSG__CREATE_DATA_SOURCE__SINCE: u32 = 1
pub const MSG__CREATE_DATA_SOURCE__SINCE: u32 = 1
Since when the create_data_source message is available.
Sourcepub const MSG__GET_DATA_DEVICE__SINCE: u32 = 1
pub const MSG__GET_DATA_DEVICE__SINCE: u32 = 1
Since when the get_data_device message is available.
Sourcepub const MSG__RELEASE__SINCE: u32 = 4
pub const MSG__RELEASE__SINCE: u32 = 4
Since when the release message is available.
Sourcepub fn try_send_create_data_source(
&self,
id: &Rc<WlDataSource>,
) -> Result<(), ObjectError>
pub fn try_send_create_data_source( &self, id: &Rc<WlDataSource>, ) -> Result<(), ObjectError>
Sourcepub fn send_create_data_source(&self, id: &Rc<WlDataSource>)
pub fn send_create_data_source(&self, id: &Rc<WlDataSource>)
Sourcepub fn new_try_send_create_data_source(
&self,
) -> Result<Rc<WlDataSource>, ObjectError>
pub fn new_try_send_create_data_source( &self, ) -> Result<Rc<WlDataSource>, ObjectError>
create a new data source
Create a new data source.
Sourcepub fn new_send_create_data_source(&self) -> Rc<WlDataSource>
pub fn new_send_create_data_source(&self) -> Rc<WlDataSource>
create a new data source
Create a new data source.
Sourcepub fn try_send_get_data_device(
&self,
id: &Rc<WlDataDevice>,
seat: &Rc<WlSeat>,
) -> Result<(), ObjectError>
pub fn try_send_get_data_device( &self, id: &Rc<WlDataDevice>, seat: &Rc<WlSeat>, ) -> Result<(), ObjectError>
create a new data device
Create a new data device for a given seat.
§Arguments
id: data device to createseat: seat associated with the data device
Sourcepub fn send_get_data_device(&self, id: &Rc<WlDataDevice>, seat: &Rc<WlSeat>)
pub fn send_get_data_device(&self, id: &Rc<WlDataDevice>, seat: &Rc<WlSeat>)
create a new data device
Create a new data device for a given seat.
§Arguments
id: data device to createseat: seat associated with the data device
Sourcepub fn new_try_send_get_data_device(
&self,
seat: &Rc<WlSeat>,
) -> Result<Rc<WlDataDevice>, ObjectError>
pub fn new_try_send_get_data_device( &self, seat: &Rc<WlSeat>, ) -> Result<Rc<WlDataDevice>, ObjectError>
create a new data device
Create a new data device for a given seat.
§Arguments
seat: seat associated with the data device
Sourcepub fn new_send_get_data_device(&self, seat: &Rc<WlSeat>) -> Rc<WlDataDevice>
pub fn new_send_get_data_device(&self, seat: &Rc<WlSeat>) -> Rc<WlDataDevice>
create a new data device
Create a new data device for a given seat.
§Arguments
seat: seat associated with the data device
Sourcepub fn try_send_release(&self) -> Result<(), ObjectError>
pub fn try_send_release(&self) -> Result<(), ObjectError>
destroy wl_data_device_manager
This request destroys the wl_data_device_manager. This has no effect on any other objects.
Sourcepub fn send_release(&self)
pub fn send_release(&self)
destroy wl_data_device_manager
This request destroys the wl_data_device_manager. This has no effect on any other objects.
Source§impl WlDataDeviceManager
impl WlDataDeviceManager
Sourcepub const ENM__DND_ACTION_NONE__SINCE: u32 = 1
pub const ENM__DND_ACTION_NONE__SINCE: u32 = 1
Since when the dnd_action.none enum variant is available.
Sourcepub const ENM__DND_ACTION_COPY__SINCE: u32 = 1
pub const ENM__DND_ACTION_COPY__SINCE: u32 = 1
Since when the dnd_action.copy enum variant is available.
Sourcepub const ENM__DND_ACTION_MOVE__SINCE: u32 = 1
pub const ENM__DND_ACTION_MOVE__SINCE: u32 = 1
Since when the dnd_action.move enum variant is available.
Sourcepub const ENM__DND_ACTION_ASK__SINCE: u32 = 1
pub const ENM__DND_ACTION_ASK__SINCE: u32 = 1
Since when the dnd_action.ask enum variant is available.
Trait Implementations§
Source§impl ConcreteObject for WlDataDeviceManager
impl ConcreteObject for WlDataDeviceManager
Source§const XML_VERSION: u32 = 4
const XML_VERSION: u32 = 4
Source§const INTERFACE: ObjectInterface = ObjectInterface::WlDataDeviceManager
const INTERFACE: ObjectInterface = ObjectInterface::WlDataDeviceManager
Source§const INTERFACE_NAME: &str = "wl_data_device_manager"
const INTERFACE_NAME: &str = "wl_data_device_manager"
Source§impl Debug for WlDataDeviceManager
impl Debug for WlDataDeviceManager
Source§impl Object for WlDataDeviceManager
impl Object for WlDataDeviceManager
Source§fn core(&self) -> &ObjectCore
fn core(&self) -> &ObjectCore
ObjectCore of this object.Source§fn unset_handler(&self)
fn unset_handler(&self)
Source§fn get_handler_any_ref(
&self,
) -> Result<HandlerRef<'_, dyn Any>, HandlerAccessError>
fn get_handler_any_ref( &self, ) -> Result<HandlerRef<'_, dyn Any>, HandlerAccessError>
Source§fn get_handler_any_mut(
&self,
) -> Result<HandlerMut<'_, dyn Any>, HandlerAccessError>
fn get_handler_any_mut( &self, ) -> Result<HandlerMut<'_, dyn Any>, HandlerAccessError>
Auto Trait Implementations§
impl !Freeze for WlDataDeviceManager
impl !RefUnwindSafe for WlDataDeviceManager
impl !Send for WlDataDeviceManager
impl !Sync for WlDataDeviceManager
impl Unpin for WlDataDeviceManager
impl UnsafeUnpin 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
Source§impl<T> ObjectCoreApi for T
impl<T> ObjectCoreApi for T
Source§fn client(&self) -> Option<Rc<Client>>
fn client(&self) -> Option<Rc<Client>>
Client associated with this object, if any.Source§fn interface(&self) -> ObjectInterface
fn interface(&self) -> ObjectInterface
ObjectInterface of this object.