.TH "wayland::server::data_device_manager_dnd_action" 3 "Wed May 3 2023" "Version 1.0.0" "Wayland++" \" -*- nroff -*- .ad l .nh .SH NAME wayland::server::data_device_manager_dnd_action \- drag and drop actions .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits wayland::detail::bitfield< size, id >\&. .SS "Static Public Attributes" .in +1c .ti -1c .RI "static const wayland::detail::bitfield< 3, 6 > \fBnone\fP" .br .RI "no action " .ti -1c .RI "static const wayland::detail::bitfield< 3, 6 > \fBcopy\fP" .br .RI "copy action " .ti -1c .RI "static const wayland::detail::bitfield< 3, 6 > \fBmove\fP" .br .RI "move action " .ti -1c .RI "static const wayland::detail::bitfield< 3, 6 > \fBask\fP" .br .RI "ask action " .in -1c .SH "Detailed Description" .PP drag and drop actions This is a bitmask of the available/preferred actions in a drag-and-drop operation\&. .PP 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)\&. .PP 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: .PP .IP "\(bu" 2 If no modifiers are pressed, the first match (in bit order) will be used\&. .IP "\(bu" 2 Pressing Shift selects 'move', if enabled in the mask\&. .IP "\(bu" 2 Pressing Control selects 'copy', if enabled in the mask\&. .PP .PP 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')\&. .PP Definition at line \fB1638\fP of file \fBwayland\-server\-protocol\&.hpp\fP\&. .SH "Member Data Documentation" .PP .SS "const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::ask\fC [static]\fP" .PP ask action .PP Definition at line \fB1651\fP of file \fBwayland\-server\-protocol\&.hpp\fP\&. .SS "const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::copy\fC [static]\fP" .PP copy action .PP Definition at line \fB1647\fP of file \fBwayland\-server\-protocol\&.hpp\fP\&. .SS "const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::move\fC [static]\fP" .PP move action .PP Definition at line \fB1649\fP of file \fBwayland\-server\-protocol\&.hpp\fP\&. .SS "const wayland::detail::bitfield<3, 6> wayland::server::data_device_manager_dnd_action::none\fC [static]\fP" .PP no action .PP Definition at line \fB1645\fP of file \fBwayland\-server\-protocol\&.hpp\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Wayland++ from the source code\&.