Wayland++ 1.0.0
C++ Bindings for Wayland
Loading...
Searching...
No Matches
wayland::server::data_device_manager_dnd_action Struct Reference

drag and drop actions More...

#include <wayland-server-protocol.hpp>

Static Public Attributes

static const wayland::detail::bitfield< 3, 6 > none
 no action
 
static const wayland::detail::bitfield< 3, 6 > copy
 copy action
 
static const wayland::detail::bitfield< 3, 6 > move
 move action
 
static const wayland::detail::bitfield< 3, 6 > ask
 ask action
 

Detailed Description

drag and drop actions

This is a bitmask of the available/preferred actions in a drag-and-drop operation.

In the compositor, the selected action is a result of matching the actions offered by the source and destination sides. "action" events with a "none" action will be sent to both source and destination if there is no match. All further checks will effectively happen on (source actions ∩ destination actions).

In addition, compositors may also pick different actions in reaction to key modifiers being pressed. One common design that is used in major toolkits (and the behavior recommended for compositors) is:

  • If no modifiers are pressed, the first match (in bit order) will be used.
  • Pressing Shift selects "move", if enabled in the mask.
  • Pressing Control selects "copy", if enabled in the mask.

Behavior beyond that is considered implementation-dependent. Compositors may for example bind other modifiers (like Alt/Meta) or drags initiated with other buttons than BTN_LEFT to specific actions (e.g. "ask").

Definition at line 1639 of file wayland-server-protocol.hpp.

Member Data Documentation

◆ ask

const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::ask
static

ask action

Definition at line 1652 of file wayland-server-protocol.hpp.

◆ copy

const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::copy
static

copy action

Definition at line 1648 of file wayland-server-protocol.hpp.

◆ move

const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::move
static

move action

Definition at line 1650 of file wayland-server-protocol.hpp.

◆ none

const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::none
static

no action

Definition at line 1646 of file wayland-server-protocol.hpp.


The documentation for this struct was generated from the following file: