1XmTargetsAreCompatible(library call) XmTargetsAreCompatible(library call)
2
3
4
6 XmTargetsAreCompatible — A function that tests whether the target types
7 match between a drop site and source object
8
10 #include <Xm/DragDrop.h>
11 Boolean XmTargetsAreCompatible(
12 Display *display,
13 Atom *export_targets,
14 Cardinal num_export_targets,
15 Atom *import_targets,
16 Cardinal num_import_targets);
17
19 XmTargetsAreCompatible determines whether the import targets of the
20 destination match any of the export targets of a source. If there is
21 at least one target in common, the function returns True.
22
23 display Specifies the display connection.
24
25 export_targets
26 Specifies the list of target atoms associated with the source
27 object. This resource identifies the selection targets the
28 source can convert to.
29
30 num_export_targets
31 Specifies the number of entries in the list of export tar‐
32 gets.
33
34 import_targets
35 Specifies the list of targets to be checked against the XmN‐
36 exportTargets of the source associated with the specified
37 DragContext
38
39 num_import_targets
40 Specifies the number of entries in the import_targets list.
41
43 Returns a Boolean value that indicates whether the destination targets
44 are compatible with the source targets. If there is at least one target
45 in common, the routine returns True; otherwise, returns False.
46
48 XmDragContext(3) and XmDropSite(3).
49
50
51
52 XmTargetsAreCompatible(library call)