:right-sidebar: True DragAction =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: DragAction :no-contents-entry: Used in ``GdkDrop`` and ``GdkDrag`` to indicate the actions that the destination can and should do with the dropped data. Methods ------- .. rst-class:: interim-class .. class:: DragAction :no-index: .. method:: is_unique(action: ~gi.repository.Gdk.DragAction) -> bool Checks if ``action`` represents a single action or includes multiple actions. When ``action`` is 0 - ie no action was given, :const:`True` is returned. :param action: a ``GdkDragAction`` Fields ------ .. rst-class:: interim-class .. class:: DragAction :no-index: .. attribute:: ASK Ask the user what to do with the data. .. attribute:: COPY Copy the data. .. attribute:: LINK Add a link to the data. Note that this is only useful if source and destination agree on what it means, and is not supported on all platforms. .. attribute:: MOVE Move the data, i.e. first copy it, then delete it from the source using the DELETE target of the X selection protocol.