WlDataDeviceManager

Struct WlDataDeviceManager 

Source
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

Source

pub fn set_handler(&self, handler: impl WlDataDeviceManagerHandler)

Sets a new handler.

Source

pub fn set_boxed_handler(&self, handler: Box<dyn WlDataDeviceManagerHandler>)

Sets a new, already boxed handler.

Source§

impl WlDataDeviceManager

Source

pub const MSG__CREATE_DATA_SOURCE__SINCE: u32 = 1u32

Since when the create_data_source message is available.

Source

pub const MSG__GET_DATA_DEVICE__SINCE: u32 = 1u32

Since when the get_data_device message is available.

Source

pub fn try_send_create_data_source( &self, id: &Rc<WlDataSource>, ) -> Result<(), ObjectError>

create a new data source

Create a new data source.

§Arguments
  • id: data source to create
Source

pub fn send_create_data_source(&self, id: &Rc<WlDataSource>)

create a new data source

Create a new data source.

§Arguments
  • id: data source to create
Source

pub fn new_try_send_create_data_source( &self, ) -> Result<Rc<WlDataSource>, ObjectError>

create a new data source

Create a new data source.

Source

pub fn new_send_create_data_source(&self) -> Rc<WlDataSource>

create a new data source

Create a new data source.

Source

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 create
  • seat: seat associated with the data device
Source

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 create
  • seat: seat associated with the data device
Source

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
Source

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
Source§

impl WlDataDeviceManager

Source

pub const ENM__DND_ACTION_NONE__SINCE: u32 = 1u32

Since when the dnd_action.none enum variant is available.

Source

pub const ENM__DND_ACTION_COPY__SINCE: u32 = 1u32

Since when the dnd_action.copy enum variant is available.

Source

pub const ENM__DND_ACTION_MOVE__SINCE: u32 = 1u32

Since when the dnd_action.move enum variant is available.

Source

pub const ENM__DND_ACTION_ASK__SINCE: u32 = 1u32

Since when the dnd_action.ask enum variant is available.

Trait Implementations§

Source§

impl ConcreteObject for WlDataDeviceManager

Source§

const XML_VERSION: u32 = 3u32

The interface version from the XML file that the interface was generated from.
Source§

const INTERFACE: ObjectInterface = ObjectInterface::WlDataDeviceManager

The interface of the object.
Source§

const INTERFACE_NAME: &str = "wl_data_device_manager"

The interface of the object as a string.
Source§

impl Debug for WlDataDeviceManager

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Object for WlDataDeviceManager

Source§

fn core(&self) -> &ObjectCore

Returns the ObjectCore of this object.
Source§

fn unset_handler(&self)

Unsets the handler of this object. Read more
Source§

fn get_handler_any_ref( &self, ) -> Result<HandlerRef<'_, dyn Any>, HandlerAccessError>

Returns a shared reference to the handler.
Source§

fn get_handler_any_mut( &self, ) -> Result<HandlerMut<'_, dyn Any>, HandlerAccessError>

Returns a mutable reference to the handler.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ObjectCoreApi for T
where T: Object + ?Sized,

Source§

fn state(&self) -> &Rc<State>

Returns the State of this object.
Source§

fn client(&self) -> Option<Rc<Client>>

Returns the Client associated with this object, if any.
Source§

fn create_child<P>(&self) -> Rc<P>
where P: Object,

Creates a child of this object. Read more
Source§

fn interface(&self) -> ObjectInterface

Returns the ObjectInterface of this object.
Source§

fn version(&self) -> u32

Returns the version of this object.
Source§

fn unique_id(&self) -> u64

Returns the unique ID of this object. Read more
Source§

fn client_id(&self) -> Option<u32>

Returns the client ID of this object, if any.
Source§

fn server_id(&self) -> Option<u32>

Returns the server ID of this object, if any.
Source§

fn delete_id(&self)

Sends a wl_display.delete_id event for this object. Read more
Source§

fn try_delete_id(&self) -> Result<(), ObjectError>

Tries to send a wl_display.delete_id event for this object. Read more
Source§

fn set_forward_to_client(&self, enabled: bool)

Enables or disables automatic forwarding of events to the client. Read more
Source§

fn set_forward_to_server(&self, enabled: bool)

Enables or disables automatic forwarding of requests to the server. Read more
Source§

impl<T> ObjectUtils for T
where T: Object + ?Sized,

Source§

fn try_get_handler_ref<T>( &self, ) -> Result<HandlerRef<'_, T>, HandlerAccessError>
where T: 'static,

Tries to get a shared reference to the handler.
Source§

fn get_handler_ref<T>(&self) -> HandlerRef<'_, T>
where T: 'static,

Gets a shared reference to the handler. Read more
Source§

fn try_get_handler_mut<T>( &self, ) -> Result<HandlerMut<'_, T>, HandlerAccessError>
where T: 'static,

Tries to get a mutable reference to the handler.
Source§

fn get_handler_mut<T>(&self) -> HandlerMut<'_, T>
where T: 'static,

Gets a mutable reference to the handler. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.