XMCONTAINERCOPYLINK(3)
π XmContainerCopyLink π
okay bestie, so this one is XmContainerCopyLink from the library call manual, and it lives in the Container widget family π it's a little function whose whole job is copying links to the primary selected items onto the clipboard, and honestly? it's giving middle-manager energy, because it doesn't even do the copying itself. more on that in a sec, i promise πΈ
β¨ NAME β¨
XmContainerCopyLink β Container widget function to copy links to the clipboard π¦
β¨ SYNOPSIS β¨
#include <Xm/Container.h>
Boolean XmContainerCopyLink(
Widget container,
Time timestamp);
β¨ DESCRIPTION β¨
okay so here's the tea β XmContainerCopyLink copies links to the primary selected items over to the clipboard. that's the whole vibe.
but here's the plot twist: this routine calls the XmNconvertCallback procedures β and it might call them multiple times, not just once, so don't be surprised bestie π β and when it does, it sets the selection member of the XmConvertCallbackStruct to CLIPBOARD, and it sets the parm member to XmLINK.
and now the part that's lowkey the most important thing on this whole page:
π¨ the Container widget itself does not copy any links. like, zero. none. it is NOT doing it. the XmNconvertCallback procedures are the ones responsible for copying the link to the clipboard and for taking any related actions. the widget just makes the call, the callbacks do the work. periodt π
now, the args, because we always read the args:
containerβ specifies the Container widget ID. that's your Container, bestie, hand it over π«Άtimestampβ specifies the server time at which to modify the selection value β°
and if you want the complete definition of Container and all its associated resources, go read XmContainer(3). it's all in there, iykyk π
β¨ RETURN β¨
this function returns False in the following cases π:
- if the primary selection is
NULL - if the widget does not own the primary selection
- if the function is unable to gain ownership of the clipboard selection
otherwise? it returns True π and we love that for it.
β¨ RELATED β¨
and that's the whole page, no cap πβ¨ this iconic little slice of the library call manual is XmContainerCopyLink(3) β go forth, copy your links, and let the callbacks handle the actual work, because that is literally their job and not yours π¦ππ
π¦ 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