<!-- $XConsortium: TargetsA.sgm /main/8 1996/09/08 21:09:52 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN466.rsml.1">
<RefMeta>
<RefEntryTitle>XmTargetsAreCompatible</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmTargetsAreCompatible</Function></RefName>
<RefPurpose>A function that tests
whether the target types match between a drop site and source object
<IndexTerm>
<Primary>XmTargetsAreCompatible</Primary>
</IndexTerm><IndexTerm>
<Primary>Drag and Drop functions</Primary>
<Secondary>XmTargetsAreCompatible</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/DragDrop.h>
</FuncSynopsisInfo>
<FuncDef>Boolean <Function>XmTargetsAreCompatible</Function></FuncDef>
<!--<ParamDef><Replaceable>display, export_targets, num_export_targets,
                        import_targets, num_import_targets</Replaceable></ParamDef>-->
<ParamDef>Display *<Parameter>display</Parameter></ParamDef>
<ParamDef>Atom *<Parameter>export_targets</Parameter></ParamDef>
<ParamDef>Cardinal <Parameter>num_export_targets</Parameter></ParamDef>
<ParamDef>Atom *<Parameter>import_targets</Parameter></ParamDef>
<ParamDef>Cardinal <Parameter>num_import_targets</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmTargetsAreCompatible</Function> determines whether the import targets of
the destination match any of the export targets of a source.
If there is at least one target in common, the function returns True.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">display</Symbol></Term>
<ListItem>
<Para>Specifies the display connection.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">export_targets</Symbol></Term>
<ListItem>
<Para>Specifies the list of target atoms associated with the source object.
This resource identifies the selection targets the source
can convert to.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">num_export_targets</Symbol></Term>
<ListItem>
<Para>Specifies the number of entries in the list of export targets.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">import_targets</Symbol></Term>
<ListItem>
<Para>Specifies the list of targets to be checked against the
<SystemItem Class="Resource">XmNexportTargets</SystemItem> of the source associated with the
specified DragContext
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">num_import_targets</Symbol></Term>
<ListItem>
<Para>Specifies the number of entries in the <Symbol Role="Variable">import_targets</Symbol> list.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns a Boolean value that indicates whether the destination
targets are compatible with the source targets. If there is at
least one target in common, the routine returns True; otherwise,
returns False.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmDragContext; and
&cdeman.XmDropSite;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
