Struct wayland_client::protocol::wl_data_source::WlDataSource
[−]
[src]
pub struct WlDataSource { /* fields omitted */ }
Methods
impl WlDataSource
[src]
fn offer(&self, mime_type: String) -> RequestResult<()>
[src]
add an offered mime type
This request adds a mime type to the set of mime types advertised to targets. Can be called several times to offer multiple types.
fn destroy(&self) -> RequestResult<()>
[src]
destroy the data source
Destroy the data source.
This is a destructor, you cannot send requests to this object once this method is called.
fn set_actions(&self, dnd_actions: u32) -> RequestResult<()>
[src]
set the available drag-and-drop actions
Sets the actions that the source side client supports for this operation. This request may trigger wl_data_source.action and wl_data_offer.action events if the compositor needs to change the selected action.
The dnd_actions argument must contain only values expressed in the wl_data_device_manager.dnd_actions enum, otherwise it will result in a protocol error.
This request must be made once only, and can only be made on sources used in drag-and-drop, so it must be performed before wl_data_device.start_drag. Attempting to use the source other than for drag-and-drop will raise a protocol error.
This request is only available since version 3 of the interface
Trait Implementations
impl Send for WlDataSource
[src]
impl Sync for WlDataSource
[src]
impl Proxy for WlDataSource
[src]
fn ptr(&self) -> *mut wl_proxy
[src]
Pointer to the underlying wayland proxy object
unsafe fn from_ptr_new(ptr: *mut wl_proxy) -> WlDataSource
[src]
Create an instance from a wayland pointer Read more
unsafe fn from_ptr_initialized(ptr: *mut wl_proxy) -> WlDataSource
[src]
Create an instance from a wayland pointer Read more
fn interface_ptr() -> *const wl_interface
[src]
Pointer to the interface representation
fn interface_name() -> &'static str
[src]
Internal wayland name of this interface
fn supported_version() -> u32
[src]
Max version of this interface supported
fn version(&self) -> u32
[src]
Current version of the interface this proxy is instantiated with
fn status(&self) -> Liveness
[src]
Check if the proxy behind this handle is actually still alive
fn equals(&self, other: &WlDataSource) -> bool
[src]
Check of two handles are actually the same wayland object Read more
fn set_user_data(&self, ptr: *mut ())
[src]
Set a pointer associated as user data on this proxy Read more
fn get_user_data(&self) -> *mut ()
[src]
Get the pointer associated as user data on this proxy Read more
unsafe fn clone_unchecked(&self) -> WlDataSource
[src]
Unsafely clone this proxy handle Read more
fn clone(&self) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Clone this proxy handle Read more
impl<ID: 'static> Implementable<ID> for WlDataSource
[src]
type Implementation = Implementation<ID>
The type containing the implementation for the event callbacks
unsafe fn __dispatch_msg(
&self,
opcode: u32,
args: *const wl_argument
) -> Result<(), ()>
[src]
&self,
opcode: u32,
args: *const wl_argument
) -> Result<(), ()>