XmBLEND_ALL
XmBLEND_STATE_SOURCE
XmBLEND_JUST_SOURCE
XmBLEND_NONE
XmBLEND_ALL indicates that all three parts of the drag icon should be used, while XmBLEND_STATE_SOURCE
causes only the state and source icons to be used. We specify the value XmBLEND_JUST_SOURCE since we only
want the source icon to be used for the drag icon. XmBLEND_NONE means that the DragContext does not generate a
drag icon.
Another important set of resources are the XmN-exportTargets and XmN-numExportTargets resources.
These resources specify the data targets to which the drag source can convert the actual data. The
XmN-exportTargets resource contains a list of target atoms. If the file is a directory, we specify the
DIRECTORY target. Otherwise, we specify both the FILE_CONTENTS and FILE_NAME targets, which means that
the drag source can provide both a filename and the actual contents of the file to a drop site. In order for the drag to
succeed, another application must use at least one of these targets for a drop site so that the user has some place to
drop the data.
The XmN-dragOperations resource specifies all of the operations that are supported by the application. This
value is specified as a bitmask formed by combining the following possible values:
XmDROP_COPY
XmDROP_MOVE
XmDROP_LINK
XmDROP_NOOP
For the limited purpose of this application, we specify XmDROP_COPY because we only allow the user to copy the
contents of a file. A fully−functional file manager application would probably also support moving and copying ...