Enum wayland_client::protocol::wl_data_source::Request [−][src]
Variants
Offer
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.
Fields of Offer
mime_type: String |
Destroy
destroy the data source
Destroy the data source.
This is a destructor, once sent this object cannot be used any longer.
SetActions
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.
Only available since version 3 of the interface
Fields of SetActions
dnd_actions: u32 |
Trait Implementations
impl MessageGroup for Request
[src]
impl MessageGroup for Request
const MESSAGES: &'static [MessageDesc]
MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "offer", since: 1, signature: &[super::ArgumentType::Str],}, super::MessageDesc{name: "destroy", since: 1, signature: &[],}, super::MessageDesc{name: "set_actions", since: 3, signature: &[super::ArgumentType::Uint],}]
Wire representation of this MessageGroup
type Map = ProxyMap
fn is_destructor(&self) -> bool
[src]
fn is_destructor(&self) -> bool
Whether this message is a destructor Read more
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
[src]
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
Retrieve the child Object
associated with this message if any
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
[src]
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
Construct a message from its raw representation
fn into_raw(self, sender_id: u32) -> Message
[src]
fn into_raw(self, sender_id: u32) -> Message
Turn this message into its raw representation