XMTARGETSARECOMPATIBLE(3)
π XmTargetsAreCompatible π
okay bestie, gather round, because today we're talking about XmTargetsAreCompatible β a literal library call, from the <Xm/DragDrop.h> cinematic universe, and she's here to answer ONE very important question: do these target types match or not? π
β¨ NAME β¨
XmTargetsAreCompatible β a function that tests whether the target types match between a drop site and source object. that's it, that's the whole job, and she does it flawlessly. π
π SYNOPSIS π
#include <Xm/DragDrop.h>
Boolean XmTargetsAreCompatible(
Display *display,
Atom *export_targets,
Cardinal num_export_targets,
Atom *import_targets,
Cardinal num_import_targets);
look at her. five arguments, one Boolean return, zero drama. iconic behavior fr fr β¨
π¦ DESCRIPTION π¦
so here's the tea, bestie π β XmTargetsAreCompatible figures out whether the import targets of the destination match any of the export targets of a source. and if there's at least one target in common? she returns True. that's the vibe check, and the vibe check has passed. π
now let's meet the cast:
displayβ specifies the display connection. the whole social network, basically. πexport_targetsβ specifies the list of target atoms associated with the source object. this resource identifies the selection targets the source can convert to. it's giving "here's everything i bring to the table" energy. π«Άnum_export_targetsβ specifies the number of entries in the list of export targets. yes bestie, she needs a headcount. π’import_targetsβ specifies the list of targets to be checked against theXmNexportTargetsof the source associated with the specifiedDragContext. this is the "what are we even looking for" list. πnum_import_targetsβ specifies the number of entries in theimport_targetslist. another headcount, another slay. β¨
π RETURN π
she hands back a Boolean value that indicates whether the destination targets are compatible with the source targets. and like β if there's at least one target in common, the routine returns True; otherwise, returns False. no gray area, no "it's complicated", no situationship. just True or False. periodt. π
π RELATED π
go read those too, bestie, they're her besties. π
and that's the whole page!! π this was XmTargetsAreCompatible from the (library call) section β the footer just says her name right back at you, no version, no date, just her, standing there, being a library call. πΈβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms